Thread Tools Display Modes
01-27-23, 03:31 AM   #1
Encoresx
A Deviate Faerie Dragon
Join Date: Oct 2017
Posts: 11
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?
  Reply With Quote
01-29-23, 02:49 PM   #2
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
You could use a timer and execute your code a few seconds after login.
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote
01-29-23, 05:48 PM   #3
EvilMaddness
An Aku'mai Servant
 
EvilMaddness's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2015
Posts: 33
On event

I would try a On Event Player_Entering_World ect.
__________________
The Maddness Within lua
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to force frame:Hide() to work upon login?


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