Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
24 lines
482 B
GDScript
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)
|