started mode select 2
This commit is contained in:
85
scenes/menus/select_mode/select_mode.tscn
Normal file
85
scenes/menus/select_mode/select_mode.tscn
Normal file
@@ -0,0 +1,85 @@
|
||||
[gd_scene format=3 uid="uid://cb2i4ei3lihbh"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://b4yhwgv8l8djq" path="res://scroll.gdshader" id="1_3oan1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cfi22ymi85gjx" path="res://original data/images/menu/cascaded.png" id="2_0p6fv"]
|
||||
[ext_resource type="Texture2D" uid="uid://cjgp2h3x616" path="res://original data/images/menu/cometd.png" id="3_maffk"]
|
||||
[ext_resource type="Texture2D" uid="uid://di5qlm2pud86j" path="res://original data/images/menu/lessond.png" id="4_qgvwr"]
|
||||
[ext_resource type="Texture2D" uid="uid://dqe4as5qrs3r6" path="res://original data/images/menu/tux_configd.png" id="5_1ct8e"]
|
||||
[ext_resource type="Texture2D" uid="uid://y1rcm28rmliw" path="res://original data/images/menu/quitd.png" id="6_m1gal"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_aeitr"]
|
||||
shader = ExtResource("1_3oan1")
|
||||
shader_parameter/speed = 0.1
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_cqx26"]
|
||||
load_path = "res://.godot/imported/wp2812464.jpg-16426a98baf4dc04320bc61fb53f8deb.ctex"
|
||||
|
||||
[node name="Control" type="Control" unique_id=550682840]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Background" type="TextureRect" parent="." unique_id=290638011]
|
||||
material = SubResource("ShaderMaterial_aeitr")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("CompressedTexture2D_cqx26")
|
||||
stretch_mode = 1
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="." unique_id=1694205679]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer" unique_id=1812285147]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Button" type="Button" parent="ScrollContainer/VBoxContainer" unique_id=1019308409]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 50
|
||||
text = "Fish Cascade
|
||||
"
|
||||
icon = ExtResource("2_0p6fv")
|
||||
expand_icon = true
|
||||
|
||||
[node name="Button2" type="Button" parent="ScrollContainer/VBoxContainer" unique_id=1352982543]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 50
|
||||
text = "Comet Zap
|
||||
"
|
||||
icon = ExtResource("3_maffk")
|
||||
expand_icon = true
|
||||
|
||||
[node name="Button3" type="Button" parent="ScrollContainer/VBoxContainer" unique_id=1616574107]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 50
|
||||
text = "Lessons
|
||||
"
|
||||
icon = ExtResource("4_qgvwr")
|
||||
expand_icon = true
|
||||
|
||||
[node name="Button4" type="Button" parent="ScrollContainer/VBoxContainer" unique_id=249277019]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 50
|
||||
text = "Options"
|
||||
icon = ExtResource("5_1ct8e")
|
||||
expand_icon = true
|
||||
|
||||
[node name="Button5" type="Button" parent="ScrollContainer/VBoxContainer" unique_id=1080429911]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 50
|
||||
text = "Quit
|
||||
"
|
||||
icon = ExtResource("6_m1gal")
|
||||
expand_icon = true
|
||||
15
scenes/menus/start_menu/start_button.gd
Normal file
15
scenes/menus/start_menu/start_button.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
extends Button
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_pressed() -> void:
|
||||
get_tree().change_scene_to_file("res://scenes/menus/select_mode/select_mode.tscn")
|
||||
1
scenes/menus/start_menu/start_button.gd.uid
Normal file
1
scenes/menus/start_menu/start_button.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cvxtof1igytdj
|
||||
128
scenes/menus/start_menu/title.tscn
Normal file
128
scenes/menus/start_menu/title.tscn
Normal file
@@ -0,0 +1,128 @@
|
||||
[gd_scene format=3 uid="uid://c536b5suvq3ep"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://b4yhwgv8l8djq" path="res://scroll.gdshader" id="1_kpexm"]
|
||||
[ext_resource type="Texture2D" uid="uid://db557qcd1godx" path="res://textures/scrolbackground.png" id="2_3xoar"]
|
||||
[ext_resource type="Texture2D" uid="uid://dew71sa7dwdnc" path="res://textures/tux typing +.png" id="3_mom7w"]
|
||||
[ext_resource type="Script" uid="uid://cvxtof1igytdj" path="res://scenes/menus/start_menu/start_button.gd" id="4_jd0r5"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_nlc08"]
|
||||
shader = ExtResource("1_kpexm")
|
||||
shader_parameter/speed = 0.1
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nlc08"]
|
||||
bg_color = Color(1, 1, 1, 1)
|
||||
border_width_left = 10
|
||||
border_width_top = 10
|
||||
border_width_right = 10
|
||||
border_width_bottom = 10
|
||||
border_color = Color(0.9254902, 0.38039216, 0.6666667, 1)
|
||||
corner_radius_top_left = 25
|
||||
corner_radius_top_right = 25
|
||||
corner_radius_bottom_right = 25
|
||||
corner_radius_bottom_left = 25
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_jd0r5"]
|
||||
bg_color = Color(0.5014065, 0.50140655, 0.50140643, 1)
|
||||
border_width_left = 10
|
||||
border_width_top = 10
|
||||
border_width_right = 10
|
||||
border_width_bottom = 10
|
||||
border_color = Color(0.9254902, 0.38039216, 0.6666667, 1)
|
||||
corner_radius_top_left = 25
|
||||
corner_radius_top_right = 25
|
||||
corner_radius_bottom_right = 25
|
||||
corner_radius_bottom_left = 25
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_jn0s6"]
|
||||
bg_color = Color(0.8646751, 0.86467516, 0.8646751, 1)
|
||||
border_width_left = 10
|
||||
border_width_top = 10
|
||||
border_width_right = 10
|
||||
border_width_bottom = 10
|
||||
border_color = Color(0.9254902, 0.38039216, 0.6666667, 1)
|
||||
corner_radius_top_left = 25
|
||||
corner_radius_top_right = 25
|
||||
corner_radius_bottom_right = 25
|
||||
corner_radius_bottom_left = 25
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_jd0r5"]
|
||||
font_size = 65
|
||||
outline_size = 30
|
||||
outline_color = Color(0.97571033, 0.39818302, 0.64404315, 1)
|
||||
shadow_size = 32
|
||||
shadow_color = Color(0.9254902, 0.38039216, 0.6666667, 1)
|
||||
shadow_offset = Vector2(9.8, 5.495)
|
||||
|
||||
[node name="Control" type="Control" unique_id=2056562558]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="." unique_id=832996317]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="background" type="TextureRect" parent="." unique_id=1048489066]
|
||||
material = SubResource("ShaderMaterial_nlc08")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_3xoar")
|
||||
stretch_mode = 1
|
||||
|
||||
[node name="title" type="TextureRect" parent="." unique_id=279459107]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -507.04675
|
||||
offset_top = -381.5
|
||||
offset_right = 507.04675
|
||||
offset_bottom = 381.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("3_mom7w")
|
||||
|
||||
[node name="StartButton" type="Button" parent="." unique_id=701951005]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -129.375
|
||||
offset_top = 115.0
|
||||
offset_right = 129.375
|
||||
offset_bottom = 239.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_nlc08")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_jd0r5")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_jn0s6")
|
||||
script = ExtResource("4_jd0r5")
|
||||
|
||||
[node name="StartLabel" type="Label" parent="StartButton" unique_id=175730246]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Start!"
|
||||
label_settings = SubResource("LabelSettings_jd0r5")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="pressed" from="StartButton" to="StartButton" method="_on_pressed"]
|
||||
Reference in New Issue
Block a user