From d5c8b318eb4a831c4186c363e55f1c90eac61611 Mon Sep 17 00:00:00 2001 From: Damian Date: Sat, 23 Sep 2023 10:42:36 +0200 Subject: [PATCH] add simple decorative ui elements --- godot/UI.tscn | 32 ++++++++++++++++---------------- godot/project.godot | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/godot/UI.tscn b/godot/UI.tscn index 418b726..41e1f87 100644 --- a/godot/UI.tscn +++ b/godot/UI.tscn @@ -6,9 +6,9 @@ [node name="Node2D" type="Node2D"] -[node name="CanvasLayer" type="CanvasLayer" parent="."] +[node name="Ingame" type="CanvasLayer" parent="."] -[node name="Eingabe" type="VBoxContainer" parent="CanvasLayer"] +[node name="Eingabe" type="VBoxContainer" parent="Ingame"] anchors_preset = 12 anchor_top = 1.0 anchor_right = 1.0 @@ -19,12 +19,12 @@ grow_horizontal = 2 grow_vertical = 0 size_flags_vertical = 0 -[node name="TextEdit" type="TextEdit" parent="CanvasLayer/Eingabe"] +[node name="TextEdit" type="TextEdit" parent="Ingame/Eingabe"] layout_mode = 2 size_flags_vertical = 3 script = ExtResource("1_5gfrp") -[node name="Story" type="VBoxContainer" parent="CanvasLayer"] +[node name="Story" type="VBoxContainer" parent="Ingame"] anchors_preset = 11 anchor_left = 1.0 anchor_right = 1.0 @@ -34,7 +34,7 @@ grow_horizontal = 0 grow_vertical = 2 size_flags_horizontal = 8 -[node name="TextEdit" type="TextEdit" parent="CanvasLayer/Story"] +[node name="TextEdit" type="TextEdit" parent="Ingame/Story"] layout_mode = 2 size_flags_vertical = 3 placeholder_text = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet." @@ -42,7 +42,7 @@ editable = false context_menu_enabled = false wrap_mode = 1 -[node name="Stats" type="VBoxContainer" parent="CanvasLayer"] +[node name="Stats" type="VBoxContainer" parent="Ingame"] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 @@ -52,7 +52,7 @@ offset_bottom = -360.0 grow_horizontal = 2 grow_vertical = 2 -[node name="TextEdit" type="TextEdit" parent="CanvasLayer/Stats"] +[node name="TextEdit" type="TextEdit" parent="Ingame/Stats"] layout_mode = 2 size_flags_vertical = 3 placeholder_text = "SampleStat = 1 @@ -60,49 +60,49 @@ placeholder_text = "SampleStat = 1 editable = false context_menu_enabled = false -[node name="TextEdit2" type="TextEdit" parent="CanvasLayer/Stats"] +[node name="TextEdit2" type="TextEdit" parent="Ingame/Stats"] layout_mode = 2 size_flags_vertical = 3 editable = false context_menu_enabled = false -[node name="TextEdit3" type="TextEdit" parent="CanvasLayer/Stats"] +[node name="TextEdit3" type="TextEdit" parent="Ingame/Stats"] layout_mode = 2 size_flags_vertical = 3 editable = false context_menu_enabled = false -[node name="TextEdit4" type="TextEdit" parent="CanvasLayer/Stats"] +[node name="TextEdit4" type="TextEdit" parent="Ingame/Stats"] layout_mode = 2 size_flags_vertical = 3 editable = false context_menu_enabled = false -[node name="TextEdit5" type="TextEdit" parent="CanvasLayer/Stats"] +[node name="TextEdit5" type="TextEdit" parent="Ingame/Stats"] layout_mode = 2 size_flags_vertical = 3 editable = false context_menu_enabled = false -[node name="TextEdit6" type="TextEdit" parent="CanvasLayer/Stats"] +[node name="TextEdit6" type="TextEdit" parent="Ingame/Stats"] layout_mode = 2 size_flags_vertical = 3 editable = false context_menu_enabled = false -[node name="TextEdit7" type="TextEdit" parent="CanvasLayer/Stats"] +[node name="TextEdit7" type="TextEdit" parent="Ingame/Stats"] layout_mode = 2 size_flags_vertical = 3 editable = false context_menu_enabled = false -[node name="TextureRect" type="TextureRect" parent="."] +[node name="Szenerie" type="TextureRect" parent="."] offset_left = -3.0 offset_top = -1.0 offset_right = 1277.0 offset_bottom = 719.0 -focus_neighbor_left = NodePath("../CanvasLayer/Stats") -focus_neighbor_bottom = NodePath("../CanvasLayer/Eingabe") +focus_neighbor_left = NodePath("../Ingame/Stats") +focus_neighbor_bottom = NodePath("../Ingame/Eingabe") texture = SubResource("CompressedTexture2D_ncw85") expand_mode = 1 stretch_mode = 1 diff --git a/godot/project.godot b/godot/project.godot index 5d96bc2..f2561f1 100644 --- a/godot/project.godot +++ b/godot/project.godot @@ -12,7 +12,7 @@ config_version=5 config/name="God of AI" run/main_scene="res://UI.tscn" -config/features=PackedStringArray("4.1", "GL Compatibility") +config/features=PackedStringArray("4.1", "C#", "GL Compatibility") config/icon="res://icon.svg" [display]