Skip to content

Commit 8f71bf5

Browse files
vaisestobokingLocalIdentity
authored
Add build comparison tab (#1830)
* Apply changes from PathOfBuildingCommunity/PathOfBuilding#9543 * Add missing variables required for compare * Update compare calcs tab for poe2 * Fix incorrect stat set control handlers * Use correct realm for comparison trade * Remove crucible and scourge mods from compare trader * Fix comparison tool issues with local vs global mods, inverted values * Change tradehash exports to export a map of hash to stat description for each mod * Fix radius jewels, charms, and desecrate-only mods in comparison trader * Add comparison stat set selector * Fix comparison minion control anchor * Fix stages in comparison tab * remove .rej file * Deduplicate trade category code. Fixes poe2 category differences for comparison trade * Fix comparison power report tooltip crash caused by lack of passive skill effect * Port PR #9798 Port of PR PathOfBuildingCommunity/PathOfBuilding#9798 * Fix companion crash * Fix control elements being interactable while hidden * Stop trade popup from showing item tooltips in background --------- Co-authored-by: oboking <oboking@users.noreply.github.com> Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 57b14b5 commit 8f71bf5

30 files changed

Lines changed: 14998 additions & 7838 deletions

src/Classes/CalcSectionControl.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function CalcSectionClass:Draw(viewPort, noTooltip)
246246
DrawString(x + 3, lineY + 3, "LEFT", 16, "VAR BOLD", textColor..subSec.label..":")
247247
if subSec.data.extra then
248248
local x = x + 3 + DrawStringWidth(16, "VAR BOLD", subSec.label) + 10
249-
DrawString(x, lineY + 3, "LEFT", 16, "VAR", "^7"..self:FormatStr(subSec.data.extra, actor))
249+
DrawString(x, lineY + 3, "LEFT", 16, "VAR", "^7"..formatCalcStr(subSec.data.extra, actor))
250250
end
251251
end
252252
-- Draw line below label
@@ -301,7 +301,7 @@ function CalcSectionClass:Draw(viewPort, noTooltip)
301301
end
302302
local textSize = rowData.textSize or 14
303303
SetViewport(colData.x + 3, colData.y, colData.width - 4, colData.height)
304-
DrawString(1, 9 - textSize/2, "LEFT", textSize, "VAR", "^7"..self:FormatStr(colData.format, actor, colData))
304+
DrawString(1, 9 - textSize/2, "LEFT", textSize, "VAR", "^7"..formatCalcStr(colData.format, actor, colData))
305305
SetViewport()
306306
end
307307
end

0 commit comments

Comments
 (0)