Skip to content

Commit

Permalink
Fixed tomtom icon overlaping tracker arrow, Fixed map pin button over…
Browse files Browse the repository at this point in the history
…lap with WQT interface, removed some prints
  • Loading branch information
Tercioo committed Nov 29, 2020
1 parent 550a1b2 commit 98e3e9c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
9 changes: 5 additions & 4 deletions WorldQuestTracker_Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2383,7 +2383,7 @@ WorldQuestTracker.OnToggleWorldMap = function (self)
--check if is showing a zone map
if (WorldQuestTracker.GetCurrentZoneType() == "zone") then
local mapId = WorldQuestTracker.MapData.FactionMapId[worldSummary.FactionSelected]
print ("faction ID:", worldSummary.FactionSelected)
--print ("faction ID:", worldSummary.FactionSelected)
if (mapId) then
--change the map to faction map
WorldMapFrame:SetMapID(mapId)
Expand Down Expand Up @@ -4435,8 +4435,10 @@ WorldQuestTracker.OnToggleWorldMap = function (self)
local resource_PetText = DF:CreateLabel (resource_PetFrame, "", ResourceFontTemplate)

resource_APowerIcon:SetPoint ("right", resource_APowerText, "left", -2, 0)

resource_ResourcesText:SetPoint ("right", resource_APowerIcon, "left", -10, 0)
resource_ResourcesIcon:SetPoint ("right", resource_ResourcesText, "left", -2, 0)

resource_GoldText:SetPoint ("right", resource_ResourcesIcon, "left", -10, 0)
resource_GoldIcon:SetPoint ("right", resource_GoldText, "left", -2, 0)

Expand All @@ -4445,7 +4447,8 @@ WorldQuestTracker.OnToggleWorldMap = function (self)

resource_PetText.text = 996

WorldQuestTracker.IndicatorsAnchor = resource_APowerText
WorldQuestTracker.IndicatorsAnchor = resource_APowerText --ANCHOR

WorldQuestTracker.WorldMap_GoldIndicator = resource_GoldText
WorldQuestTracker.WorldMap_ResourceIndicator = resource_ResourcesText
WorldQuestTracker.WorldMap_APowerIndicator = resource_APowerText
Expand Down Expand Up @@ -4689,9 +4692,7 @@ WorldQuestTracker.OnToggleWorldMap = function (self)
widget.FactionPulseAnimation:Play()
end
end

end

end

local indicatorsAnimationOnLeave = function (self, questType)
Expand Down
5 changes: 2 additions & 3 deletions WorldQuestTracker_FrameAPI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,11 @@ function WorldQuestTracker.UpdateStatusBarAnchors()

if (WorldMapFrame.isMaximized) then
WorldQuestTrackerOptionsButton:SetPoint ("topleft", statusBar, "topleft", 2, -0)
WorldQuestTracker.IndicatorsAnchor:SetPoint ("topright", statusBar, "topright", -40, -3)
WorldQuestTracker.IndicatorsAnchor:SetPoint ("topright", statusBar, "topright", -80, -3)
else
WorldQuestTrackerOptionsButton:SetPoint ("bottomleft", statusBar, "bottomleft", 0, 2)
WorldQuestTracker.IndicatorsAnchor:SetPoint ("topright", statusBar, "topright", -40, -3)
WorldQuestTracker.IndicatorsAnchor:SetPoint ("topright", statusBar, "topright", -80, -3)
end

end
end

Expand Down
2 changes: 1 addition & 1 deletion WorldQuestTracker_Tracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ function WorldQuestTracker.GetOrCreateTrackerWidget (index)
end)

f.TomTomTrackerIcon = CreateFrame("button", nil, f) --no need backdrop
f.TomTomTrackerIcon:SetPoint ("right", f.SuperTrackButton, "left", -6, 0)
f.TomTomTrackerIcon:SetPoint ("right", f.Arrow, "left", -6, 0)
f.TomTomTrackerIcon:SetSize (24, 24)
f.TomTomTrackerIcon:SetAlpha (.5)
f.TomTomTrackerIcon.Icon = f.TomTomTrackerIcon:CreateTexture (nil, "overlay")
Expand Down

0 comments on commit 98e3e9c

Please sign in to comment.