donth77 / loot-lookup-plugin

BSD 2-Clause "Simplified" License
3 stars 5 forks source link

Idea: press shift to show right click menu option #13

Open ObliqueBoredom opened 2 years ago

ObliqueBoredom commented 2 years ago

Don't know if its possible, but would be a nice feature to have the option for the menu to only show up while holding shift (or a similar key). would be nice to de clutter right click menu.

donth77 commented 2 years ago

@ObliqueBoredom I'm not sure if it would be possible to dynamically add and remove options while the menu is open. According to the RuneLite Client API docs, setMenuEntries should typically be used in the context of the MenuOpened event.

CalebBarnes commented 2 years ago

Maybe possible to check if the key is currently held down when the user right-clicks instead of dynamically adding/removing from the menu when it's already opened?

ObliqueBoredom commented 2 years ago

Yeah, Caleb pretty much nailed it, just want the option not to be there in normal use, but show up in the menu if I'm pressing a certain key before/during right clicking. Also thanks for hearing me out.

p.s. also remembered the ground markers plugin does the function i was asking. while holding shift click the "mark tile" option shows up on ground right clicks.