idk
This commit is contained in:
parent
f4dc1a79fd
commit
f92b3a6f75
16 changed files with 217 additions and 39 deletions
19
RechargeProgress.gd
Normal file
19
RechargeProgress.gd
Normal file
|
@ -0,0 +1,19 @@
|
|||
extends TextureProgressBar
|
||||
|
||||
var animating = false
|
||||
|
||||
func start_countdown(time: float):
|
||||
animating = true
|
||||
value = 100
|
||||
var tween = get_tree().create_tween()
|
||||
tween.tween_property(self, "value", 0, time)
|
||||
await tween.finished
|
||||
animating = false
|
||||
|
||||
func start_countup(time: float):
|
||||
animating = true
|
||||
value = 0
|
||||
var tween = get_tree().create_tween()
|
||||
tween.tween_property(self, "value", 100, time)
|
||||
await tween.finished
|
||||
animating = false
|
Loading…
Add table
Add a link
Reference in a new issue