Skip to content

Commit 8966b88

Browse files
Co-authored-by: Peechey <Peechey@users.noreply.github.com>
1 parent 3c874ec commit 8966b88

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/Classes/PowerReportListControl.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,15 @@ function PowerReportListClass:GetRowValue(column, index, report)
124124
or column == 5 and report.pathPowerStr
125125
or ""
126126
end
127+
128+
function PowerReportListClass:AddValueTooltip(tooltip, _, node)
129+
if main.popups[1] then
130+
tooltip:Clear()
131+
return
132+
end
133+
if tooltip:CheckForUpdate(node) and node.sd then
134+
for _, line in ipairs(node.sd) do
135+
tooltip:AddLine(16, line)
136+
end
137+
end
138+
end

src/Classes/TreeTab.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,7 @@ function TreeTabClass:BuildPowerReportList(currentStat)
978978
x = node.x,
979979
y = node.y,
980980
type = node.type,
981+
sd = node.sd,
981982
pathDist = pathDist
982983
})
983984
end
@@ -1006,6 +1007,7 @@ function TreeTabClass:BuildPowerReportList(currentStat)
10061007
pathPowerStr = "--",
10071008
id = node.id,
10081009
type = node.type,
1010+
sd = node.sd,
10091011
pathDist = "Cluster"
10101012
})
10111013
end

0 commit comments

Comments
 (0)