Improved UI

This commit is contained in:
2024-02-24 16:42:26 +01:00
parent d1b46fb9e0
commit dc252ab5d3
3 changed files with 170 additions and 121 deletions

View File

@ -58,22 +58,74 @@ suffix = ""
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -134.0
offset_right = 263.0
offset_top = -132.0
offset_right = 108.0
grow_vertical = 0
size_flags_horizontal = 0
size_flags_vertical = 8
[node name="Chat" type="VBoxContainer" parent="BottomLeft"]
[node name="VBoxContainer" type="VBoxContainer" parent="BottomLeft"]
layout_mode = 2
alignment = 2
[node name="ChatBox" type="RichTextLabel" parent="BottomLeft/Chat"]
[node name="Nodes" parent="BottomLeft/VBoxContainer" instance=ExtResource("1_7s8uu")]
layout_mode = 2
script = ExtResource("5_ab7ln")
monitor = 9
multiply = 1.0
precision = 1.0
suffix = ""
[node name="Meshes" parent="BottomLeft/VBoxContainer" instance=ExtResource("1_7s8uu")]
layout_mode = 2
script = ExtResource("5_ab7ln")
monitor = 11
multiply = 1.0
precision = 1.0
suffix = ""
[node name="Vertices" parent="BottomLeft/VBoxContainer" instance=ExtResource("1_7s8uu")]
layout_mode = 2
script = ExtResource("5_ab7ln")
monitor = 12
multiply = 1.0
precision = 1.0
suffix = ""
[node name="VRAM" parent="BottomLeft/VBoxContainer" instance=ExtResource("1_7s8uu")]
layout_mode = 2
script = ExtResource("5_ab7ln")
monitor = 14
multiply = 1.0
precision = 1.0
suffix = " bytes"
[node name="Bottom" type="MarginContainer" parent="."]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -50.5
offset_top = -60.0
offset_right = 50.5
grow_horizontal = 2
grow_vertical = 0
[node name="Chat" type="VBoxContainer" parent="Bottom"]
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
size_flags_vertical = 3
alignment = 2
[node name="ChatBox" type="RichTextLabel" parent="Bottom/Chat"]
layout_mode = 2
size_flags_vertical = 3
bbcode_enabled = true
scroll_following = true
script = ExtResource("5_43juw")
[node name="ChatInput" type="LineEdit" parent="BottomLeft/Chat"]
[node name="ChatInput" type="LineEdit" parent="Bottom/Chat"]
layout_mode = 2
script = ExtResource("6_cg2h5")
@ -159,8 +211,11 @@ text = "Connecting..."
[node name="Settings" parent="." instance=ExtResource("11_rt7sl")]
visible = false
anchors_preset = -1
anchor_left = 0.3
anchor_top = 0.25
anchor_right = 0.7
anchor_bottom = 0.75
[node name="Inventory" parent="." instance=ExtResource("13_1fc2b")]
visible = false
@ -170,11 +225,6 @@ anchor_top = 0.25
anchor_right = 0.75
anchor_bottom = 0.75
[node name="UI" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
script = ExtResource("1_l5b6o")
[connection signal="focus_entered" from="BottomLeft/Chat/ChatInput" to="BottomLeft/Chat/ChatInput" method="_on_focus_entered"]
[connection signal="focus_exited" from="BottomLeft/Chat/ChatInput" to="BottomLeft/Chat/ChatInput" method="_on_focus_exited"]
[connection signal="text_submitted" from="BottomLeft/Chat/ChatInput" to="BottomLeft/Chat/ChatInput" method="_on_text_submitted"]
[connection signal="focus_entered" from="Bottom/Chat/ChatInput" to="Bottom/Chat/ChatInput" method="_on_focus_entered"]
[connection signal="focus_exited" from="Bottom/Chat/ChatInput" to="Bottom/Chat/ChatInput" method="_on_focus_exited"]
[connection signal="text_submitted" from="Bottom/Chat/ChatInput" to="Bottom/Chat/ChatInput" method="_on_text_submitted"]