This commit is contained in:
Ategon 2024-09-15 05:10:15 -04:00
parent 268d4748d0
commit 1ce23e1e28
2 changed files with 3 additions and 1 deletions

View file

@ -482,6 +482,8 @@ layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -27.77
offset_bottom = -27.77
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_xbn5h")

View file

@ -65,7 +65,7 @@ func _update_icons():
var key = icons[i].key
var build_data = Data.data.buildings[key]
if (build_data.cost.has("stone") and Persister.get_value("stone", PersisterEnums.Scope.UNKNOWN, 0) < int(build_data.cost.stone)) or (build_data.cost.has("wood") and Persister.get_value("wood", PersisterEnums.Scope.UNKNOWN, 0) < int(build_data.cost.wood)):
icons[i].modulate = Color(1, 0.5, 0.5, 0.5)
icons[i].modulate = Color(1, 0.5, 0.5, 1)
else:
icons[i].modulate = Color(1, 1, 1, 1)