Skip to content

Commit

Permalink
Round of fixes and toc update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Nov 8, 2023
1 parent c83e0d2 commit b5a66b8
Show file tree
Hide file tree
Showing 41 changed files with 8,801 additions and 4,318 deletions.
6 changes: 3 additions & 3 deletions .vscode/bookmarks.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@
"label": ""
},
{
"line": 1343,
"line": 1345,
"column": 59,
"label": ""
},
{
"line": 1407,
"line": 1409,
"column": 4,
"label": ""
},
{
"line": 1725,
"line": 1727,
"column": 97,
"label": ""
}
Expand Down
4 changes: 2 additions & 2 deletions WorldQuestTracker.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 100107
## Interface-Mainline: 100107
## Interface: 100200
## Interface-Mainline: 100200
## Interface-Wrath: 30401

## Title: World Quest Tracker
Expand Down
14 changes: 12 additions & 2 deletions WorldQuestTracker_Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1470,13 +1470,21 @@ WorldQuestTracker.OnToggleWorldMap = function(self)

WQTPathFrame.texturePool = {}
WQTPathFrame.texturesNotInUse = {}

--line size need to be dynamic with the canvas size
WQTPathFrame.Distance = WorldQuestTracker.db.profile.path.LineSize / WorldQuestTracker.db.profile.path.DotAmount
local dotScale = WorldQuestTracker.DotLineScale[WorldMapFrame.mapID] or 1
local dotAmount = WorldQuestTracker.db.profile.path.DotAmount
dotAmount = math.floor(dotAmount * dotScale)

WQTPathFrame.DotScale = dotScale
WQTPathFrame.Distance = WorldQuestTracker.db.profile.path.LineSize / (WorldQuestTracker.db.profile.path.DotAmount * dotAmount)
WQTPathFrame.bIsShowingLine = false

function WQTPathFrame.RefreshDot(Dot)
local dotSize = WorldQuestTracker.db.profile.path.DotSize
dotSize = dotSize * WQTPathFrame.DotScale
Dot:SetTexture(WorldQuestTracker.db.profile.path.DotTexture)
Dot:SetSize(WorldQuestTracker.db.profile.path.DotSize, WorldQuestTracker.db.profile.path.DotSize)
Dot:SetSize(dotSize, dotSize)
Dot:SetVertexColor(unpack(WorldQuestTracker.db.profile.path.ColorSRGB))
end

Expand Down Expand Up @@ -1506,7 +1514,9 @@ WorldQuestTracker.OnToggleWorldMap = function(self)
dotAmount = math.floor(dotAmount * dotScale)

--line length
WQTPathFrame.DotScale = dotScale
WQTPathFrame.Distance = WorldQuestTracker.db.profile.path.LineSize / dotAmount
WQTPathFrame.Distance = WQTPathFrame.Distance * 2

--if (not WQTPathFrame.bIsShowingLine) then
-- worldQuestTrackerPathProvider:ShowLine()
Expand Down
Loading

0 comments on commit b5a66b8

Please sign in to comment.