Uploaded 2nd version of Start Game Menu

Uploaded my 2nd try at the Start Game Menu. Major cosmetic overhaul. No functionality, though. All functionality (use of buttons) is in my first Start Game Menu file.
This commit is contained in:
darioGerussi
2022-01-03 18:18:22 -06:00
parent 7b1c70552c
commit a1d06ff13f
34 changed files with 482 additions and 0 deletions

View File

@ -0,0 +1,25 @@
extends ItemList
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if is_selected(0):
get_tree().change_scene("res://newGame.tscn")
if is_selected(1):
get_tree().change_scene("res://loadGame.tscn")
if is_selected(2):
get_tree().change_scene("res://multiplayer.tscn")
if is_selected(3):
get_tree().change_scene("res://addCharacter.tscn")
if is_selected(4):
get_tree().change_scene("res://settings.tscn")

View File

@ -0,0 +1,3 @@
source_md5="47313fa4c47a9963fddd764e1ec6e4a8"
dest_md5="2ded9e7f9060e2b530aab678b135fc5b"

View File

@ -0,0 +1,15 @@
extends Control
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,19 @@
extends Button
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
connect("pressed", self, "_button_pressed")
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _button_pressed():
get_tree().change_scene("res://.import/mainScene.tscn")

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,28 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Button.tscn" type="PackedScene" id=1]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.933333, 0.917647, 0.74902, 1 )
[node name="Panel" type="Panel"]
margin_right = 480.0
margin_bottom = 360.0
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="."]
margin_left = 0.840881
margin_right = 480.841
margin_bottom = 60.0
custom_colors/font_color = Color( 0.403922, 0.243137, 0.0156863, 1 )
text = "Add Character"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Button" parent="." instance=ExtResource( 1 )]

View File

@ -0,0 +1,7 @@
[gd_resource type="Environment" load_steps=2 format=2]
[sub_resource type="ProceduralSky" id=1]
[resource]
background_mode = 2
background_sky = SubResource( 1 )

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,28 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Button.tscn" type="PackedScene" id=1]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.933333, 0.917647, 0.74902, 1 )
[node name="Panel" type="Panel"]
margin_right = 480.0
margin_bottom = 360.0
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="."]
margin_left = 0.840881
margin_right = 480.841
margin_bottom = 60.0
custom_colors/font_color = Color( 0.403922, 0.243137, 0.0156863, 1 )
text = "Load Game"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Button" parent="." instance=ExtResource( 1 )]

View File

@ -0,0 +1,28 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Button.tscn" type="PackedScene" id=1]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.933333, 0.917647, 0.74902, 1 )
[node name="Panel" type="Panel"]
margin_right = 480.0
margin_bottom = 360.0
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="."]
margin_left = 0.840881
margin_right = 480.841
margin_bottom = 60.0
custom_colors/font_color = Color( 0.403922, 0.243137, 0.0156863, 1 )
text = "Multiplayer"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Button" parent="." instance=ExtResource( 1 )]

View File

@ -0,0 +1,27 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Button.tscn" type="PackedScene" id=1]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.933333, 0.917647, 0.74902, 1 )
[node name="Panel" type="Panel"]
margin_right = 480.0
margin_bottom = 360.0
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label_Title" type="Label" parent="."]
margin_right = 480.0
margin_bottom = 60.0
custom_colors/font_color = Color( 0.403922, 0.243137, 0.0156863, 1 )
text = "New Game"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Button" parent="." instance=ExtResource( 1 )]

View File

@ -0,0 +1,24 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]
config/name="Start Game Menu"
run/main_scene="res://.import/mainScene.tscn"
config/icon="res://icon.png"
[rendering]
environment/default_environment="res://default_env.tres"

View File

@ -0,0 +1,28 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Button.tscn" type="PackedScene" id=1]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.933333, 0.917647, 0.74902, 1 )
[node name="Panel" type="Panel"]
margin_right = 480.0
margin_bottom = 360.0
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="."]
margin_left = 0.840881
margin_right = 480.841
margin_bottom = 60.0
custom_colors/font_color = Color( 0.403922, 0.243137, 0.0156863, 1 )
text = "Settings"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Button" parent="." instance=ExtResource( 1 )]