Added basic build menu and placement
This commit is contained in:
13
scripts/interaction_bar.gd
Normal file
13
scripts/interaction_bar.gd
Normal file
@@ -0,0 +1,13 @@
|
||||
extends ProgressBar
|
||||
class_name InteractionBar
|
||||
|
||||
signal interaction_finished
|
||||
|
||||
func _ready() -> void:
|
||||
var tween = get_tree().create_tween()
|
||||
tween.tween_property(self, "value", 100, 3)
|
||||
tween.tween_callback(_cleanup_gather)
|
||||
|
||||
func _cleanup_gather() -> void:
|
||||
interaction_finished.emit()
|
||||
self.queue_free()
|
||||
Reference in New Issue
Block a user