From 1ce23e1e2861b3c30f51b3e3549a3980ef33e4e1 Mon Sep 17 00:00:00 2001 From: Ategon Date: Sun, 15 Sep 2024 05:10:15 -0400 Subject: [PATCH] Fix UI --- Main.tscn | 2 ++ ui/building_menu.gd | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Main.tscn b/Main.tscn index eb79ffc..9909169 100644 --- a/Main.tscn +++ b/Main.tscn @@ -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") diff --git a/ui/building_menu.gd b/ui/building_menu.gd index 9e62cdc..d5d1893 100644 --- a/ui/building_menu.gd +++ b/ui/building_menu.gd @@ -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)