add all files
This commit is contained in:
parent
feb5df41ea
commit
371bda867d
34 changed files with 1875 additions and 14 deletions
22
Scripts/IndicatorLight.gd
Normal file
22
Scripts/IndicatorLight.gd
Normal file
|
@ -0,0 +1,22 @@
|
|||
extends Control
|
||||
|
||||
@export var on: bool = false
|
||||
|
||||
func _ready() -> void:
|
||||
$Green.visible = self.on
|
||||
|
||||
func turn_on() -> void:
|
||||
self.on = true
|
||||
$Green.visible = self.on
|
||||
|
||||
func turn_off() -> void:
|
||||
self.on = false
|
||||
$Green.visible = self.on
|
||||
|
||||
func toggle() -> void:
|
||||
self.on = !self.on
|
||||
$Green.visible = self.on
|
||||
|
||||
func set_state(value: bool) -> void:
|
||||
self.on = value
|
||||
$Green.visible = self.on
|
Loading…
Add table
Add a link
Reference in a new issue