trying simpler self made menus to fix selection and focus issues on build
This commit is contained in:
31
menus/scenes/menus/main_menu/new_main_menu.tscn
Normal file
31
menus/scenes/menus/main_menu/new_main_menu.tscn
Normal 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"]
|
||||
Reference in New Issue
Block a user