1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-10-16 14:27:26 +00:00
swear-jar/interface/score_button.gd
2023-10-02 18:50:06 +02:00

8 lines
174 B
GDScript

extends Button
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)