diff --git a/addons/ggt-core/transitions/transitions.gd b/addons/ggt-core/transitions/transitions.gd index 49f8476..48bddaa 100644 --- a/addons/ggt-core/transitions/transitions.gd +++ b/addons/ggt-core/transitions/transitions.gd @@ -10,7 +10,7 @@ signal transition_covered_screen @onready var anim: AnimationPlayer = $AnimationPlayer -@onready var progress: Control = $ColorRect/Progress +@onready var progress: Control = $ColorRect/MarginContainer/Progress var target_progress: float = 0.0 var config = preload("res://addons/ggt-core/config.tres") diff --git a/addons/ggt-core/transitions/transitions.tscn b/addons/ggt-core/transitions/transitions.tscn index a2a1271..0778b8a 100644 --- a/addons/ggt-core/transitions/transitions.tscn +++ b/addons/ggt-core/transitions/transitions.tscn @@ -1,47 +1,9 @@ -[gd_scene load_steps=15 format=3 uid="uid://82fiitkfc6wn"] +[gd_scene load_steps=11 format=3 uid="uid://82fiitkfc6wn"] -[ext_resource type="Script" path="res://addons/ggt-core/transitions/transitions.gd" id="1_frf46"] -[ext_resource type="Script" path="res://addons/ggt-core/transitions/progress.gd" id="2_2fso7"] -[ext_resource type="Texture2D" uid="uid://dtwpm3uclaspj" path="res://assets/sprites/icon.png" id="3_704bp"] -[ext_resource type="FontFile" uid="uid://cawekr44fruhm" path="res://assets/fonts/open-sans/open-sans-regular.ttf" id="4_acliu"] - -[sub_resource type="Animation" id="9"] -length = 0.001 -tracks/0/type = "value" -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/path = NodePath(".:position") -tracks/0/interp = 1 -tracks/0/loop_wrap = true -tracks/0/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 0, -"values": [Vector2(-20, -79)] -} - -[sub_resource type="Animation" id="1"] -resource_name = "idle" -length = 2.0 -loop_mode = 1 -tracks/0/type = "value" -tracks/0/imported = false -tracks/0/enabled = true -tracks/0/path = NodePath(".:rotation") -tracks/0/interp = 1 -tracks/0/loop_wrap = true -tracks/0/keys = { -"times": PackedFloat32Array(0, 0.2, 0.4, 0.6, 0.8, 1, 1.2, 2), -"transitions": PackedFloat32Array(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5), -"update": 0, -"values": [3.48787e-16, 3.48787e-16, 3.14159, 0.0, 0.0, -3.14159, 0.0, 0.0] -} - -[sub_resource type="AnimationLibrary" id="AnimationLibrary_hvhmj"] -_data = { -"RESET": SubResource("9"), -"idle": SubResource("1") -} +[ext_resource type="FontFile" uid="uid://cawekr44fruhm" path="res://assets/fonts/open-sans/open-sans-regular.ttf" id="1"] +[ext_resource type="Texture2D" uid="uid://dtwpm3uclaspj" path="res://assets/sprites/icon.png" id="2"] +[ext_resource type="Script" path="res://addons/ggt-core/transitions/progress.gd" id="3"] +[ext_resource type="Script" path="res://addons/ggt-core/transitions/transitions/transitions.gd" id="4"] [sub_resource type="FontFile" id="4"] fallbacks = Array[Font]([ExtResource("4_acliu")]) @@ -51,6 +13,14 @@ cache/0/16/0/underline_position = 0.0 cache/0/16/0/underline_thickness = 0.0 cache/0/16/0/scale = 1.0 cache/0/16/0/kerning_overrides/16/0 = Vector2(0, 0) +cache/0/16/0/kerning_overrides/28/0 = Vector2(0, 0) +cache/0/28/0/ascent = 0.0 +cache/0/28/0/descent = 0.0 +cache/0/28/0/underline_position = 0.0 +cache/0/28/0/underline_thickness = 0.0 +cache/0/28/0/scale = 1.0 +cache/0/28/0/kerning_overrides/16/0 = Vector2(0, 0) +cache/0/28/0/kerning_overrides/28/0 = Vector2(0, 0) [sub_resource type="Animation" id="10"] length = 0.001 @@ -81,7 +51,7 @@ tracks/1/keys = { tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true -tracks/2/path = NodePath("ColorRect/Progress/Spinner:modulate") +tracks/2/path = NodePath("ColorRect/MarginContainer/Progress/ProgressBar:modulate") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { @@ -90,18 +60,6 @@ tracks/2/keys = { "update": 0, "values": [Color(1, 1, 1, 0)] } -tracks/3/type = "value" -tracks/3/imported = false -tracks/3/enabled = true -tracks/3/path = NodePath("ColorRect/Progress/ProgressBar:modulate") -tracks/3/interp = 1 -tracks/3/loop_wrap = true -tracks/3/keys = { -"times": PackedFloat32Array(0), -"transitions": PackedFloat32Array(1), -"update": 0, -"values": [Color(1, 1, 1, 0)] -} [sub_resource type="Animation" id="5"] length = 0.001 @@ -161,7 +119,7 @@ tracks/1/keys = { tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true -tracks/2/path = NodePath("ColorRect/Progress/Spinner:modulate") +tracks/2/path = NodePath("ColorRect/MarginContainer/Progress/ProgressBar:modulate") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { @@ -170,18 +128,6 @@ tracks/2/keys = { "update": 0, "values": [Color(1, 1, 1, 0), Color(1, 1, 1, 0), Color(1, 1, 1, 1)] } -tracks/3/type = "value" -tracks/3/imported = false -tracks/3/enabled = true -tracks/3/path = NodePath("ColorRect/Progress/ProgressBar:modulate") -tracks/3/interp = 1 -tracks/3/loop_wrap = true -tracks/3/keys = { -"times": PackedFloat32Array(0, 0.2, 0.3), -"transitions": PackedFloat32Array(1, 2, 1), -"update": 0, -"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 0), Color(1, 1, 1, 1)] -} [sub_resource type="Animation" id="7"] length = 0.3 @@ -213,7 +159,7 @@ tracks/1/keys = { tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true -tracks/2/path = NodePath("ColorRect/Progress/Spinner:modulate") +tracks/2/path = NodePath("ColorRect/MarginContainer/Progress/ProgressBar:modulate") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { @@ -222,18 +168,6 @@ tracks/2/keys = { "update": 0, "values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)] } -tracks/3/type = "value" -tracks/3/imported = false -tracks/3/enabled = true -tracks/3/path = NodePath("ColorRect/Progress/ProgressBar:modulate") -tracks/3/interp = 1 -tracks/3/loop_wrap = true -tracks/3/keys = { -"times": PackedFloat32Array(0, 0.1), -"transitions": PackedFloat32Array(0.5, 1), -"update": 0, -"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)] -} [sub_resource type="Animation" id="8"] length = 0.001 @@ -284,64 +218,42 @@ anchor_bottom = 1.0 mouse_filter = 2 color = Color(0.0862745, 0.0862745, 0.0862745, 0) -[node name="Progress" type="Control" parent="ColorRect"] -anchors_preset = 0 -anchor_left = 1.0 -anchor_top = 1.0 +[node name="MarginContainer" type="MarginContainer" parent="ColorRect"] +layout_mode = 1 +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 -offset_left = -141.0 -offset_top = -55.0 -offset_right = -101.0 -offset_bottom = -15.0 -mouse_filter = 2 -script = ExtResource("2_2fso7") - -[node name="Spinner" type="TextureRect" parent="ColorRect/Progress"] -modulate = Color(1, 1, 1, 0) -layout_mode = 1 -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -40.0 -offset_top = -99.0 -offset_right = 40.0 -offset_bottom = -19.0 grow_horizontal = 2 grow_vertical = 2 -scale = Vector2(0.6, 0.6) -pivot_offset = Vector2(40, 40) mouse_filter = 2 -texture = ExtResource("3_704bp") -[node name="AnimationPlayer" type="AnimationPlayer" parent="ColorRect/Progress/Spinner"] -autoplay = "idle" -libraries = { -"": SubResource("AnimationLibrary_hvhmj") -} +[node name="Progress" type="Control" parent="ColorRect/MarginContainer"] +layout_mode = 2 +mouse_filter = 2 +script = ExtResource("3") -[node name="ProgressBar" type="ProgressBar" parent="ColorRect/Progress"] +[node name="ProgressBar" type="ProgressBar" parent="ColorRect/MarginContainer/Progress"] modulate = Color(1, 1, 1, 0) -layout_mode = 0 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -85.0 -offset_top = -11.0 -offset_right = 85.0 -offset_bottom = 11.0 +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -170.0 +offset_top = -27.0 +grow_horizontal = 0 +grow_vertical = 0 mouse_filter = 2 theme_override_fonts/font = SubResource("4") +theme_override_font_sizes/font_size = 16 max_value = 1.0 [node name="AnimationPlayer" type="AnimationPlayer" parent="."] -autoplay = "transparent" libraries = { "": SubResource("AnimationLibrary_y1dc8") } +autoplay = "transparent" [connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"] [connection signal="animation_started" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_started"] diff --git a/addons/ggt-debug-shortcuts/shortcuts/pause_game.tscn b/addons/ggt-debug-shortcuts/shortcuts/pause_game.tscn index 0bdf4e8..6bba2ad 100644 --- a/addons/ggt-debug-shortcuts/shortcuts/pause_game.tscn +++ b/addons/ggt-debug-shortcuts/shortcuts/pause_game.tscn @@ -3,27 +3,10 @@ [sub_resource type="GDScript" id="GDScript_gxkwo"] script/source = "extends Node - -func _ready(): - $CanvasLayer/PausedHint.visible = get_tree().paused - - func _input(event): if event.is_action_released(\"debug_pause_game\"): get_tree().paused = !get_tree().paused - - -func _process(delta): - $CanvasLayer/PausedHint.visible = get_tree().paused " [node name="PauseGame" type="Node"] script = SubResource("GDScript_gxkwo") - -[node name="CanvasLayer" type="CanvasLayer" parent="."] -layer = 128 - -[node name="PausedHint" type="Label" parent="CanvasLayer"] -offset_right = 104.0 -offset_bottom = 26.0 -text = "TREE PAUSED" diff --git a/assets/ui-theme.tres b/assets/ui-theme.tres deleted file mode 100644 index e597e0f..0000000 --- a/assets/ui-theme.tres +++ /dev/null @@ -1,7 +0,0 @@ -[gd_resource type="Theme" load_steps=2 format=3 uid="uid://ducfept6pmkkm"] - -[ext_resource type="FontFile" uid="uid://cawekr44fruhm" path="res://assets/fonts/open-sans/open-sans-regular.ttf" id="1"] - -[resource] -default_font = ExtResource("1") -default_font_size = 28 diff --git a/project.godot b/project.godot index 7f44a34..23710f3 100644 --- a/project.godot +++ b/project.godot @@ -39,6 +39,10 @@ window/stretch/aspect="expand" enabled=PackedStringArray("res://addons/ggt-core/plugin.cfg", "res://addons/ggt-debug-shortcuts/plugin.cfg") +[gui] + +theme/custom="res://resources/theme/theme-main.tres" + [input] pause={ diff --git a/resources/theme/theme-main.tres b/resources/theme/theme-main.tres new file mode 100644 index 0000000..967bcc6 --- /dev/null +++ b/resources/theme/theme-main.tres @@ -0,0 +1,13 @@ +[gd_resource type="Theme" load_steps=2 format=3 uid="uid://ducfept6pmkkm"] + +[ext_resource type="FontFile" uid="uid://cawekr44fruhm" path="res://assets/fonts/open-sans/open-sans-regular.ttf" id="1_6yttj"] + +[resource] +default_font = ExtResource("1_6yttj") +default_font_size = 20 +LabelSmall/base_type = &"Label" +LabelSmall/font_sizes/font_size = 16 +MarginContainer/constants/margin_bottom = 32 +MarginContainer/constants/margin_left = 32 +MarginContainer/constants/margin_right = 32 +MarginContainer/constants/margin_top = 32 diff --git a/scenes/gameplay/pause-layer/pause-layer.gd b/scenes/gameplay/pause-layer/pause-layer.gd index 9a46f9b..6eccb64 100644 --- a/scenes/gameplay/pause-layer/pause-layer.gd +++ b/scenes/gameplay/pause-layer/pause-layer.gd @@ -1,12 +1,38 @@ extends CanvasLayer -@onready var pause := $PauseOverlay -@onready var pause_button := $PauseButton -@onready var resume_option := $PauseOverlay/VBoxOptions/Resume +@onready var pause := self +@onready var pause_button := $MarginContainer/Control/PauseButton +@onready var resume_option := $MarginContainer/Control/VBoxOptions/Resume +@onready var label = $MarginContainer/Control/Label +@onready var pause_options = $MarginContainer/Control/VBoxOptions +@onready var color_rect = $ColorRect + +@onready var nodes_grp1 = [pause_button, label] # should be visible during gamemplay and hidden during pause +@onready var nodes_grp2 = [pause_options, color_rect] # should be visible only in pause menu func _ready(): - pause.hide() + pause_hide() + + +func pause_show(): + for n in nodes_grp1: + print("hiding ", n.name) + n.hide() + for n in nodes_grp2: + n.show() + + +func pause_hide(): + for n in nodes_grp1: + if n: + print("showing ", n.name) + n.show() + + for n in nodes_grp2: + if n: + print("hiding ", n.name) + n.hide() # when the node is removed from the tree (mostly because of a scene change) @@ -27,13 +53,13 @@ func _unhandled_input(event): func resume(): get_tree().paused = false - pause.hide() + pause_hide() func pause_game(): resume_option.grab_focus() get_tree().paused = true - pause.show() + pause_show() func _on_Resume_pressed(): diff --git a/scenes/gameplay/pause-layer/pause-layer.tscn b/scenes/gameplay/pause-layer/pause-layer.tscn index 5d4259c..026e407 100644 --- a/scenes/gameplay/pause-layer/pause-layer.tscn +++ b/scenes/gameplay/pause-layer/pause-layer.tscn @@ -1,73 +1,76 @@ [gd_scene load_steps=4 format=3 uid="uid://barl4q1kugrmm"] [ext_resource type="Script" path="res://scenes/gameplay/pause-layer/pause-layer.gd" id="2"] -[ext_resource type="Theme" uid="uid://ducfept6pmkkm" path="res://assets/ui-theme.tres" id="3"] -[ext_resource type="Texture2D" uid="uid://byniue2cdd2yv" path="res://assets/pause_button.png" id="4"] +[ext_resource type="Theme" uid="uid://ducfept6pmkkm" path="res://resources/theme/theme-main.tres" id="3"] +[ext_resource type="Texture2D" uid="uid://byniue2cdd2yv" path="res://scenes/gameplay/pause-layer/pause_button.png" id="4"] [node name="PauseLayer" type="CanvasLayer"] process_mode = 3 script = ExtResource("2") -[node name="Label" type="Label" parent="."] -anchors_preset = 5 -anchor_left = 0.5 -anchor_right = 0.5 -offset_left = -308.0 -offset_top = 32.0 -offset_right = 308.0 -offset_bottom = 74.0 -grow_horizontal = 2 -theme = ExtResource("3") -theme_override_colors/font_color = Color(0.788235, 0.788235, 0.788235, 1) -text = "Pause: ESC (keyboard) or START button (joypad)" - -[node name="PauseButton" type="TextureButton" parent="."] -offset_left = 16.0 -offset_top = 16.0 -offset_right = 78.0 -offset_bottom = 78.0 -texture_normal = ExtResource("4") +[node name="ColorRect" type="ColorRect" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +color = Color(0.243137, 0.211765, 0.290196, 0.717647) -[node name="PauseOverlay" type="Control" parent="."] -layout_mode = 3 +[node name="MarginContainer" type="MarginContainer" parent="."] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -theme = ExtResource("3") -[node name="ColorRect" type="ColorRect" parent="PauseOverlay"] -layout_mode = 0 -anchor_right = 1.0 -anchor_bottom = 1.0 -color = Color(0.243137, 0.211765, 0.290196, 0.717647) +[node name="Control" type="Control" parent="MarginContainer"] +layout_mode = 2 + +[node name="PauseButton" type="TextureButton" parent="MarginContainer/Control"] +layout_mode = 1 +offset_right = 42.0 +offset_bottom = 42.0 +size_flags_horizontal = 0 +texture_normal = ExtResource("4") +ignore_texture_size = true +stretch_mode = 0 -[node name="VBoxOptions" type="VBoxContainer" parent="PauseOverlay"] +[node name="VBoxOptions" type="VBoxContainer" parent="MarginContainer/Control"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -offset_left = -80.5 -offset_top = -49.0 -offset_right = 80.5 -offset_bottom = 49.0 +offset_left = -58.0 +offset_top = -38.0 +offset_right = 58.0 +offset_bottom = 38.0 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/separation = 20 -[node name="Resume" type="LinkButton" parent="PauseOverlay/VBoxOptions"] +[node name="Resume" type="LinkButton" parent="MarginContainer/Control/VBoxOptions"] layout_mode = 2 focus_mode = 2 text = "RESUME" -[node name="MainMenu" type="LinkButton" parent="PauseOverlay/VBoxOptions"] +[node name="MainMenu" type="LinkButton" parent="MarginContainer/Control/VBoxOptions"] layout_mode = 2 focus_mode = 2 text = "MAIN MENU" -[connection signal="pressed" from="PauseButton" to="." method="_on_PauseButton_pressed"] -[connection signal="pressed" from="PauseOverlay/VBoxOptions/Resume" to="." method="_on_Resume_pressed"] -[connection signal="pressed" from="PauseOverlay/VBoxOptions/MainMenu" to="." method="_on_main_menu_pressed"] +[node name="Label" type="Label" parent="MarginContainer/Control"] +layout_mode = 1 +anchors_preset = 5 +anchor_left = 0.5 +anchor_right = 0.5 +offset_left = -222.0 +offset_right = 222.0 +offset_bottom = 28.0 +grow_horizontal = 2 +theme = ExtResource("3") +theme_override_colors/font_color = Color(0.788235, 0.788235, 0.788235, 1) +text = "Pause: ESC (keyboard) or START button (joypad)" + +[connection signal="pressed" from="MarginContainer/Control/PauseButton" to="." method="_on_PauseButton_pressed"] +[connection signal="pressed" from="MarginContainer/Control/VBoxOptions/Resume" to="." method="_on_Resume_pressed"] +[connection signal="pressed" from="MarginContainer/Control/VBoxOptions/MainMenu" to="." method="_on_main_menu_pressed"] diff --git a/assets/pause_button.png b/scenes/gameplay/pause-layer/pause_button.png similarity index 100% rename from assets/pause_button.png rename to scenes/gameplay/pause-layer/pause_button.png diff --git a/assets/pause_button.png.import b/scenes/gameplay/pause-layer/pause_button.png.import similarity index 69% rename from assets/pause_button.png.import rename to scenes/gameplay/pause-layer/pause_button.png.import index 4ebc5d0..f41812e 100644 --- a/assets/pause_button.png.import +++ b/scenes/gameplay/pause-layer/pause_button.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://byniue2cdd2yv" -path="res://.godot/imported/pause_button.png-61d13533c93f6302f01052c4a23b51bd.ctex" +path="res://.godot/imported/pause_button.png-70c9bf3f2acf4e572f86b5334cb6e8a3.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/pause_button.png" -dest_files=["res://.godot/imported/pause_button.png-61d13533c93f6302f01052c4a23b51bd.ctex"] +source_file="res://scenes/gameplay/pause-layer/pause_button.png" +dest_files=["res://.godot/imported/pause_button.png-70c9bf3f2acf4e572f86b5334cb6e8a3.ctex"] [params] diff --git a/scenes/menu/menu.gd b/scenes/menu/menu.gd index 87e0f36..55a6aba 100644 --- a/scenes/menu/menu.gd +++ b/scenes/menu/menu.gd @@ -1,11 +1,14 @@ extends Control +@onready var btn_play = $MarginContainer/Control/VBoxContainer/PlayButton +@onready var btn_exit = $MarginContainer/Control/VBoxContainer/ExitButton + func _ready(): # needed for gamepads to work - $VBoxContainer/PlayButton.grab_focus() + btn_play.grab_focus() if OS.has_feature('HTML5'): - $VBoxContainer/ExitButton.queue_free() # exit button dosn't make sense on HTML5 + btn_exit.queue_free() # exit button dosn't make sense on HTML5 func _on_PlayButton_pressed() -> void: diff --git a/scenes/menu/menu.tscn b/scenes/menu/menu.tscn index 9cef84c..14786f8 100644 --- a/scenes/menu/menu.tscn +++ b/scenes/menu/menu.tscn @@ -1,6 +1,5 @@ -[gd_scene load_steps=6 format=3 uid="uid://c2gocuhw2o7py"] +[gd_scene load_steps=5 format=3 uid="uid://c2gocuhw2o7py"] -[ext_resource type="Theme" uid="uid://ducfept6pmkkm" path="res://assets/ui-theme.tres" id="1"] [ext_resource type="FontFile" uid="uid://da2t6lyf41wty" path="res://assets/fonts/open-sans/open-sans-bold.ttf" id="4"] [ext_resource type="Script" path="res://scenes/menu/game_version.gd" id="4_3hod2"] [ext_resource type="Script" path="res://scenes/menu/menu.gd" id="5"] @@ -13,108 +12,134 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -theme = ExtResource("1") script = ExtResource("5") [node name="ColorRect" type="ColorRect" parent="."] -layout_mode = 0 +layout_mode = 1 +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 color = Color(0.176471, 0.682353, 0.647059, 1) -[node name="CenterContainer" type="CenterContainer" parent="."] -layout_mode = 0 +[node name="MarginContainer" type="MarginContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Control" type="Control" parent="MarginContainer"] +layout_mode = 2 + +[node name="CenterContainer" type="CenterContainer" parent="MarginContainer/Control"] +layout_mode = 1 +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 +offset_left = -8.0 +offset_right = -8.0 offset_bottom = -339.0 +grow_horizontal = 2 +grow_vertical = 2 -[node name="Title" type="Label" parent="CenterContainer"] +[node name="Title" type="Label" parent="MarginContainer/Control/CenterContainer"] layout_mode = 2 theme_override_fonts/font = ExtResource("4") theme_override_font_sizes/font_size = 60 text = "Godot Game Template" uppercase = true -[node name="VBoxContainer" type="VBoxContainer" parent="."] -layout_mode = 0 +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/Control"] +layout_mode = 1 +anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -offset_left = -100.0 -offset_top = -34.0 -offset_right = 100.0 -offset_bottom = 130.0 +offset_left = -104.0 +offset_top = -30.0 +offset_right = 96.0 +offset_bottom = 134.0 +grow_horizontal = 2 +grow_vertical = 2 theme_override_constants/separation = 16 -[node name="PlayButton" type="Button" parent="VBoxContainer"] +[node name="PlayButton" type="Button" parent="MarginContainer/Control/VBoxContainer"] custom_minimum_size = Vector2(200, 70) layout_mode = 2 focus_neighbor_bottom = NodePath("../ExitButton") focus_next = NodePath("../ExitButton") text = "START" -[node name="ExitButton" type="Button" parent="VBoxContainer"] +[node name="ExitButton" type="Button" parent="MarginContainer/Control/VBoxContainer"] custom_minimum_size = Vector2(200, 70) layout_mode = 2 focus_neighbor_top = NodePath("../PlayButton") focus_previous = NodePath("../PlayButton") text = "EXIT" -[node name="Version" type="VBoxContainer" parent="."] -layout_mode = 0 +[node name="Version" type="VBoxContainer" parent="MarginContainer/Control"] +layout_mode = 1 +anchors_preset = 2 anchor_top = 1.0 anchor_bottom = 1.0 -offset_left = 16.0 -offset_top = -90.0 -offset_right = 198.0 -offset_bottom = -18.0 +offset_top = -50.0 +offset_right = 122.0 +grow_vertical = 0 -[node name="GameVersion" type="Label" parent="Version"] +[node name="GameVersion" type="Label" parent="MarginContainer/Control/Version"] layout_mode = 2 +theme_type_variation = &"LabelSmall" text = "" script = ExtResource("4_3hod2") -[node name="GodotVersion" type="Label" parent="Version"] +[node name="GodotVersion" type="Label" parent="MarginContainer/Control/Version"] layout_mode = 2 +theme_type_variation = &"LabelSmall" theme_override_colors/font_color = Color(0.92549, 0.92549, 0.92549, 1) text = "" script = ExtResource("5_fdyjp") -[node name="Credits" type="VBoxContainer" parent="."] -layout_mode = 0 +[node name="Credits" type="VBoxContainer" parent="MarginContainer/Control"] +layout_mode = 1 +anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 -offset_left = -147.0 -offset_top = -90.0 -offset_right = -16.0 -offset_bottom = -16.0 +offset_left = -86.0 +offset_top = -23.0 grow_horizontal = 0 grow_vertical = 0 -[node name="MadeByLabel" type="Label" parent="Credits"] +[node name="MadeByLabel" type="Label" parent="MarginContainer/Control/Credits"] layout_mode = 2 +theme_type_variation = &"LabelSmall" theme_override_colors/font_color = Color(1, 1, 1, 1) -text = "made by:" +text = "made by: ..." -[node name="Developer1" type="Label" parent="Credits"] +[node name="Developer1" type="Label" parent="MarginContainer/Control/Credits"] +visible = false layout_mode = 2 +theme_type_variation = &"LabelSmall" theme_override_colors/font_color = Color(0.92549, 0.92549, 0.92549, 1) -text = "Crystal Bit community" -[node name="Developer2" type="Label" parent="Credits"] +[node name="Developer2" type="Label" parent="MarginContainer/Control/Credits"] visible = false layout_mode = 2 +theme_type_variation = &"LabelSmall" theme_override_colors/font_color = Color(0.886275, 0.87451, 0.87451, 1) text = "Developer 2" -[node name="Developer3" type="Label" parent="Credits"] +[node name="Developer3" type="Label" parent="MarginContainer/Control/Credits"] visible = false layout_mode = 2 +theme_type_variation = &"LabelSmall" theme_override_colors/font_color = Color(0.886275, 0.87451, 0.87451, 1) text = "Developer 3" -[connection signal="pressed" from="VBoxContainer/PlayButton" to="." method="_on_PlayButton_pressed"] -[connection signal="pressed" from="VBoxContainer/ExitButton" to="." method="_on_ExitButton_pressed"] +[connection signal="pressed" from="MarginContainer/Control/VBoxContainer/PlayButton" to="." method="_on_PlayButton_pressed"] +[connection signal="pressed" from="MarginContainer/Control/VBoxContainer/ExitButton" to="." method="_on_ExitButton_pressed"]