parent
46e1de9791
commit
dacbcc3835
232 changed files with 8637 additions and 0 deletions
21
Scripts/FlowControl.gd
Normal file
21
Scripts/FlowControl.gd
Normal file
|
@ -0,0 +1,21 @@
|
|||
extends Control
|
||||
|
||||
@export var in_value : float = 1.0
|
||||
@export var out_value : float = 1.0
|
||||
@export var vis_name : String = ""
|
||||
|
||||
signal in_value_updated(new_value: float)
|
||||
signal out_value_updated(new_value: float)
|
||||
|
||||
func _ready() -> void:
|
||||
$Panel/Label.text = self.vis_name
|
||||
$Panel/InStepper.value = self.in_value
|
||||
$Panel/OutStepper.value = self.out_value
|
||||
|
||||
func _on_in_stepper_value_changed(value: float) -> void:
|
||||
self.in_value = value
|
||||
in_value_updated.emit(value)
|
||||
|
||||
func _on_out_stepper_value_changed(value: float) -> void:
|
||||
self.out_value = value
|
||||
out_value_updated.emit(value)
|
Loading…
Add table
Add a link
Reference in a new issue