MinimapButtonButton

MinimapButtonButton

5M Downloads

Auto close

OnceWasPerfect opened this issue ยท 6 comments

commented

Awesome addon, an enhancement idea would be to have the menu either auto close after selecting something inside it (probably difficult with addons that create their own menus like itemrack) or in lieu of that close after a certain number of seconds. Often times I'll open it to get to Plater options or something and then it stays open covering my minimap until I go down and click it again.

commented

This would also help when you get in combat and can't close the menu due to API restrictions while in combat.

commented

As @OnceWasPerfect already said, the handling of submenus will propably cause issues when they open a menu that is attached to the given button, which is why I didn't attempt to implement this yet.
@jtmunn Feel free to fork this repo and create a PR if you want to contribute.

commented

I, too, would love this feature. @syndenbock I could create a PR if you are interested in letting others contribute?

commented

the handling of submenus will propably cause issues when they open a menu that is attached to the given button, which is why I didn't attempt to implement this yet.

This is already an issue with the default behavior. I have to make sure to close the sub menus before I close MMBB

commented

I noticed that the icons fade after I move my mouse off of the minimap. would there be a way to latch on to when this happens and use that to close or hide the container?

commented

I noticed that the icons fade after I move my mouse off of the minimap. would there be a way to latch on to when this happens and use that to close or hide the container?

Auto-closing when the container loses focus should be possible. The issue here is to not close the container while a submenu of a button is being displayed so the submenu does not disappear aswell.