diff --git a/interface/game_ui.tscn b/interface/game_ui.tscn index 8eef1bf..207ad07 100644 --- a/interface/game_ui.tscn +++ b/interface/game_ui.tscn @@ -42,7 +42,7 @@ offset_bottom = 54.0 grow_horizontal = 0 size_flags_horizontal = 8 text = "Shop" -alignment = 2 +alignment = 0 [connection signal="pressed" from="SpawnButton" to="." method="_on_spawn_button_pressed"] [connection signal="pressed" from="ShopButton" to="." method="_on_shop_button_pressed"] diff --git a/interface/score_button.gd b/interface/score_button.gd index 2331bf2..a4b4eb5 100644 --- a/interface/score_button.gd +++ b/interface/score_button.gd @@ -3,4 +3,6 @@ class_name ScoreButton func set_score(total: int): + if total >= 1000: + add_theme_font_size_override("font_size", 8) text = "$%0.2f" % (float(total) / 100) diff --git a/interface/score_button.tscn b/interface/score_button.tscn index 8774234..bf530f2 100644 --- a/interface/score_button.tscn +++ b/interface/score_button.tscn @@ -7,6 +7,7 @@ custom_minimum_size = Vector2(72, 0) offset_right = 72.0 offset_bottom = 54.0 size_flags_horizontal = 0 +theme_override_font_sizes/font_size = 16 text = "$0.00" -alignment = 0 +alignment = 2 script = ExtResource("1_ol56t")