View Single Post
12-09-22, 02:01 AM   #7
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Thanks all for tips and suggestions.

I was finally able to make it works in this way:

Lua Code:
  1. local function HideIt(frame)
  2.     frame:HookScript("OnShow", frame.Hide)
  3.     frame:SetAlpha(0)
  4.     frame:Hide()
  5. end
  6.  
  7. ... other code ...
  8.  
  9. if cfg["cleanminimap"] == true then
  10.  
  11.     -- load the stuff
  12.     LoadAddOn("Blizzard_TimeManager")
  13.     -- zone text
  14.     HideIt(MinimapZoneText)
  15.     HideIt(MinimapCluster.ZoneTextButton)
  16.     HideIt(MinimapCluster.BorderTop)
  17.     -- calendar
  18.     HideIt(GameTimeFrame)
  19.     -- tracking
  20.     HideIt(MinimapCluster.Tracking)
  21.     -- zooms
  22.     HideIt(Minimap.ZoomIn)
  23.     HideIt(Minimap.ZoomOut)
  24.     -- clock
  25.     HideIt(GameTimeFrame)
  26.     HideIt(TimeManagerClockButton)
  27.  
  28. end

I was not able to make it happens during PLAYER_LOGIN event but it was surely something I wrong in the event triggering.

Btw I think AnalogueClock is a very cute addons so'll use it instead

Thanks so muche to everyone... it is really appreciated.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote