Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-15-10, 11:59 PM   #1
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
TimeManagerClockButton Help?

So I'm looking for the proper way to hide the TimeManagerClockButton and keep it hidden.

The problem I'm coming into is after going into any interface options and then exiting them, the TimeManagerClockButton reappears.

SLDT does this which does hide it on load, however the button returns as mentioned:

Code:
function Clock:OnEnable()
	if ( TimeManagerClockButton and TimeManagerClockButton:IsShown() ) then TimeManagerClockButton:Hide() end
    if ( db.hideGameTime ) then
        if ( GameTimeFrame and GameTimeFrame:IsShown() ) then GameTimeFrame:Hide() end
    end
    buildModule(self)
    if ( not self.frame:IsShown() ) then self.frame:Show() end
end

function Clock:OnDisable()
    self:UnregisterEvent("PLAYER_ENTERING_WORLD")
    f:SetScript("OnUpdate", nil)
    self.button:SetScript("OnClick", nil)
    if ( TimeManagerClockButton and not TimeManagerClockButton:IsShown() ) then TimeManagerClockButton:Show() end
    if ( db.hideGameTime ) then
        if ( GameTimeFrame and not GameTimeFrame:IsShown() ) then GameTimeFrame:Show() end
    end
	if ( self.frame:IsShown() ) then self.frame:Hide() end
end
I've also read this:
http://forums.wowace.com/showthread.php?t=14105

However I can't seem to find any information on the reappearance issue.

Anyone else run into this?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » TimeManagerClockButton Help?


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