Skip to content

Commit 5ce11cf

Browse files
nofate121nofate121
andauthored
in compare mode color a mastery blue when it changed (#8044)
Co-authored-by: nofate121 <nofate121@abc.def>
1 parent 1cbc926 commit 5ce11cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Classes/PassiveTreeView.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,9 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
589589
elseif not compareNode.alloc and node.alloc then
590590
-- Base has not, current has, color red (Remove nodes to match)
591591
SetDrawColor(1, 0, 0)
592+
elseif node.type == "Mastery" and compareNode.alloc and node.alloc and node.sd ~= compareNode.sd then
593+
-- Node is a mastery, both have it allocated, but mastery changed, color it blue
594+
SetDrawColor(0, 0, 1)
592595
else
593596
-- Both have or both have not, use white
594597
SetDrawColor(1, 1, 1)
@@ -614,6 +617,9 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
614617
elseif not compareNode.alloc and node.alloc then
615618
-- Base has not, current has, color red (Remove nodes to match)
616619
SetDrawColor(1, 0, 0)
620+
elseif node.type == "Mastery" and compareNode.alloc and node.alloc and node.sd ~= compareNode.sd then
621+
-- Node is a mastery, both have it allocated, but mastery changed, color it blue
622+
SetDrawColor(0, 0, 1)
617623
else
618624
-- Both have or both have not, use white
619625
SetDrawColor(1, 1, 1)

0 commit comments

Comments
 (0)