Skip to content

Commit

Permalink
2.5.2
Browse files Browse the repository at this point in the history
Fixed issue with Aliases not working
Fixed edge case where gold totals tow wouldn't collapse correctly when multiple columns was enabled
  • Loading branch information
Noshei committed Sep 25, 2024
1 parent 8a4890d commit 6e3bc71
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
3 changes: 3 additions & 0 deletions DisplayCollapse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ function GT:CollapseDisplay()
if itemID == 9999999998 then
itemFrame:SetPoint("TOPLEFT", GT.baseFrame.backdrop, "TOPLEFT")
end
if itemID == 9999999999 then
itemFrame:SetPoint("TOPLEFT", GT.Display.Frames[9999999998], "BOTTOMLEFT")
end
end
end

Expand Down
6 changes: 0 additions & 6 deletions DisplayCreation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,6 @@ function GT:DisplayFrameRarity(frame, iconRarity)
if not GT.db.profile.General.rarityBorder then
return
end
--[[if not frame then
return
end
if not iconRarity then
return
end]]

frame.iconRarity = GT.Pools.texturePool:Acquire()
frame.iconRarity:SetParent(frame)
Expand Down
29 changes: 16 additions & 13 deletions GatheringTracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -541,14 +541,17 @@ function GT:PrepareDataForDisplay(event, wait)
)
end

if GT.db.profile.General.displayAlias and GT:GroupDisplayCheck() and aliases then
GT:InitiateFrameProcess(
0,
413577,
nil,
nil,
GT:CreateAliasTable()
)
if GT.db.profile.General.displayAlias and GT:GroupDisplayCheck() then
local aliases = GT:CreateAliasTable()
if #aliases > 0 then
GT:InitiateFrameProcess(
0,
413577,
nil,
nil,
GT:CreateAliasTable()
)
end
end

GT:AllignRows()
Expand All @@ -562,7 +565,7 @@ end
function GT:SetupItemRows()
GT.Debug("SetupItemRows", 1)
for itemID, itemData in pairs(GT.InventoryData) do
GT.Debug("Prepare Data for Display", 2, itemID)
GT.Debug("Setup Item Row", 2, itemID)
if itemID <= #GT.ItemData.Other.Other then
GT:InitiateFrameProcess(
itemID,
Expand Down Expand Up @@ -815,9 +818,9 @@ function GT:ProcessSoloData(event)

for index, id in ipairs(GT.IDs) do
local itemCount = 0
if id == 1 then
if id == GT.ItemData.Other.Other[1].id then
itemCount = math.floor((GetMoney() / 10000) + 0.5)
elseif id == 2 then
elseif id == GT.ItemData.Other.Other[2].id then
for bagIndex = 0, 4 do
itemCount = itemCount + C_Container.GetContainerNumFreeSlots(bagIndex)
end
Expand Down Expand Up @@ -853,9 +856,9 @@ function GT:CreateDataMessage(event, wait)

for index, id in ipairs(GT.IDs) do
local itemCount = 0
if id == 1 then
if id == GT.ItemData.Other.Other[1].id then
itemCount = math.floor((GetMoney() / 10000) + 0.5)
elseif id == 2 then
elseif id == GT.ItemData.Other.Other[2].id then
for bagIndex = 0, 4 do
itemCount = itemCount + C_Container.GetContainerNumFreeSlots(bagIndex)
end
Expand Down
2 changes: 1 addition & 1 deletion GatheringTracker.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: Gathering Tracker
## Notes: Addon for tracking gathered items, supports solo players and groups
## Author: Noshei
## Version: 2.5.1
## Version: 2.5.2
## OptionalDeps: TradeSkillMaster
## SavedVariables: GatheringTrackerDB
## AddonCompartmentFunc: GatheringTracker_OnAddonCompartmentClick
Expand Down

0 comments on commit 6e3bc71

Please sign in to comment.