From 625d18d377d4249818aaa8d6c6007dbea75f3efd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kelly=20Crabbe=CC=81?= Date: Wed, 25 Dec 2013 03:39:16 +0100 Subject: [PATCH] And then now WITH the correct zonecolor updates --- core.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/core.lua b/core.lua index 16b3c7d..ecd4f79 100755 --- a/core.lua +++ b/core.lua @@ -137,7 +137,6 @@ function events:PLAYER_LOGIN(...) MinimapZoneText:SetPoint("TOP", Minimap, "TOP", 0, -1) MinimapZoneText:SetFont(font, 10) MinimapZoneText:SetJustifyH("CENTER") - MinimapZoneText:SetTextColor(LookInTehCorner:GetLocTextColor()) else MinimapZoneText:Hide() end @@ -184,10 +183,16 @@ function events:PLAYER_LOGIN(...) self:UnregisterEvent"ADDON_LOADED" end +function events:ZONE_CHANGED(...) + + MinimapZoneText:SetTextColor(LookInTehCorner:GetLocTextColor()) + + self:RegisterEvent"ZONE_CHANGED_INDOORS" + self:RegisterEvent"ZONE_CHANGED_NEW_AREA" +end -- Event handling LookInTehCorner:SetScript("OnEvent", function(self, event, ...) events[event](self, event, ...) -- call one of the functions above end) -LookInTehCorner:RegisterEvent"PLAYER_LOGIN" --- LookInTehCorner:RegisterEvent"UPDATE_PENDING_MAIL" \ No newline at end of file +LookInTehCorner:RegisterEvent"PLAYER_LOGIN" \ No newline at end of file -- 1.7.9.5