Added variables handler
p3lim-52096 [11-12-08 - 17:15]
Added variables handler
git-svn-id: svn://svn.wowinterface.com/pMinimap-54/trunk@61 ae24c21f-2f0c-4c94-9256-0092abe71e0d
diff --git a/pMinimap_Clock/pMinimap_Clock.lua b/pMinimap_Clock/pMinimap_Clock.lua
index 11c9b78..6f3f149 100644
--- a/pMinimap_Clock/pMinimap_Clock.lua
+++ b/pMinimap_Clock/pMinimap_Clock.lua
@@ -1 +1 @@
-if(not IsAddOnLoaded('Blizzard_TimeManager')) then LoadAddOn('Blizzard_TimeManager') end
TimeManagerClockButton:ClearAllPoints()
if(pMinimapDB2.coords) then
TimeManagerClockButton:SetPoint('BOTTOMLEFT', Minimap)
else
TimeManagerClockButton:SetPoint('BOTTOM', Minimap)
end
TimeManagerClockButton:Show()
TimeManagerClockButton:SetWidth(40)
TimeManagerClockButton:SetHeight(14)
TimeManagerClockButton:GetRegions():Hide()
TimeManagerClockTicker:SetPoint('CENTER', TimeManagerClockButton)
TimeManagerClockTicker:SetFont(pMinimapDB2.font, pMinimapDB2.fontsize, pMinimapDB2.fontflag)
TimeManagerAlarmFiredTexture.Show = function() TimeManagerClockTicker:SetTextColor(1, 0, 0) end
TimeManagerAlarmFiredTexture.Hide = function() TimeManagerClockTicker:SetTextColor(1, 1, 1) end
GameTimeCalendarInvitesTexture.Show = function() TimeManagerClockTicker:SetTextColor(0, 1, 0) end
GameTimeCalendarInvitesTexture.Hide = function() TimeManagerClockTicker:SetTextColor(1, 1, 1) end
TimeManagerClockButton:SetScript('OnClick', function(self, button)
if(self.alarmFiring) then
PlaySound('igMainMenuQuit')
TimeManager_TurnOffAlarm()
else
if(button == 'RightButton') then
if(not IsAddOnLoaded('Blizzard_Calendar')) then
LoadAddOn('Blizzard_Calendar')
end
ToggleCalendar()
else
ToggleTimeManager()
end
end
end)
\ No newline at end of file
+if(not IsAddOnLoaded('Blizzard_TimeManager')) then LoadAddOn('Blizzard_TimeManager') end
TimeManagerClockButton:ClearAllPoints()
if(pMinimapDB.coords) then
TimeManagerClockButton:SetPoint('BOTTOMLEFT', Minimap)
else
TimeManagerClockButton:SetPoint('BOTTOM', Minimap)
end
TimeManagerClockButton:Show()
TimeManagerClockButton:SetWidth(40)
TimeManagerClockButton:SetHeight(14)
TimeManagerClockButton:GetRegions():Hide()
TimeManagerClockTicker:SetPoint('CENTER', TimeManagerClockButton)
TimeManagerClockTicker:SetFont(pMinimapDB.font, pMinimapDB.fontsize, pMinimapDB.fontflag)
TimeManagerAlarmFiredTexture.Show = function() TimeManagerClockTicker:SetTextColor(1, 0, 0) end
TimeManagerAlarmFiredTexture.Hide = function() TimeManagerClockTicker:SetTextColor(1, 1, 1) end
GameTimeCalendarInvitesTexture.Show = function() TimeManagerClockTicker:SetTextColor(0, 1, 0) end
GameTimeCalendarInvitesTexture.Hide = function() TimeManagerClockTicker:SetTextColor(1, 1, 1) end
TimeManagerClockButton:SetScript('OnClick', function(self, button)
if(self.alarmFiring) then
PlaySound('igMainMenuQuit')
TimeManager_TurnOffAlarm()
else
if(button == 'RightButton') then
if(not IsAddOnLoaded('Blizzard_Calendar')) then
LoadAddOn('Blizzard_Calendar')
end
ToggleCalendar()
else
ToggleTimeManager()
end
end
end)
\ No newline at end of file