From 318c4c290c4eadaa796610c4fed3966ee41ff897 Mon Sep 17 00:00:00 2001 From: Peechey Date: Tue, 12 May 2026 07:10:08 +0000 Subject: [PATCH] Apply changes from https://github.com/PathOfBuildingCommunity/PathOfBuilding/pull/9823 --- src/Classes/PowerReportListControl.lua | 12 ++++++++++++ src/Classes/TreeTab.lua | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/Classes/PowerReportListControl.lua b/src/Classes/PowerReportListControl.lua index 0b08bdd60f..d33ed88456 100644 --- a/src/Classes/PowerReportListControl.lua +++ b/src/Classes/PowerReportListControl.lua @@ -124,3 +124,15 @@ function PowerReportListClass:GetRowValue(column, index, report) or column == 5 and report.pathPowerStr or "" end + +function PowerReportListClass:AddValueTooltip(tooltip, _, node) + if main.popups[1] then + tooltip:Clear() + return + end + if tooltip:CheckForUpdate(node) and node.sd then + for _, line in ipairs(node.sd) do + tooltip:AddLine(16, line) + end + end +end diff --git a/src/Classes/TreeTab.lua b/src/Classes/TreeTab.lua index 48743874fd..ec08accac0 100644 --- a/src/Classes/TreeTab.lua +++ b/src/Classes/TreeTab.lua @@ -978,6 +978,7 @@ function TreeTabClass:BuildPowerReportList(currentStat) x = node.x, y = node.y, type = node.type, + sd = node.sd, pathDist = pathDist }) end @@ -1006,6 +1007,7 @@ function TreeTabClass:BuildPowerReportList(currentStat) pathPowerStr = "--", id = node.id, type = node.type, + sd = node.sd, pathDist = "Cluster" }) end