initial add
This commit is contained in:
38
gobbos_delivery/scenes/user_interface/loading_screen.tscn
Normal file
38
gobbos_delivery/scenes/user_interface/loading_screen.tscn
Normal file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://d25timr8vhun4"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://8yal1fqglvut" path="res://scripts/user_interface/loading_screen.gd" id="1_77x1d"]
|
||||
[ext_resource type="Texture2D" uid="uid://bai33al6u8ywo" path="res://assets/ui/loading_wheel.png" id="1_q1p2u"]
|
||||
|
||||
[node name="LoadingScreen" 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_77x1d")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.0784314, 0.180392, 0.14902, 1)
|
||||
|
||||
[node name="TextureProgressBar" type="TextureProgressBar" parent="."]
|
||||
texture_filter = 1
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.472222
|
||||
anchor_top = 0.450617
|
||||
anchor_right = 0.527778
|
||||
anchor_bottom = 0.549383
|
||||
offset_bottom = 3.05176e-05
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
fill_mode = 4
|
||||
nine_patch_stretch = true
|
||||
texture_progress = ExtResource("1_q1p2u")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
64
gobbos_delivery/scenes/user_interface/pause_menu.tscn
Normal file
64
gobbos_delivery/scenes/user_interface/pause_menu.tscn
Normal file
@@ -0,0 +1,64 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bqscbwk67fkf5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cydmxkxpei0o3" path="res://scripts/user_interface/pause_menu/pause_menu.gd" id="1_m2jqd"]
|
||||
[ext_resource type="PackedScene" uid="uid://cki48fruo8bym" path="res://scenes/user_interface/settings_menu.tscn" id="2_r41ql"]
|
||||
|
||||
[node name="PauseMenu" type="Control"]
|
||||
process_mode = 3
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_m2jqd")
|
||||
|
||||
[node name="SettingsMenu" parent="." instance=ExtResource("2_r41ql")]
|
||||
layout_mode = 2
|
||||
anchors_preset = 0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
offset_left = 526.0
|
||||
offset_top = 376.5
|
||||
offset_right = 626.0
|
||||
offset_bottom = 376.5
|
||||
|
||||
[node name="Background" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0.0774, 0.18, 0.14922, 0.498039)
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -47.5
|
||||
offset_top = -50.5
|
||||
offset_right = 47.5
|
||||
offset_bottom = 50.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="ResumeButton" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Resume"
|
||||
|
||||
[node name="SettingsButton" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Settings"
|
||||
|
||||
[node name="QuitButton" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Quit to Title"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/ResumeButton" to="." method="_on_resume_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/SettingsButton" to="." method="_on_settings_button_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/QuitButton" to="." method="_on_quit_button_pressed"]
|
||||
115
gobbos_delivery/scenes/user_interface/settings_menu.tscn
Normal file
115
gobbos_delivery/scenes/user_interface/settings_menu.tscn
Normal file
@@ -0,0 +1,115 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cki48fruo8bym"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://3uqf5dorg2et" path="res://scripts/user_interface/slider_label.gd" id="1_66447"]
|
||||
[ext_resource type="Script" uid="uid://f1f4otkm5x0r" path="res://scripts/user_interface/settings_menu/settings.gd" id="1_gh5wx"]
|
||||
|
||||
[node name="SettingsMenu" type="Control"]
|
||||
process_mode = 3
|
||||
z_index = 2
|
||||
texture_filter = 1
|
||||
layout_direction = 1
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_gh5wx")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -412.0
|
||||
offset_top = -237.0
|
||||
offset_right = 413.0
|
||||
offset_bottom = 176.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="TabContainer" type="TabContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
current_tab = 1
|
||||
clip_tabs = false
|
||||
|
||||
[node name="Game" type="VBoxContainer" parent="VBoxContainer/TabContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 0
|
||||
|
||||
[node name="Control" type="VBoxContainer" parent="VBoxContainer/TabContainer"]
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 1
|
||||
|
||||
[node name="InvertMouse" type="HBoxContainer" parent="VBoxContainer/TabContainer/Control"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/TabContainer/Control/InvertMouse"]
|
||||
layout_mode = 2
|
||||
text = "Invert Mouse"
|
||||
|
||||
[node name="InvertMouse" type="CheckBox" parent="VBoxContainer/TabContainer/Control/InvertMouse"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="CameraSens" type="HBoxContainer" parent="VBoxContainer/TabContainer/Control"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/TabContainer/Control/CameraSens"]
|
||||
layout_mode = 2
|
||||
text = "Camera Sensitivity :"
|
||||
|
||||
[node name="SliderLabel" type="Label" parent="VBoxContainer/TabContainer/Control/CameraSens" node_paths=PackedStringArray("LabeledSlider")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "#
|
||||
"
|
||||
horizontal_alignment = 1
|
||||
script = ExtResource("1_66447")
|
||||
LabeledSlider = NodePath("../CameraSens")
|
||||
|
||||
[node name="Panel" type="Panel" parent="VBoxContainer/TabContainer/Control/CameraSens"]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
custom_minimum_size = Vector2(48, 0)
|
||||
layout_direction = 2
|
||||
layout_mode = 2
|
||||
|
||||
[node name="CameraSens" type="HSlider" parent="VBoxContainer/TabContainer/Control/CameraSens"]
|
||||
custom_minimum_size = Vector2(500, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
min_value = 1.0
|
||||
value = 1.0
|
||||
ticks_on_borders = true
|
||||
|
||||
[node name="Panel2" type="Panel" parent="VBoxContainer/TabContainer/Control/CameraSens"]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
custom_minimum_size = Vector2(48, 0)
|
||||
layout_direction = 2
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Audio" type="VBoxContainer" parent="VBoxContainer/TabContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ExitButton" type="Button" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Back
|
||||
"
|
||||
|
||||
[node name="Panel" type="Panel" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[connection signal="toggled" from="VBoxContainer/TabContainer/Control/InvertMouse/InvertMouse" to="." method="_on_invert_mouse_toggled"]
|
||||
[connection signal="drag_ended" from="VBoxContainer/TabContainer/Control/CameraSens/CameraSens" to="." method="_on_camera_sens_drag_ended"]
|
||||
[connection signal="pressed" from="VBoxContainer/HBoxContainer/ExitButton" to="." method="_on_exit_button_pressed"]
|
||||
92
gobbos_delivery/scenes/user_interface/title_screen.tscn
Normal file
92
gobbos_delivery/scenes/user_interface/title_screen.tscn
Normal file
@@ -0,0 +1,92 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://4sjryt00hgse"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bs1g3xjxf8i3k" path="res://scripts/user_interface/title_screen/title_screen.gd" id="1_0rdiu"]
|
||||
[ext_resource type="Script" uid="uid://b34ocehefekp3" path="res://scripts/user_interface/title_screen/start_button.gd" id="1_00sld"]
|
||||
[ext_resource type="PackedScene" uid="uid://cki48fruo8bym" path="res://scenes/user_interface/settings_menu.tscn" id="2_0t2hv"]
|
||||
[ext_resource type="Script" uid="uid://cx5wq6cs2lqxg" path="res://scripts/user_interface/title_screen/quit_button.gd" id="2_df56y"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_yby3l"]
|
||||
font_size = 66
|
||||
shadow_size = 11
|
||||
shadow_color = Color(0, 0.08, 0.0253333, 0.368627)
|
||||
shadow_offset = Vector2(5.19, 3.49)
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_2vhw3"]
|
||||
device = -1
|
||||
keycode = 4194309
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_chj2k"]
|
||||
events = [SubResource("InputEventKey_2vhw3")]
|
||||
|
||||
[node name="TitleScreen" 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_0rdiu")
|
||||
|
||||
[node name="SettingsMenu" parent="." instance=ExtResource("2_0t2hv")]
|
||||
layout_mode = 1
|
||||
|
||||
[node name="Background" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0.0792, 0.18, 0.14976, 1)
|
||||
|
||||
[node name="Title" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_top = 0.310185
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.450617
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Gobbo's Delivery"
|
||||
label_settings = SubResource("LabelSettings_yby3l")
|
||||
horizontal_alignment = 1
|
||||
uppercase = true
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -48.0
|
||||
offset_top = 66.0
|
||||
offset_right = 48.0
|
||||
offset_bottom = 200.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="StartButton" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
shortcut = SubResource("Shortcut_chj2k")
|
||||
text = "Start Game"
|
||||
script = ExtResource("1_00sld")
|
||||
goto_scene = "res://scenes/levels/prototype.tscn"
|
||||
|
||||
[node name="SettingsButton" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
shortcut = SubResource("Shortcut_chj2k")
|
||||
text = "Settings"
|
||||
|
||||
[node name="QuitButton" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
shortcut = SubResource("Shortcut_chj2k")
|
||||
text = "Exit Game
|
||||
"
|
||||
script = ExtResource("2_df56y")
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/StartButton" to="VBoxContainer/StartButton" method="_on_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/SettingsButton" to="." method="_on_settings_button_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/QuitButton" to="VBoxContainer/QuitButton" method="_on_pressed"]
|
||||
Reference in New Issue
Block a user