Removed unused modules
p3lim-52096 [01-08-09 - 18:28]
Removed unused modules
git-svn-id: svn://svn.wowinterface.com/pMinimap-54/trunk@71 ae24c21f-2f0c-4c94-9256-0092abe71e0d
diff --git a/pMinimap_Clock/pMinimap_Clock.lua b/pMinimap_Clock/pMinimap_Clock.lua
deleted file mode 100644
index 6f3f149..0000000
--- a/pMinimap_Clock/pMinimap_Clock.lua
+++ /dev/null
@@ -1 +0,0 @@
-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
diff --git a/pMinimap_Clock/pMinimap_Clock.toc b/pMinimap_Clock/pMinimap_Clock.toc
deleted file mode 100644
index d490a12..0000000
--- a/pMinimap_Clock/pMinimap_Clock.toc
+++ /dev/null
@@ -1,9 +0,0 @@
-## Interface: 30000
-## Author: p3lim
-## Version: 30000.wowi:revision
-## Title: |cffff6000p|rMinimap_Clock
-## Notes: Clock module for pMinimap
-## RequiredDeps: pMinimap
-## LoadOnDemand: 1
-
-pMinimap_Clock.lua
\ No newline at end of file
diff --git a/pMinimap_Coords/pMinimap_Coords.lua b/pMinimap_Coords/pMinimap_Coords.lua
deleted file mode 100644
index 989cc81..0000000
--- a/pMinimap_Coords/pMinimap_Coords.lua
+++ /dev/null
@@ -1 +0,0 @@
-MiniMapCoordButton = CreateFrame('Button', 'MiniMapCoord', Minimap)
MiniMapCoordButton:SetWidth(40)
MiniMapCoordButton:SetHeight(14)
MiniMapCoordButton:Show()
MiniMapCoordButton:RegisterForClicks('AnyUp')
MiniMapCoordButton:SetScript('OnClick', function() ToggleFrame(WorldMapFrame) end)
if(pMinimapDB.clock) then
MiniMapCoordButton:SetPoint('BOTTOMRIGHT', Minimap)
else
MiniMapCoordButton:SetPoint('BOTTOM', Minimap)
end
MiniMapCoordText = MiniMapCoordButton:CreateFontString('MiniMapCoordText', 'OVERLAY')
MiniMapCoordText:SetPoint('CENTER', MiniMapCoordButton)
MiniMapCoordText:SetFont(pMinimapDB.font, pMinimapDB.fontsize, pMinimapDB.fontflag)
MiniMapCoordText:SetTextColor(1, 1, 1)
local total = 0
MiniMapCoordButton:SetScript('OnUpdate', function(self, elapsed)
total = total + elapsed
if(total > 0.25) then
if(IsInInstance()) then
MiniMapCoordText:SetText()
else
local x, y = GetPlayerMapPosition('player')
MiniMapCoordText:SetFormattedText('%.0f,%.0f', x*100, y*100)
end
total = 0
end
end)
MiniMapCoordButton:RegisterEvent('ZONE_CHANGED_NEW_AREA')
MiniMapCoordButton:SetScript('OnEvent', function()
SetMapToCurrentZone()
end)
\ No newline at end of file
diff --git a/pMinimap_Coords/pMinimap_Coords.toc b/pMinimap_Coords/pMinimap_Coords.toc
deleted file mode 100644
index 1dd657e..0000000
--- a/pMinimap_Coords/pMinimap_Coords.toc
+++ /dev/null
@@ -1,9 +0,0 @@
-## Interface: 30000
-## Author: p3lim
-## Version: 30000.wowi:revision
-## Title: |cffff6000p|rMinimap_Coords
-## Notes: Coords module for pMinimap
-## RequiredDeps: pMinimap
-## LoadOnDemand: 1
-
-pMinimap_Coords.lua
\ No newline at end of file
diff --git a/pMinimap_Durability/pMinimap_Durability.lua b/pMinimap_Durability/pMinimap_Durability.lua
deleted file mode 100644
index dbe6b5b..0000000
--- a/pMinimap_Durability/pMinimap_Durability.lua
+++ /dev/null
@@ -1 +0,0 @@
-function pMinimap:UPDATE_INVENTORY_ALERTS()
local maxStatus = 0
for id in pairs(INVENTORY_ALERT_STATUS_SLOTS) do
local status = GetInventoryAlertStatus(id)
if(status > maxStatus) then
maxStatus = status
end
end
local color = INVENTORY_ALERT_COLORS[maxStatus]
if(color) then
Minimap:SetBackdropColor(color.r, color.g, color.b)
else
Minimap:SetBackdropColor(unpack(pMinimapDB.colors))
end
end
pMinimap:RegisterEvent('UPDATE_INVENTORY_ALERTS')
pMinimap.UPDATE_INVENTORY_ALERTS()
DurabilityFrame:SetAlpha(0)
\ No newline at end of file
diff --git a/pMinimap_Durability/pMinimap_Durability.toc b/pMinimap_Durability/pMinimap_Durability.toc
deleted file mode 100644
index ad235dc..0000000
--- a/pMinimap_Durability/pMinimap_Durability.toc
+++ /dev/null
@@ -1,9 +0,0 @@
-## Interface: 30000
-## Author: p3lim
-## Version: 30000.wowi:revision
-## Title: |cffff6000p|rMinimap_Durability
-## Notes: Durability module for pMinimap
-## RequiredDeps: pMinimap
-## LoadOnDemand: 1
-
-pMinimap_Durability.lua
\ No newline at end of file