mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-21 23:34:18 +00:00
UI fixes
This commit is contained in:
parent
0e2552c9b9
commit
732afe9143
3 changed files with 5 additions and 2 deletions
|
@ -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"]
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue