mirror of
https://github.com/kodzukye/scrap-signal.git
synced 2026-04-27 00:57:33 +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
54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
[gd_scene format=3 uid="uid://djtxltf8mtuv6"]
|
|
|
|
[ext_resource type="Script" uid="uid://b5237vkobhji0" path="res://ui/minigame/repair_minigame.gd" id="1_151ia"]
|
|
[ext_resource type="PackedScene" uid="uid://dchwkw273wjq7" path="res://ui/minigame/wire_canvas.tscn" id="2_sehdy"]
|
|
|
|
[node name="RepairMinigame" type="CanvasLayer" unique_id=189116174]
|
|
script = ExtResource("1_151ia")
|
|
|
|
[node name="Background" type="ColorRect" parent="." unique_id=1916489054]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="Panel" type="PanelContainer" parent="Background" unique_id=1782143434]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -150.0
|
|
offset_top = -106.0
|
|
offset_right = 150.0
|
|
offset_bottom = 106.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Background/Panel" unique_id=937959925]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="Title" type="Label" parent="Background/Panel/VBoxContainer" unique_id=1457760472]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 8
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="WireCanvas" parent="Background/Panel/VBoxContainer" unique_id=1594830372 instance=ExtResource("2_sehdy")]
|
|
custom_minimum_size = Vector2(300, 180)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
|
|
[node name="StatusLabel" type="Label" parent="Background/Panel/VBoxContainer" unique_id=1700512059]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 8
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|