Added a dynamic layout system where UI elements can be moved about on a tiled grid.

This commit is contained in:
RedNicStone committed 2026-11-09 18:14:52 +01:00
1 parent ea6ba54666
commit 26c29df4ad
34 files changed
+1269

No files matched your search

+52
View File
@@ -0,0 +1,52 @@
[gd_scene format=3 uid="uid://dscdhba74otou"]
[ext_resource type="Script" uid="uid://bqrapdh6yddl8" path="res://scripts/layout_canvas.gd" id="1"]
[ext_resource type="Script" uid="uid://cwbk5g4yhdfd6" path="res://scripts/layout_edit_overlay.gd" id="2"]
[node name="LayoutCanvas" type="Control" unique_id=325333537]
clip_contents = true
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("1")
legacy_config_path = null
[node name="EditOverlay" type="Control" parent="." unique_id=162710218]
visible = false
z_index = 120
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
script = ExtResource("2")
[node name="Actions" type="HBoxContainer" parent="EditOverlay" unique_id=846269020]
visible = false
layout_mode = 0
offset_right = 112.0
offset_bottom = 36.0
theme_override_constants/separation = 2
[node name="Settings" type="Button" parent="EditOverlay/Actions" unique_id=1387368158]
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
tooltip_text = "Settings (not available yet)"
disabled = true
text = "⚙"
[node name="Resize" type="Button" parent="EditOverlay/Actions" unique_id=1301115821]
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
tooltip_text = "Drag to resize"
text = "↘"
[node name="Delete" type="Button" parent="EditOverlay/Actions" unique_id=1936216385]
custom_minimum_size = Vector2(36, 36)
layout_mode = 2
tooltip_text = "Remove panel from layout"
text = "×"