GoldpawsStuff / AzeriteUI5

Custom user interface suite for World of Warcraft. Design and code by Lars Norberg and Daniel Troconis.
https://www.patreon.com/GoldpawsStuff
Other
22 stars 7 forks source link

Components: Add new Blizzard_Menu based tracking menu to minimap #87

Closed PatTheMav closed 1 month ago

PatTheMav commented 2 months ago

Blizzard_Menu is the replacement of UIDropDownMenu, which has been deprecated in War Within with all existing dropdowns used by the native interface converted to the new framework.

Benefits of the new menu API is that it is safer from taints than older APIs and either provides a button with associated dropdown menu or context menus directly and uses generator functions to populate menus (it feels like a more declarative approach similar to SwiftUI).

Thus this PR just calls CreateContextMenu with the original dropdown's menuGenerator on a right-click, which will (for the time being) yield the same drop down as used by the default UI.