Compare commits

..

3 Commits

Author SHA1 Message Date
8338ce3dd9 trying to change the autoload class name and extends order to fix release issue
Some checks failed
Create tag and build when new code gets to main / BumpTag (push) Successful in 12s
Create tag and build when new code gets to main / Export (push) Has been cancelled
2025-10-27 10:14:11 +01:00
39f45d418f trying to add a console to release
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 12s
Create tag and build when new code gets to main / Export (push) Successful in 7m32s
2025-10-27 09:49:52 +01:00
4e756da1ba trying simpler self made menus to fix selection and focus issues on build
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 13s
Create tag and build when new code gets to main / Export (push) Successful in 7m49s
2025-10-27 09:32:58 +01:00
8 changed files with 46 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
class_name SceneLoaderClass
extends Node
class_name SceneLoaderClass
## Autoload class for loading scenes with an optional loading screen.
signal scene_loaded

View File

@@ -72,7 +72,7 @@ script_export_mode=2
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
debug/export_console_wrapper=2
binary_format/embed_pck=false
texture_format/s3tc_bptc=true
texture_format/etc2_astc=false

View File

@@ -0,0 +1,31 @@
[gd_scene load_steps=3 format=3 uid="uid://br8shfwk2lne0"]
[ext_resource type="Script" uid="uid://brrt2uj47cmld" path="res://systems/ui/grab_focus.gd" id="1_c6nmr"]
[ext_resource type="Script" uid="uid://ckywnolvqy6w1" path="res://systems/ui/new_main_menu.gd" id="1_vi8ha"]
[node name="NewMainMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_vi8ha")
game_scene_path = "uid://dmkw8cmalm5k"
[node name="Menus" 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="StartGameButton" type="Button" parent="Menus"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
text = "Start game"
script = ExtResource("1_c6nmr")
[connection signal="pressed" from="Menus/StartGameButton" to="." method="on_new_game"]

View File

@@ -15,7 +15,7 @@ warnings/check_invalid_track_paths=false
[application]
config/name="Movement tests"
run/main_scene="uid://vm22i5sv3p3s"
run/main_scene="uid://br8shfwk2lne0"
config/features=PackedStringArray("4.5", "C#", "Forward Plus")
config/icon="res://icon.svg"

4
systems/ui/grab_focus.gd Normal file
View File

@@ -0,0 +1,4 @@
extends Control
func _ready() -> void:
grab_focus()

View File

@@ -0,0 +1 @@
uid://brrt2uj47cmld

View File

@@ -0,0 +1,6 @@
extends Control
@export_file("*.tscn") var game_scene_path : String
func on_new_game() -> void:
SceneLoader.load_scene(game_scene_path)

View File

@@ -0,0 +1 @@
uid://ckywnolvqy6w1