File size: 449 Bytes
d4e5991 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | @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)
|