1
0

fixed some title stuff

This commit is contained in:
lexzach 2025-03-22 20:15:41 -04:00
parent bd014b7e1d
commit f61114dce9
Signed by: Lexzach
GPG Key ID: 10A6FD067E6060A8
3 changed files with 47 additions and 22 deletions

View File

@ -1,56 +1,47 @@
[gd_scene load_steps=6 format=3 uid="uid://v7vh1typhj0k"] [gd_scene load_steps=5 format=3 uid="uid://v7vh1typhj0k"]
[ext_resource type="FontFile" uid="uid://crvjehkpjh5r4" path="res://assets/fonts/autobahn.ttf" id="1_38vls"] [ext_resource type="FontFile" uid="uid://crvjehkpjh5r4" path="res://assets/fonts/autobahn.ttf" id="1_38vls"]
[ext_resource type="Script" uid="uid://xilsm8v1rt1t" path="res://scripts/menu.gd" id="1_f5540"] [ext_resource type="Script" uid="uid://xilsm8v1rt1t" path="res://scripts/menu.gd" id="1_f5540"]
[ext_resource type="FontFile" uid="uid://byv0ntqpvosrc" path="res://assets/fonts/18938.ttf" id="2_1xsbm"] [ext_resource type="FontFile" uid="uid://byv0ntqpvosrc" path="res://assets/fonts/18938.ttf" id="2_1xsbm"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1xsbm"]
content_margin_left = 40.0
content_margin_top = 40.0
content_margin_right = 40.0
content_margin_bottom = 40.0
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_38vls"] [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_38vls"]
[node name="Menu" type="Control"] [node name="Menu" type="MarginContainer"]
layout_mode = 3
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
theme_override_constants/margin_left = 40
theme_override_constants/margin_top = 40
theme_override_constants/margin_right = 40
theme_override_constants/margin_bottom = 40
script = ExtResource("1_f5540") script = ExtResource("1_f5540")
[node name="PanelContainer" type="PanelContainer" parent="."] [node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
theme_override_styles/panel = SubResource("StyleBoxEmpty_1xsbm")
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer"]
layout_mode = 2 layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/HBoxContainer"] [node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
layout_mode = 2 layout_mode = 2
[node name="title" type="Label" parent="PanelContainer/HBoxContainer/VBoxContainer"] [node name="title" type="Label" parent="HBoxContainer/VBoxContainer"]
layout_mode = 2 layout_mode = 2
theme_override_fonts/font = ExtResource("1_38vls") theme_override_fonts/font = ExtResource("1_38vls")
theme_override_font_sizes/font_size = 120 theme_override_font_sizes/font_size = 120
text = "Extreme Intense Mathematics" text = "Extreme Intense Mathematics"
[node name="author" type="Label" parent="PanelContainer/HBoxContainer/VBoxContainer"] [node name="author" type="Label" parent="HBoxContainer/VBoxContainer"]
layout_mode = 2 layout_mode = 2
theme_override_fonts/font = ExtResource("2_1xsbm") theme_override_fonts/font = ExtResource("2_1xsbm")
theme_override_font_sizes/font_size = 50 theme_override_font_sizes/font_size = 50
text = "Made by Lexzach (Zach Bowden)" text = "Made by Lexzach (Zach Bowden)"
[node name="HSeparator" type="HSeparator" parent="PanelContainer/HBoxContainer/VBoxContainer"] [node name="HSeparator" type="HSeparator" parent="HBoxContainer/VBoxContainer"]
layout_mode = 2 layout_mode = 2
theme_override_constants/separation = 180 theme_override_constants/separation = 180
theme_override_styles/separator = SubResource("StyleBoxEmpty_38vls") theme_override_styles/separator = SubResource("StyleBoxEmpty_38vls")
[node name="start_button" type="Button" parent="PanelContainer/HBoxContainer/VBoxContainer"] [node name="start_button" type="Button" parent="HBoxContainer/VBoxContainer"]
custom_minimum_size = Vector2(400, 0) custom_minimum_size = Vector2(400, 0)
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 0 size_flags_horizontal = 0
@ -60,4 +51,32 @@ theme_override_fonts/font = ExtResource("1_38vls")
theme_override_font_sizes/font_size = 96 theme_override_font_sizes/font_size = 96
text = "Play" text = "Play"
[connection signal="pressed" from="PanelContainer/HBoxContainer/VBoxContainer/start_button" to="." method="_on_start_button_pressed"] [node name="HSeparator2" type="HSeparator" parent="HBoxContainer/VBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 65
theme_override_styles/separator = SubResource("StyleBoxEmpty_38vls")
[node name="quit_button" type="Button" parent="HBoxContainer/VBoxContainer"]
custom_minimum_size = Vector2(400, 0)
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
mouse_default_cursor_shape = 2
theme_override_fonts/font = ExtResource("1_38vls")
theme_override_font_sizes/font_size = 96
text = "Quit"
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2
mouse_filter = 2
alignment = 2
[node name="VERSION" type="Label" parent="VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
theme_override_fonts/font = ExtResource("2_1xsbm")
theme_override_font_sizes/font_size = 50
text = "Version"
[connection signal="pressed" from="HBoxContainer/VBoxContainer/start_button" to="." method="_on_start_button_pressed"]
[connection signal="pressed" from="HBoxContainer/VBoxContainer/quit_button" to="." method="_on_quit_button_pressed"]

View File

@ -11,6 +11,7 @@ config_version=5
[application] [application]
config/name="Extremely Intense Math" config/name="Extremely Intense Math"
config/version="v0.1"
run/main_scene="uid://v7vh1typhj0k" run/main_scene="uid://v7vh1typhj0k"
config/features=PackedStringArray("4.4", "Forward Plus") config/features=PackedStringArray("4.4", "Forward Plus")
config/icon="res://icon.svg" config/icon="res://icon.svg"

View File

@ -1,6 +1,11 @@
extends Node extends Node
func _ready() -> void:
%VERSION.text = ProjectSettings.get_setting("application/config/version")
func _on_start_button_pressed() -> void: func _on_start_button_pressed() -> void:
GLOBALVARS.reset_variables() GLOBALVARS.reset_variables()
get_tree().change_scene_to_file("res://main_scenes/game.tscn") get_tree().change_scene_to_file("res://main_scenes/game.tscn")
func _on_quit_button_pressed() -> void:
get_tree().quit(0)