Files
settled-reach/client/ui/implant/implant_separator.gd
T
2026-04-05 11:09:10 +02:00

24 lines
482 B
GDScript

@tool
class_name ImplantSeparator
extends Control
## Thin horizontal separator line with themed spacing.
var _theme: ImplantTheme
func _init() -> void:
mouse_filter = Control.MOUSE_FILTER_IGNORE
func apply_implant_theme(t: ImplantTheme) -> void:
_theme = t
custom_minimum_size.y = t.sep_above + t.sep_below
queue_redraw()
func _draw() -> void:
if not _theme:
return
var y: float = _theme.sep_above
draw_line(Vector2(0, y), Vector2(size.x, y), _theme.separator, 1.0)