Added ZoneText
p3lim-52096 [02-22-09 - 14:47]
Added ZoneText
git-svn-id: svn://svn.wowinterface.com/pMinimap-54/trunk@74 ae24c21f-2f0c-4c94-9256-0092abe71e0d
diff --git a/pMinimap/pMinimap.lua b/pMinimap/pMinimap.lua
index c4e28d6..8b2af9f 100644
--- a/pMinimap/pMinimap.lua
+++ b/pMinimap/pMinimap.lua
@@ -21,6 +21,10 @@ local defaults = {
fontsize = 13,
fontflag = 'OUTLINE',
colors = {0, 0, 0, 1},
+ zone = false,
+ zonePoint1 = 'BOTTOM',
+ zonePoint2 = 'TOP',
+ zoneOffset = 8,
}
@@ -179,12 +183,20 @@ function pMinimap:ADDON_LOADED(event, addon)
self.Mail:SetText('New Mail!')
self.Mail:SetTextColor(1, 1, 1)
+ MinimapZoneTextButton:SetParent(Minimap)
+ MinimapZoneTextButton:ClearAllPoints()
+ MinimapZoneTextButton:SetPoint(pMinimapDB.zonePoint1, Minimap, pMinimapDB.zonePoint2, 0, pMinimapDB.zoneOffset)
+ MinimapZoneTextButton:SetWidth(Minimap:GetWidth() * 1.5)
+
+ MinimapZoneText:ClearAllPoints()
+ MinimapZoneText:SetAllPoints(MinimapZoneTextButton)
+ MinimapZoneText:SetFont(pMinimapDB.font, pMinimapDB.fontsize, pMinimapDB.fontflag)
+
MinimapBorder:SetTexture('')
MinimapBorderTop:Hide()
MinimapToggleButton:Hide()
GameTimeFrame:Hide()
- MinimapZoneTextButton:Hide()
MiniMapWorldMapButton:Hide()
MiniMapMeetingStoneFrame:SetAlpha(0)
MiniMapVoiceChatFrame:Hide()
@@ -209,6 +221,10 @@ function pMinimap:ADDON_LOADED(event, addon)
end
end)
+ if(not pMinimapDB.zone) then
+ MinimapZoneTextButton:Hide()
+ end
+
if(pMinimapDB.dura) then
DurabilityFrame:SetAlpha(0)
@@ -242,7 +258,7 @@ SlashCmdList.PMMC = function(str)
if(str == 'reset') then
pMinimapDB = {}
pMinimap:LoadDefaults()
- print('|cffff8080pMinimap:|r Savedvariables is now reset.')
+ print('|cffff8080pMinimap:|r Savedvariables is now reset. You should reload/relog to affect changes.')
elseif(str == 'refresh') then
Minimap:SetMaskTexture([=[Interface\ChatFrame\ChatFrameBackground]=])
print('|cffff8080pMinimap:|r Minimap mask is now refreshed.')