1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-21 23:34:18 +00:00
This commit is contained in:
Steffo 2023-10-02 18:50:06 +02:00
parent 0e2552c9b9
commit 732afe9143
Signed by: steffo
GPG key ID: 2A24051445686895
3 changed files with 5 additions and 2 deletions

View file

@ -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"]

View file

@ -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)

View file

@ -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")