e
This commit is contained in:
parent
575eaa9b31
commit
8b83cc6bd2
3 changed files with 202 additions and 11 deletions
10
tools/progress_bar.gd
Normal file
10
tools/progress_bar.gd
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
extends ProgressBar
|
||||
|
||||
@export var speed : float = 2
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
value = lerp(value, 100.0, speed * delta)
|
||||
|
||||
func _on_visibility_changed() -> void:
|
||||
if visible:
|
||||
value = 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue