Thread Tools Display Modes
10-12-10, 07:59 PM   #1
aapoo
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jan 2008
Posts: 14
Force hidden minimap clock

I'm poking around and working on updating my ui and I've come across a mod I really love from 2.43 (Old I know) and I've managed to update most parts of it but I then ran into a brick wall.

How the hell do I force the minimap clock to be hidden? I've not found any cVar to hide it with, tried the simple names I thought it might be called (Clock:Hide() MinimapClock:Hide() etc)

Thankful for replys!
 
10-12-10, 08:05 PM   #2
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 318
They removed the Interface-option and its associated cVar as far as I can tell, but you can hide it with this:

Code:
local f = CreateFrame("Frame", nil, UIParent)
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent", function(self, event, name)
    if name == "Blizzard_TimeManager" then
        TimeManagerClockButton:Hide()
        TimeManagerClockButton:SetScript("OnShow", function(self)
            TimeManagerClockButton:Hide()
        end)
    end
end)
You have to register for ADDON_LOADED since TimeManagerClockButton doesn't exist until Blizzard_TimeManager is loaded.
__________________
Oh, the simulated horror!
 
10-12-10, 08:15 PM   #3
aapoo
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jan 2008
Posts: 14
It's a odd move of them to remove that, but your code worked and I thank you very much!
 
 

WoWInterface » AddOns, Compilations, Macros » Cataclysm Beta » Force hidden minimap clock

Thread Tools
Display Modes

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