Thread Tools Display Modes
11-13-22, 12:19 AM   #1
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
GameMenu

Hi all,

I am this code to open GameMenu:

Lua Code:
  1. GameMenuFrame:Show()

and it works nicely.

the problem is that frame is not closing when for example I press the option menu from there like it is happening when I open the menu pressing ESC and then options. It remains opened, with the options frame opened too below

I dont remember but I think that before patch 10 it is not occured, but I can be wrong.

I have tried to use:
Lua Code:
  1. ToggleGameMenu()

but it is protected and make a strong taint as stated in documentation.

So I am asking ... is it the right way of call the menu or I am supposed to call the second one using a secure function ?

Thanks.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote
11-14-22, 08:01 AM   #2
plusmouse
A Defias Bandit
Join Date: Jun 2021
Posts: 2
ShowUIPanel(GameMenuFrame) should work taint free
  Reply With Quote
11-14-22, 01:11 PM   #3
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Hi,

thanks for this ... it works like a charm

Your input is really appreciated.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » GameMenu


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