Tidy UP!
This commit is contained in:
parent
7ce2863cfd
commit
e216364ec1
12 changed files with 84 additions and 71 deletions
|
|
@ -23,14 +23,7 @@ func update_floor(floor_num: int):
|
|||
_displayed_floor = floor_num
|
||||
return
|
||||
_displayed_floor = floor_num
|
||||
label.pivot_offset = Vector2(0, label.size.y)
|
||||
var tween = create_tween()
|
||||
tween.tween_property(label, "scale:y", 0.0, 0.15).set_trans(Tween.TRANS_CUBIC).set_ease(Tween.EASE_IN)
|
||||
tween.tween_callback(func():
|
||||
label.text = new_text
|
||||
label.pivot_offset = Vector2.ZERO
|
||||
)
|
||||
tween.tween_property(label, "scale:y", 1.0, 0.15).set_trans(Tween.TRANS_CUBIC).set_ease(Tween.EASE_OUT)
|
||||
UIUtils.flip_label_text(label, new_text)
|
||||
|
||||
func update_saved(count: int):
|
||||
$StatsColumn/SavedLabel.text = "SAVED: " + str(count)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue