forked from runelite/runelite
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
menu swapper: perform shift click swaps in plugin
This has been using the base client shift click feature to perform shift click swaps, however the client behavior changed in the Apr 2022 if3 update. Previously the client would add the menu ops in the correct order based on the shift key state when ticking the interface. Now interface tick queues a script event to update the ui ops later. This causes a one tick delay between the shift keypress and then component ops being updated, which you can observe if you set the left click swap to Drop, keep the shift click swap at Drop (vanilla) and toggle shift. MES will not perform the left-click swap due to shift being held, but vanilla will not perform the shift-click swap due to the delay, leaving a tick with the wrong menu option. Defer the shift check by 1 tick to match the vanilla behavior and perform the previous swap for one more tick.
- Loading branch information
Showing
1 changed file
with
7 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters