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

+49
View File
@@ -0,0 +1,49 @@
[gd_scene format=3]
[ext_resource type="PackedScene" path="res://scenes/display_left.tscn" id="left"]
[ext_resource type="PackedScene" path="res://scenes/display_right.tscn" id="right"]
[ext_resource type="Script" path="res://scripts/layout_preview.gd" id="preview"]
[ext_resource type="PackedScene" path="res://components/layout_overview.tscn" id="overview"]
[node name="DualPortraitLayout" type="Control"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("preview")
configuration = 1
[node name="Overview" parent="." instance=ExtResource("overview")]
layout_mode = 1
grid_size = Vector2i(18, 32)
[node name="Canvas" parent="Overview/Dashboard" instance=ExtResource("left")]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="RightWindow" type="Window" parent="."]
title = "ROV / right portrait"
visible = false
size = Vector2i(540, 960)
content_scale_size = Vector2i(1080, 1920)
content_scale_mode = 1
content_scale_aspect = 1
[node name="RightOverview" parent="RightWindow" instance=ExtResource("overview")]
layout_mode = 1
hot_corner_enabled = false
grid_size = Vector2i(18, 32)
[node name="Canvas" parent="RightWindow/RightOverview/Dashboard" instance=ExtResource("right")]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2