Added a dynamic layout system where UI elements can be moved about on a tiled grid.
This commit is contained in:
1 parent
ea6ba54666
commit
26c29df4ad
34 files changed
+1269
No files matched your search
@@ -0,0 +1,35 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/camera_layout_frame.gd" id="1"]
|
||||
|
||||
[node name="CameraSlot" type="VBoxContainer"]
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="Header" type="HBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Title" type="Label" parent="Header"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "CAMERA / PRIMARY"
|
||||
theme_override_font_sizes/font_size = 20
|
||||
|
||||
[node name="State" type="Label" parent="Header"]
|
||||
layout_mode = 2
|
||||
text = "NO STREAM"
|
||||
|
||||
[node name="Frame" type="AspectRatioContainer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
ratio = 1.7777778
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Placeholder" type="PanelContainer" parent="Frame"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Frame/Placeholder"]
|
||||
layout_mode = 2
|
||||
text = "16:9 CAMERA\nReserved video surface"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
theme_override_font_sizes/font_size = 24
|
||||
Reference in new issue
Block a user