Skip to content

Commit 4ac506f

Browse files
committed
hiding images from tree
1 parent 7d2df9b commit 4ac506f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/Classes/PassiveTreeView.lua

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,13 +759,20 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
759759
end
760760
elseif node.type == "OnlyImage" then
761761
-- This is the icon that appears in the center of many groups
762-
base = tree:GetAssetByName(node.activeEffectImage)
763-
762+
if not node.unlockConstraint then
763+
base = tree:GetAssetByName(node.activeEffectImage)
764+
elseif checkUnlockConstraints(build, node) then
765+
base = tree:GetAssetByName(node.activeEffectImage)
766+
end
764767
SetDrawLayer(nil, 15)
765768
else
766769
-- Normal node (includes keystones and notables)
767770
if node.activeEffectImage then
768-
effect = tree:GetAssetByName(node.activeEffectImage)
771+
if not node.unlockConstraint then
772+
effect = tree:GetAssetByName(node.activeEffectImage)
773+
elseif checkUnlockConstraints(build, node) then
774+
effect = tree:GetAssetByName(node.activeEffectImage)
775+
end
769776
end
770777
--Zeichnet Rand und Kern
771778
if not node.unlockConstraint then

0 commit comments

Comments
 (0)