mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-25 09:04:19 +00:00
11 lines
209 B
GDScript
11 lines
209 B
GDScript
extends Button
|
|
class_name ScoreButton
|
|
|
|
var score: int = 0
|
|
|
|
|
|
func set_score(total: int):
|
|
score = total
|
|
if total >= 1000:
|
|
add_theme_font_size_override("font_size", 8)
|
|
text = "$%0.2f" % (float(total) / 100)
|