View Single Post
07-10-22, 06:49 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,327
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.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 07-10-22 at 06:58 PM.
  Reply With Quote