1
Fork 0
mirror of https://github.com/Steffo99/pineapple-surf.git synced 2024-11-22 15:54:20 +00:00
pineapple-surf/menu/Menu.tscn

189 lines
5.5 KiB
Text
Raw Normal View History

2023-01-09 16:43:16 +00:00
[gd_scene load_steps=7 format=3 uid="uid://bufi0wh54u5x5"]
2023-01-07 02:27:44 +00:00
2023-01-07 02:34:29 +00:00
[ext_resource type="Theme" uid="uid://c5a1nyqumj46j" path="res://menu/menu_theme.tres" id="1_mkxnc"]
2023-01-07 11:03:21 +00:00
[ext_resource type="Script" path="res://menu/Menu.gd" id="2_6amk3"]
2023-01-07 02:29:15 +00:00
[ext_resource type="Texture2D" uid="uid://bxyximtgui1ux" path="res://assets/grass_menu_tile.png" id="2_q14jx"]
2023-01-09 16:43:16 +00:00
[ext_resource type="PackedScene" uid="uid://b7h36f4ai0qmq" path="res://menu/score.tscn" id="4_ec4at"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_uie3v"]
bg_color = Color(0.184314, 0.341176, 0.32549, 1)
[sub_resource type="LabelSettings" id="LabelSettings_xmwgs"]
shadow_size = 0
shadow_color = Color(0, 0, 0, 0.431373)
2023-01-07 02:27:44 +00:00
[node name="Menu" type="Control"]
texture_filter = 1
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 3
2023-01-07 02:34:29 +00:00
theme = ExtResource("1_mkxnc")
2023-01-07 11:03:21 +00:00
script = ExtResource("2_6amk3")
2023-01-07 02:27:44 +00:00
[node name="Panel" type="TextureRect" parent="."]
2023-01-09 14:15:59 +00:00
layout_mode = 1
2023-01-07 02:27:44 +00:00
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
2023-01-07 02:29:15 +00:00
texture = ExtResource("2_q14jx")
2023-01-07 02:27:44 +00:00
stretch_mode = 1
[node name="Content" type="VBoxContainer" parent="."]
2023-01-09 14:15:59 +00:00
layout_mode = 1
2023-01-07 02:27:44 +00:00
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1
[node name="Authors" type="Label" parent="Content"]
2023-01-09 14:15:59 +00:00
layout_mode = 2
2023-01-07 02:27:44 +00:00
text = "A game by Ichicoro and Steffo"
horizontal_alignment = 1
[node name="Title" type="Label" parent="Content"]
2023-01-09 14:15:59 +00:00
layout_mode = 2
2023-01-07 02:27:44 +00:00
size_flags_vertical = 6
theme_override_font_sizes/font_size = 48
text = "Harvest"
horizontal_alignment = 1
2023-01-09 14:15:59 +00:00
[node name="Inputs" type="Control" parent="Content"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 6
[node name="NameInput" type="TextEdit" parent="Content/Inputs"]
custom_minimum_size = Vector2(140, 28)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 6
placeholder_text = "What's your name?"
[node name="Buttons" type="Control" parent="Content"]
layout_mode = 2
2023-01-07 02:27:44 +00:00
size_flags_vertical = 6
2023-01-09 16:43:16 +00:00
[node name="HBoxContainer" type="HBoxContainer" parent="Content/Buttons"]
2023-01-09 14:15:59 +00:00
layout_mode = 1
2023-01-09 16:43:16 +00:00
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
2023-01-07 02:27:44 +00:00
grow_horizontal = 2
grow_vertical = 2
2023-01-09 16:43:16 +00:00
alignment = 1
[node name="PlayButton" type="Button" parent="Content/Buttons/HBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(36, 2.08165e-12)
layout_mode = 2
2023-01-07 02:27:44 +00:00
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_font_sizes/font_size = 0
2023-01-09 16:43:16 +00:00
disabled = true
2023-01-07 02:27:44 +00:00
text = "Play"
2023-01-09 16:43:16 +00:00
[node name="ScoresButton" type="Button" parent="Content/Buttons/HBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(52, 2.08165e-12)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_font_sizes/font_size = 0
disabled = true
text = "Scores"
2023-01-07 02:27:44 +00:00
[node name="Authors2" type="Label" parent="Content"]
2023-01-09 14:15:59 +00:00
layout_mode = 2
2023-01-07 02:27:44 +00:00
size_flags_vertical = 1
text = "Ludum Dare 52 - Harvest"
horizontal_alignment = 1
2023-01-07 11:03:21 +00:00
2023-01-09 16:43:16 +00:00
[node name="ScoreboardContainer" type="Control" parent="."]
2023-01-09 16:59:08 +00:00
visible = false
2023-01-09 16:43:16 +00:00
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="ColorRect" type="ColorRect" parent="ScoreboardContainer"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.635294)
[node name="Panel" type="Panel" parent="ScoreboardContainer"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -97.0
offset_top = -67.0
offset_right = 97.0
offset_bottom = 67.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_uie3v")
[node name="VBoxContainer" type="VBoxContainer" parent="ScoreboardContainer/Panel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Authors" type="Label" parent="ScoreboardContainer/Panel/VBoxContainer"]
layout_mode = 2
text = "Scores"
label_settings = SubResource("LabelSettings_xmwgs")
horizontal_alignment = 1
[node name="ScrollContainer" type="ScrollContainer" parent="ScoreboardContainer/Panel/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="ScoresVBox" type="VBoxContainer" parent="ScoreboardContainer/Panel/VBoxContainer/ScrollContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 0
[node name="score" parent="ScoreboardContainer/Panel/VBoxContainer/ScrollContainer/ScoresVBox" instance=ExtResource("4_ec4at")]
layout_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="ScoreboardContainer/Panel/VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_bottom = 2
[node name="closebtn" type="Button" parent="ScoreboardContainer/Panel/VBoxContainer/MarginContainer"]
custom_minimum_size = Vector2(52, 2.08165e-12)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_font_sizes/font_size = 0
text = "Close"
2023-01-09 14:15:59 +00:00
[connection signal="text_changed" from="Content/Inputs/NameInput" to="." method="_on_text_edit_text_changed"]
2023-01-09 16:43:16 +00:00
[connection signal="pressed" from="Content/Buttons/HBoxContainer/PlayButton" to="." method="play"]
[connection signal="pressed" from="Content/Buttons/HBoxContainer/ScoresButton" to="." method="open_scores"]
[connection signal="pressed" from="ScoreboardContainer/Panel/VBoxContainer/MarginContainer/closebtn" to="." method="close_scores"]