From 019e91bd42be2be42fc4cf2ed583f0e38f7dc846 Mon Sep 17 00:00:00 2001 From: Peechey <92683202+Peechey@users.noreply.github.com> Date: Mon, 27 Apr 2026 22:30:32 -0500 Subject: [PATCH 1/3] add sd tooltip to nodes in power report --- 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..60809e6a82 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, index, entry) + if main.popups[1] then + tooltip:Clear() + return + end + if tooltip:CheckForUpdate(entry) and entry.sd then + for _, line in ipairs(entry.sd) do + tooltip:AddLine(16, line) + end + end +end diff --git a/src/Classes/TreeTab.lua b/src/Classes/TreeTab.lua index 8e16490f57..09d069d1aa 100644 --- a/src/Classes/TreeTab.lua +++ b/src/Classes/TreeTab.lua @@ -1118,6 +1118,7 @@ function TreeTabClass:BuildPowerReportList(currentStat) x = node.x, y = node.y, type = node.type, + sd = copyTable(node.sd, true), pathDist = pathDist }) end @@ -1146,6 +1147,7 @@ function TreeTabClass:BuildPowerReportList(currentStat) pathPowerStr = "--", id = node.id, type = node.type, + sd = copyTable(node.sd, true), pathDist = "Cluster" }) end From 7c7df1289dd0a1f6a41b053f671d7fe2cd94cd14 Mon Sep 17 00:00:00 2001 From: Peechey <92683202+Peechey@users.noreply.github.com> Date: Mon, 27 Apr 2026 22:38:41 -0500 Subject: [PATCH 2/3] no need to use copyTable --- src/Classes/TreeTab.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Classes/TreeTab.lua b/src/Classes/TreeTab.lua index 09d069d1aa..8f1df2ec20 100644 --- a/src/Classes/TreeTab.lua +++ b/src/Classes/TreeTab.lua @@ -1118,7 +1118,7 @@ function TreeTabClass:BuildPowerReportList(currentStat) x = node.x, y = node.y, type = node.type, - sd = copyTable(node.sd, true), + sd = node.sd, pathDist = pathDist }) end @@ -1147,7 +1147,7 @@ function TreeTabClass:BuildPowerReportList(currentStat) pathPowerStr = "--", id = node.id, type = node.type, - sd = copyTable(node.sd, true), + sd = node.sd, pathDist = "Cluster" }) end From 7058c0d97e8d735b557ec562248d456bfce1d5da Mon Sep 17 00:00:00 2001 From: Peechey <92683202+Peechey@users.noreply.github.com> Date: Mon, 27 Apr 2026 22:41:55 -0500 Subject: [PATCH 3/3] function clean up --- src/Classes/PowerReportListControl.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Classes/PowerReportListControl.lua b/src/Classes/PowerReportListControl.lua index 60809e6a82..d33ed88456 100644 --- a/src/Classes/PowerReportListControl.lua +++ b/src/Classes/PowerReportListControl.lua @@ -125,13 +125,13 @@ function PowerReportListClass:GetRowValue(column, index, report) or "" end -function PowerReportListClass:AddValueTooltip(tooltip, index, entry) +function PowerReportListClass:AddValueTooltip(tooltip, _, node) if main.popups[1] then tooltip:Clear() return end - if tooltip:CheckForUpdate(entry) and entry.sd then - for _, line in ipairs(entry.sd) do + if tooltip:CheckForUpdate(node) and node.sd then + for _, line in ipairs(node.sd) do tooltip:AddLine(16, line) end end