Disable the LFG tool.
Hi all
I am trying to prevent a player from using the LFG tool. To do so I use the "LFG_UPDATE_RANDOM_INFO" event and then close the LFG window. Here is my chunk; Lua Code:
I can disable the LFG micro button but the keybind "I" still launches the LFG tool. The added issue is that the LFG frame and micro button names change with the different UI addons, (eg ELVUI). I have found the test that applies before a character hits level 10 yet cannot find a CVar that I can set. Lua Code:
Does anyone have any ideas on how to stop displaying the LFG tool regardless of keybinds and UI addons? |
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"> 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. Quote:
|
Quote:
Additionally, while the "sole discretion" part makes it a catch-all, that rule is specifically worded to mean things like spamming chat, causing lag, or otherwise affecting players that don't have the addon. One such example that would violate this rule is why addons can't change a character's title. A long time ago, titles were instantly changeable, and certain enterprising players found out that everyone nearby would lag if an addon spam-changed titles due to the character's name changing and the server having to process that change for every connected client. Nowadays, you need to hardware change the title and there's an internal cooldown before and after the title actually updates. |
Hi
@SDPhantom, thanks for identifying the correct function, and thanks for the warning; as Kanegasi said I am building an IronMan addon. @Kanegasi, correct, I knew someone would crack the code before I launched:D Cheers for the replies. |
Quote:
Quote:
Quote:
Quote:
|
Quote:
Quote:
|
Quote:
|
All times are GMT -6. The time now is 07:54 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI