1
0
Fork 0

Main Menu

This commit is contained in:
Felipe M 2021-02-04 20:25:48 +01:00
parent f272b7b433
commit 614ee06c34
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
6 changed files with 12073 additions and 13 deletions

View File

@ -0,0 +1,11 @@
[gd_resource type="StyleBoxTexture" load_steps=2 format=2]
[ext_resource path="res://Assets/UI/ButtonHoverStylebox.png" type="Texture" id=1]
[resource]
texture = ExtResource( 1 )
region_rect = Rect2( 0, 0, 6, 6 )
margin_left = 2.0
margin_right = 2.0
margin_top = 2.0
margin_bottom = 2.0

View File

@ -0,0 +1,11 @@
[gd_resource type="StyleBoxTexture" load_steps=2 format=2]
[ext_resource path="res://Assets/UI/ButtonStylebox.png" type="Texture" id=1]
[resource]
texture = ExtResource( 1 )
region_rect = Rect2( 0, 0, 6, 6 )
margin_left = 2.0
margin_right = 2.0
margin_top = 2.0
margin_bottom = 2.0

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,8 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]
[ext_resource path="res://Assets/UI/Pixel.ttf" type="DynamicFontData" id=1]
[resource]
size = 6
extra_spacing_top = 1
font_data = ExtResource( 1 )

View File

@ -1,10 +1,12 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://StarMenu.gd" type="Script" id=1]
[ext_resource path="res://Scenes/UI/DefaultTheme.tres" type="Theme" id=2]
[node name="StarMenu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 2 )
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
@ -15,26 +17,29 @@ anchor_right = 1.0
anchor_bottom = 1.0
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
margin_left = 119.0
margin_top = 56.0
margin_right = 201.0
margin_bottom = 124.0
margin_left = 132.0
margin_top = 62.0
margin_right = 188.0
margin_bottom = 118.0
[node name="StartButton" type="Button" parent="CenterContainer/VBoxContainer"]
margin_right = 82.0
margin_bottom = 20.0
margin_right = 56.0
margin_bottom = 16.0
rect_min_size = Vector2( 56, 16 )
text = "New Game"
[node name="LoadButton" type="Button" parent="CenterContainer/VBoxContainer"]
margin_top = 24.0
margin_right = 82.0
margin_bottom = 44.0
margin_top = 20.0
margin_right = 56.0
margin_bottom = 36.0
rect_min_size = Vector2( 56, 16 )
text = "Load game"
[node name="QuitButton" type="Button" parent="CenterContainer/VBoxContainer"]
margin_top = 48.0
margin_right = 82.0
margin_bottom = 68.0
margin_top = 40.0
margin_right = 56.0
margin_bottom = 56.0
rect_min_size = Vector2( 56, 16 )
text = "Quit"
[connection signal="pressed" from="CenterContainer/VBoxContainer/StartButton" to="." method="_on_StartButton_pressed"]
[connection signal="pressed" from="CenterContainer/VBoxContainer/LoadButton" to="." method="_on_LoadButton_pressed"]

View File

@ -4,6 +4,7 @@ func _ready():
VisualServer.set_default_clear_color(Color.black)
func _on_StartButton_pressed():
# warning-ignore:return_value_discarded
get_tree().change_scene("res://Scenes/World/World.tscn")
func _on_LoadButton_pressed():