WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Cataclysm Beta (https://www.wowinterface.com/forums/forumdisplay.php?f=82)
-   -   Force hidden minimap clock (https://www.wowinterface.com/forums/showthread.php?t=35407)

aapoo 10-12-10 07:59 PM

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!

Ailae 10-12-10 08:05 PM

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.

aapoo 10-12-10 08:15 PM

It's a odd move of them to remove that, but your code worked and I thank you very much!


All times are GMT -6. The time now is 01:41 PM.

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