1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 12:33:14 +00:00

Fix RestoreDefaultButton having an alpha value of 0.5

This commit is contained in:
Manolis Papadeas 2021-06-04 22:13:48 +03:00
parent ec1b29eb5e
commit a67855a7f2

View file

@ -110,7 +110,7 @@ func change_icon_colors() -> void:
for node in get_tree().get_nodes_in_group("UIButtons"):
if node is TextureButton:
node.modulate = Global.modulate_icon_color
if node.disabled:
if node.disabled and not ("RestoreDefaultButton" in node.name):
node.modulate.a = 0.5
elif node is Button:
var texture : TextureRect