Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-10-22, 05:24 PM   #1
Walkerbo
A Cobalt Mageweaver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 233
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:
  1. elseif event == "LFG_UPDATE_RANDOM_INFO" then
  2.     PVEFrame:Hide() -- debug --
  3. end
The LFG tool displays and then closes, so it is seen; further, I open the LFG tool 3 times the window does not close, so this chunk is not the way to go.

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:
  1. C_PlayerInfo.IsPlayerNPERestricted()
I have not been successful in finding the function that launches the LFG tool so I cannot hook it either.

Does anyone have any ideas on how to stop displaying the LFG tool regardless of keybinds and UI addons?
__________________
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
Fizzlemizz
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Disable the LFG tool.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off