mirror of
https://github.com/kodzukye/scrap-signal.git
synced 2026-04-26 21:27:34 +00:00
- Replace GridContainer-based puzzle with drag-and-drop wire system - Add draw_wires() and on_canvas_input() driven by WireCanvas node - Shuffle right-side endpoints for varied puzzle layout - Fix type inference errors (Dictionary values cast to Array/Color) - Fix WireCanvas size_flags_vertical to SIZE_SHRINK_CENTER - Set Panel custom_minimum_size and VBox to prevent layout overflow - Title and StatusLabel now always visible
13 lines
256 B
GDScript
13 lines
256 B
GDScript
extends Control
|
|
|
|
func _ready() -> void:
|
|
mouse_filter = MOUSE_FILTER_STOP
|
|
|
|
func _draw() -> void:
|
|
if owner is RepairMinigame:
|
|
owner.draw_wires(self)
|
|
|
|
func _gui_input(event: InputEvent) -> void:
|
|
if owner is RepairMinigame:
|
|
owner.on_canvas_input(event)
|