Open-Industry-Project / data /src /StackLight /stack_segment_data.gd
introvoyz041's picture
Migrated from GitHub
d4e5991 verified
Raw
History Blame Contribute Delete
449 Bytes
@tool
class_name StackSegmentData
extends Resource
signal active_changed(value: bool)
signal color_changed(value: Color)
## When true, the segment light is illuminated.
@export var active: bool = false:
set(value):
active = value
active_changed.emit(active)
## The color of this light segment when active.
@export var segment_color: Color = Color(0.0, 1.0, 0.0, 0.5):
set(value):
segment_color = value
color_changed.emit(segment_color)