From db898e84aa8cfcb312a5e20051d7463fc08ab098 Mon Sep 17 00:00:00 2001 From: p3lim-52096 Date: Mon, 20 Oct 2008 20:13:59 +0000 Subject: [PATCH] Fixed the clock through a hack git-svn-id: svn://svn.wowinterface.com/pMinimap-54/trunk@34 ae24c21f-2f0c-4c94-9256-0092abe71e0d --- pMinimap/pMinimap.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pMinimap/pMinimap.lua b/pMinimap/pMinimap.lua index f68d284..eb0e64d 100644 --- a/pMinimap/pMinimap.lua +++ b/pMinimap/pMinimap.lua @@ -2,6 +2,18 @@ pMinimap = CreateFrame('Frame', 'pMinimap', UIParent) pMinimap:SetScript('OnEvent', function(self, event, ...) self[event](self, event, ...) end) pMinimap:RegisterEvent('ADDON_LOADED') +pMinimapToggleClock = InterfaceOptionsDisplayPanelShowClock_SetFunc +InterfaceOptionsDisplayPanelShowClock_SetFunc = function() end + +for _, check in pairs{InterfaceOptionsDisplayPanelShowClock} do + local f = check:CreateFontString(nil, 'OVERLAY', 'GameFontNormal') + f:SetPoint('TOPLEFT', check, 0, 10) + f:SetText('|cff00ff33OVERRID BY PMINIMAP!|r') + + check:Disable() + check.Enable = function() end +end + function pMinimap.ADDON_LOADED(self, event, name) if(name ~= 'pMinimap') then return end local db = pMinimapDB or {point = {'TOPRIGHT', 'TOPRIGHT', -15, -15}, scale = 0.9, offset = 1, colors = {0, 0, 0, 1}, durability = true, coords = false, clock = true} -- 1.7.9.5