manual merge
This commit is contained in:
parent
a2772f9147
commit
2a35d1236d
15 changed files with 695 additions and 142 deletions
|
|
@ -1,10 +1,17 @@
|
|||
extends ProgressBar
|
||||
|
||||
@export var speed : float = 2
|
||||
@export var target_value : float
|
||||
|
||||
func _ready():
|
||||
max_value = 60000
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
value = lerp(value, 100.0, speed * delta)
|
||||
value = lerp(value, target_value, speed * delta)
|
||||
|
||||
func _on_visibility_changed() -> void:
|
||||
if visible:
|
||||
value = 0
|
||||
$Timer.start(0)
|
||||
|
||||
func _on_timer_timeout() -> void:
|
||||
value = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue