menu stuff

This commit is contained in:
pennyrigate 2024-07-07 18:25:37 -04:00
parent 89df5eaca0
commit 3ad1b32492
6 changed files with 90 additions and 55 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=34 format=2]
[gd_scene load_steps=35 format=2]
[ext_resource path="res://menus/level_select_scholar.gd" type="Script" id=1]
[ext_resource path="res://graphics/level_select/world_map.png" type="Texture" id=2]
@ -17,6 +17,7 @@
[ext_resource path="res://graphics/level_select/whirlpool.png" type="Texture" id=15]
[ext_resource path="res://graphics/player/palettes/default.tex" type="Texture" id=16]
[ext_resource path="res://shaders/recolor.tres" type="Shader" id=17]
[ext_resource path="res://objects/hud/options_screen_scholar.tscn" type="PackedScene" id=18]
[sub_resource type="CanvasItemMaterial" id=9]
particles_animation = true
@ -131,30 +132,6 @@ tracks/5/keys = {
"update": 0,
"values": [ Vector2( 1, 1 ) ]
}
tracks/6/type = "value"
tracks/6/path = NodePath("BossCenter:visible")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ false ]
}
tracks/7/type = "value"
tracks/7/path = NodePath("BossCenter:rect_scale")
tracks/7/interp = 1
tracks/7/loop_wrap = true
tracks/7/imported = false
tracks/7/enabled = true
tracks/7/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Vector2( 1, 1 ) ]
}
[sub_resource type="Animation" id=16]
resource_name = "hide_boss"
@ -688,6 +665,16 @@ theme = ExtResource( 4 )
text = "High SCORE:"
align = 1
[node name="PressStart" type="Label" parent="LevelStats"]
material = ExtResource( 6 )
margin_left = 16.0
margin_top = -13.0
margin_right = 160.0
margin_bottom = -3.0
theme = ExtResource( 4 )
text = "press start to play!"
align = 1
[node name="Any" type="Label" parent="LevelStats"]
material = ExtResource( 6 )
margin_left = 39.0
@ -845,17 +832,27 @@ position = Vector2( 31, 71 )
texture = ExtResource( 14 )
offset = Vector2( 5, 0 )
[node name="BossCenter" type="CenterContainer" parent="."]
[node name="BossCenter" type="Control" parent="."]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
rect_pivot_offset = Vector2( 128, 96 )
[node name="PressStartBoss" type="Label" parent="BossCenter"]
unique_name_in_owner = true
material = ExtResource( 6 )
margin_top = 56.0
margin_right = 256.0
margin_bottom = 66.0
theme = ExtResource( 4 )
text = "press start to fight!"
align = 1
[node name="BossTimeBox" type="Panel" parent="BossCenter"]
margin_left = 68.0
margin_top = 71.0
margin_right = 188.0
margin_bottom = 121.0
margin_left = 48.0
margin_top = 72.0
margin_right = 200.0
margin_bottom = 122.0
grow_horizontal = 2
grow_vertical = 2
rect_min_size = Vector2( 120, 50 )
@ -871,20 +868,21 @@ margin_right = -8.0
margin_bottom = -8.0
alignment = 1
[node name="Header" type="Label" parent="BossCenter/BossTimeBox/VBoxContainer"]
[node name="BossFlavorText" type="Label" parent="BossCenter/BossTimeBox/VBoxContainer"]
unique_name_in_owner = true
material = ExtResource( 6 )
margin_top = 5.0
margin_right = 104.0
margin_right = 136.0
margin_bottom = 15.0
theme = ExtResource( 4 )
text = "Swiftest Slay:"
text = "speediest smashing"
align = 1
[node name="BossTime" type="Label" parent="BossCenter/BossTimeBox/VBoxContainer"]
unique_name_in_owner = true
material = ExtResource( 6 )
margin_top = 19.0
margin_right = 104.0
margin_right = 136.0
margin_bottom = 29.0
text = "0:00.00"
align = 1
@ -995,16 +993,17 @@ margin_right = 97.0
margin_bottom = 10.0
rect_min_size = Vector2( 8, 8 )
[node name="Totals" type="HBoxContainer" parent="MenuPopup/PanelContainer/VBoxContainer"]
[node name="OptionsButton" type="HBoxContainer" parent="MenuPopup/PanelContainer/VBoxContainer"]
margin_top = 28.0
margin_right = 122.0
margin_bottom = 38.0
custom_constants/separation = 0
alignment = 1
[node name="TotalsButton" type="TextureButton" parent="MenuPopup/PanelContainer/VBoxContainer/Totals"]
margin_left = 32.0
margin_right = 40.0
[node name="OptionsButton" type="TextureButton" parent="MenuPopup/PanelContainer/VBoxContainer/OptionsButton"]
unique_name_in_owner = true
margin_left = 28.0
margin_right = 36.0
margin_bottom = 10.0
rect_min_size = Vector2( 8, 8 )
button_mask = 0
@ -1012,15 +1011,15 @@ texture_focused = ExtResource( 5 )
expand = true
stretch_mode = 3
[node name="Label" type="Label" parent="MenuPopup/PanelContainer/VBoxContainer/Totals"]
margin_left = 40.0
margin_right = 82.0
[node name="Label" type="Label" parent="MenuPopup/PanelContainer/VBoxContainer/OptionsButton"]
margin_left = 36.0
margin_right = 85.0
margin_bottom = 10.0
text = "totals"
text = "OPTIONS"
[node name="Spacer" type="Control" parent="MenuPopup/PanelContainer/VBoxContainer/Totals"]
margin_left = 82.0
margin_right = 90.0
[node name="Spacer" type="Control" parent="MenuPopup/PanelContainer/VBoxContainer/OptionsButton"]
margin_left = 85.0
margin_right = 93.0
margin_bottom = 10.0
rect_min_size = Vector2( 8, 8 )
@ -1095,7 +1094,7 @@ margin_bottom = 10.0
focus_neighbour_top = NodePath(".")
focus_neighbour_bottom = NodePath(".")
size_flags_horizontal = 3
text = "No way!"
text = "NO"
[node name="ExitMenu" type="Button" parent="ExitPopup/PanelContainer/VBoxContainer/HBoxContainer"]
margin_left = 57.0
@ -1104,10 +1103,15 @@ margin_bottom = 10.0
focus_neighbour_top = NodePath(".")
focus_neighbour_bottom = NodePath(".")
size_flags_horizontal = 3
text = "yeppers!"
text = "YES"
[node name="OptionsScreen" parent="." instance=ExtResource( 18 )]
visible = false
[connection signal="button_down" from="MenuPopup/PanelContainer/VBoxContainer/Resume/ResumeButton" to="AnimationPlayer" method="play" binds= [ "hide_menu" ]]
[connection signal="button_down" from="MenuPopup/PanelContainer/VBoxContainer/Palettes/PalettesButton" to="." method="_on_PalettesButton_button_down"]
[connection signal="button_down" from="MenuPopup/PanelContainer/VBoxContainer/OptionsButton/OptionsButton" to="." method="_on_OptionsButton_button_down"]
[connection signal="button_down" from="MenuPopup/PanelContainer/VBoxContainer/Menu/MenuButton" to="AnimationPlayer" method="play" binds= [ "show_exit" ]]
[connection signal="pressed" from="ExitPopup/PanelContainer/VBoxContainer/HBoxContainer/StayHere" to="." method="_on_StayHere_pressed"]
[connection signal="pressed" from="ExitPopup/PanelContainer/VBoxContainer/HBoxContainer/ExitMenu" to="." method="_on_ExitMenu_pressed"]
[connection signal="exit" from="OptionsScreen" to="." method="_on_OptionsScreen_exit"]