Keybinds are registered through
FrameXML/Bindings.xml. The lines in particular that you'd be interested start at line 1050.
Code:
<Binding name="TOGGLEGROUPFINDER" header="BLANK13" category="BINDING_HEADER_INTERFACE">
PVEFrame_ToggleFrame();
</Binding>
<Binding name="TOGGLEDUNGEONSANDRAIDS" category="BINDING_HEADER_INTERFACE">
PVEFrame_ToggleFrame("GroupFinderFrame", nil);
</Binding>
FrameXML/Bindings.xml:1050
As for the UI itself, it either goes through
PVEFrame_ToggleFrame() or
PVEFrame_ShowFrame(). The former ends up calling the later, but it also has some processing of its own if the panel is already shown.
Finally, I would point out this could violate
Blizzard's Addon Policy if you aren't planning on providing replacement functionality.
3) Add-ons must not negatively impact World of Warcraft realms or other players.
Add-ons will perform no function which, in Blizzard Entertainment’s sole discretion, negatively impacts the performance of the World of Warcraft realms or otherwise negatively affects the game for other players.
|