WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   How to force frame:Hide() to work upon login? (https://www.wowinterface.com/forums/showthread.php?t=59488)

Encoresx 01-27-23 03:31 AM

How to force frame:Hide() to work upon login?
 
I've got a little addon that does MainMenuBar:Hide()

It used to do MainMenuBar:SetAlpha(0) but it kept showing cooldown ticks and it was very distracting so I opted for Hide(). Problem is, it doesn't work immediately upon login and I have to run the chat command I have created within the addon and associated with hiding.

How to supercede whatever Blizzard UI is doing that prevents this from working immediately?

LudiusMaximus 01-29-23 02:49 PM

You could use a timer and execute your code a few seconds after login.

EvilMaddness 01-29-23 05:48 PM

On event
 
I would try a On Event Player_Entering_World ect.


All times are GMT -6. The time now is 09:04 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI