Skip to content

Commit

Permalink
recolor base artwork for sockets in hoverDep
Browse files Browse the repository at this point in the history
  • Loading branch information
trimbe committed Jul 20, 2024
1 parent c33eae1 commit 533d3c5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Classes/PassiveTreeView.lua
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,13 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)

-- Draw base artwork
if base then
self:DrawAsset(base, scrX, scrY, scale)
if node.type == "Socket" and hoverDep and hoverDep[node] then
SetDrawColor(1, 0, 0);
self:DrawAsset(base, scrX, scrY, scale)
SetDrawColor(1, 1, 1);
else
self:DrawAsset(base, scrX, scrY, scale)
end
end

if overlay then
Expand Down

0 comments on commit 533d3c5

Please sign in to comment.