mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
better sound effects
This commit is contained in:
parent
f2cb94d4e3
commit
5503c2d05a
146 changed files with 1189 additions and 88 deletions
BIN
Menu/Buttons/AudioSliders/MusicVolume1.png
Normal file
BIN
Menu/Buttons/AudioSliders/MusicVolume1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 227 B |
34
Menu/Buttons/AudioSliders/MusicVolume1.png.import
Normal file
34
Menu/Buttons/AudioSliders/MusicVolume1.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/MusicVolume1.png-8b307e41993910b033bd2a665cbfc5ff.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Menu/Buttons/AudioSliders/MusicVolume1.png"
|
||||
dest_files=[ "res://.import/MusicVolume1.png-8b307e41993910b033bd2a665cbfc5ff.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=false
|
||||
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=false
|
||||
svg/scale=1.0
|
BIN
Menu/Buttons/AudioSliders/MusicVolume2.png
Normal file
BIN
Menu/Buttons/AudioSliders/MusicVolume2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 227 B |
34
Menu/Buttons/AudioSliders/MusicVolume2.png.import
Normal file
34
Menu/Buttons/AudioSliders/MusicVolume2.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/MusicVolume2.png-7a884ade53c6bbc52021437f6bb8418d.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Menu/Buttons/AudioSliders/MusicVolume2.png"
|
||||
dest_files=[ "res://.import/MusicVolume2.png-7a884ade53c6bbc52021437f6bb8418d.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=false
|
||||
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=false
|
||||
svg/scale=1.0
|
BIN
Menu/Buttons/AudioSliders/MusicVolume3.png
Normal file
BIN
Menu/Buttons/AudioSliders/MusicVolume3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 348 B |
34
Menu/Buttons/AudioSliders/MusicVolume3.png.import
Normal file
34
Menu/Buttons/AudioSliders/MusicVolume3.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/MusicVolume3.png-4556065c35916caee8e7661fb814e73d.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Menu/Buttons/AudioSliders/MusicVolume3.png"
|
||||
dest_files=[ "res://.import/MusicVolume3.png-4556065c35916caee8e7661fb814e73d.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=false
|
||||
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=false
|
||||
svg/scale=1.0
|
BIN
Menu/Buttons/AudioSliders/SFXVolume1.png
Normal file
BIN
Menu/Buttons/AudioSliders/SFXVolume1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 244 B |
34
Menu/Buttons/AudioSliders/SFXVolume1.png.import
Normal file
34
Menu/Buttons/AudioSliders/SFXVolume1.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/SFXVolume1.png-71ddb0fc50fa3d9f89b3d5cd3b7a772a.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Menu/Buttons/AudioSliders/SFXVolume1.png"
|
||||
dest_files=[ "res://.import/SFXVolume1.png-71ddb0fc50fa3d9f89b3d5cd3b7a772a.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=false
|
||||
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=false
|
||||
svg/scale=1.0
|
BIN
Menu/Buttons/AudioSliders/SFXVolume2.png
Normal file
BIN
Menu/Buttons/AudioSliders/SFXVolume2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 245 B |
34
Menu/Buttons/AudioSliders/SFXVolume2.png.import
Normal file
34
Menu/Buttons/AudioSliders/SFXVolume2.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/SFXVolume2.png-1afa9c2c2442c49d99f4471960a9feae.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Menu/Buttons/AudioSliders/SFXVolume2.png"
|
||||
dest_files=[ "res://.import/SFXVolume2.png-1afa9c2c2442c49d99f4471960a9feae.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=false
|
||||
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=false
|
||||
svg/scale=1.0
|
9
Menu/Buttons/AudioSliders/VolumeSlider.gd
Normal file
9
Menu/Buttons/AudioSliders/VolumeSlider.gd
Normal file
|
@ -0,0 +1,9 @@
|
|||
extends HSlider
|
||||
|
||||
export var bus_channel = "Master"
|
||||
|
||||
func _ready():
|
||||
value = db2linear(AudioServer.get_bus_volume_db(AudioServer.get_bus_index(bus_channel)))
|
||||
|
||||
func _on_MusicVolumeSlider_value_changed(value):
|
||||
AudioServer.set_bus_volume_db(AudioServer.get_bus_index(bus_channel), linear2db(value))
|
19
Menu/Buttons/AudioSliders/VolumeSlider.tscn
Normal file
19
Menu/Buttons/AudioSliders/VolumeSlider.tscn
Normal file
|
@ -0,0 +1,19 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Menu/Buttons/AudioSliders/VolumeSlider.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Menu/Theme.tres" type="Theme" id=2]
|
||||
|
||||
[node name="VolumeSlider" type="HSlider"]
|
||||
margin_right = 500.0
|
||||
margin_bottom = 32.0
|
||||
grow_vertical = 2
|
||||
rect_min_size = Vector2( 100, 32 )
|
||||
theme = ExtResource( 2 )
|
||||
max_value = 1.0
|
||||
step = 0.025
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[connection signal="value_changed" from="." to="." method="_on_MusicVolumeSlider_value_changed"]
|
8
Menu/Buttons/ButtonSFX.gd
Normal file
8
Menu/Buttons/ButtonSFX.gd
Normal file
|
@ -0,0 +1,8 @@
|
|||
extends Node
|
||||
|
||||
func on_hover():
|
||||
$Hover.play(0)
|
||||
|
||||
func on_select():
|
||||
$Select.play(0)
|
||||
|
15
Menu/Buttons/ButtonSFX.tscn
Normal file
15
Menu/Buttons/ButtonSFX.tscn
Normal file
|
@ -0,0 +1,15 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://SFX/Scratch/HoverButton.wav" type="AudioStream" id=1]
|
||||
[ext_resource path="res://SFX/Scratch/SelectButton.wav" type="AudioStream" id=2]
|
||||
[ext_resource path="res://Menu/Buttons/ButtonSFX.gd" type="Script" id=3]
|
||||
|
||||
[node name="ButtonSFX" type="Node"]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="Hover" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 1 )
|
||||
bus = "SFX"
|
||||
|
||||
[node name="Select" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 2 )
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Menu/Buttons/Fullscreen/fullscreen1.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Menu/Buttons/Fullscreen/fullscreen3.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Menu/Buttons/Fullscreen/fullscreen2.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Menu/Buttons/Fullscreen/FullscreenButton.gd" type="Script" id=4]
|
||||
[ext_resource path="res://Menu/Buttons/ButtonSFX.tscn" type="PackedScene" id=5]
|
||||
|
||||
[node name="FullscreenButton" type="TextureButton"]
|
||||
anchor_right = 1.0
|
||||
|
@ -17,4 +18,9 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ButtonSFX" parent="." instance=ExtResource( 5 )]
|
||||
|
||||
[connection signal="focus_entered" from="." to="ButtonSFX" method="on_hover"]
|
||||
[connection signal="mouse_entered" from="." to="ButtonSFX" method="on_hover"]
|
||||
[connection signal="pressed" from="." to="ButtonSFX" method="on_select"]
|
||||
[connection signal="toggled" from="." to="." method="_on_FullscreenButton_toggled"]
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
extends Button
|
||||
|
||||
export var scene = "res://Menu/MainMenu.tscn"
|
||||
export var unlock_points_required = 0
|
||||
|
||||
func _ready():
|
||||
if unlock_points_required > GameStats.unlock_points:
|
||||
disabled = true
|
||||
|
||||
func _on_SceneSelectButton_pressed():
|
||||
GameStats.set_current_scene(scene)
|
||||
|
|
|
@ -9,3 +9,4 @@ func _on_LevelSelectIconButton_pressed():
|
|||
var fadeout = Fadeout.instance()
|
||||
fadeout.scene_to_load = scene
|
||||
main.add_child(fadeout)
|
||||
get_tree().paused = false
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
[gd_scene load_steps=2 format=2]
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Menu/Buttons/LevelSelectIconButton.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Menu/Buttons/ButtonSFX.tscn" type="PackedScene" id=2]
|
||||
|
||||
[node name="LevelSelectIconButton" type="TextureButton"]
|
||||
margin_right = 40.0
|
||||
|
@ -10,4 +11,9 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ButtonSFX" parent="." instance=ExtResource( 2 )]
|
||||
|
||||
[connection signal="focus_entered" from="." to="ButtonSFX" method="on_hover"]
|
||||
[connection signal="mouse_entered" from="." to="ButtonSFX" method="on_hover"]
|
||||
[connection signal="pressed" from="." to="ButtonSFX" method="on_select"]
|
||||
[connection signal="pressed" from="." to="." method="_on_LevelSelectIconButton_pressed"]
|
||||
|
|
|
@ -3,3 +3,5 @@ extends TextureButton
|
|||
func _on_PlayButton_pressed():
|
||||
GameStats.restart_level()
|
||||
disabled = true
|
||||
get_tree().paused = false
|
||||
get_parent().visible = false
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Menu/Icons/Play/Play3.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Menu/Icons/Play/Play2.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Menu/Icons/Play/Play1.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Menu/Buttons/PlayButton.gd" type="Script" id=4]
|
||||
[ext_resource path="res://Menu/Buttons/ButtonSFX.tscn" type="PackedScene" id=5]
|
||||
|
||||
[node name="PlayButton" type="TextureButton"]
|
||||
margin_right = 40.0
|
||||
|
@ -16,4 +17,9 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ButtonSFX" parent="." instance=ExtResource( 5 )]
|
||||
|
||||
[connection signal="focus_entered" from="." to="ButtonSFX" method="on_hover"]
|
||||
[connection signal="mouse_entered" from="." to="ButtonSFX" method="on_hover"]
|
||||
[connection signal="pressed" from="." to="." method="_on_PlayButton_pressed"]
|
||||
[connection signal="pressed" from="." to="ButtonSFX" method="on_select"]
|
||||
|
|
|
@ -5,3 +5,4 @@ extends TextureButton
|
|||
func _on_RestartButton_pressed():
|
||||
GameStats.restart_level()
|
||||
disabled = true
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Menu/Icons/Replay/replayIcon3.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Menu/Icons/Replay/replayIcon2.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Menu/Icons/Replay/replayIcon1.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Menu/Buttons/RestartButton.gd" type="Script" id=4]
|
||||
[ext_resource path="res://Menu/Buttons/ButtonSFX.tscn" type="PackedScene" id=5]
|
||||
|
||||
[node name="RestartButton" type="TextureButton"]
|
||||
margin_right = 32.0
|
||||
|
@ -16,4 +17,9 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ButtonSFX" parent="." instance=ExtResource( 5 )]
|
||||
|
||||
[connection signal="focus_entered" from="." to="ButtonSFX" method="on_hover"]
|
||||
[connection signal="mouse_entered" from="." to="ButtonSFX" method="on_hover"]
|
||||
[connection signal="pressed" from="." to="ButtonSFX" method="on_select"]
|
||||
[connection signal="pressed" from="." to="." method="_on_RestartButton_pressed"]
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Menu/Theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://Menu/Buttons/LevelSelectButton.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Menu/Buttons/ButtonSFX.tscn" type="PackedScene" id=3]
|
||||
|
||||
[node name="SceneSelectButton" type="Button"]
|
||||
anchor_right = 1.0
|
||||
|
@ -15,4 +16,9 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ButtonSFX" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
[connection signal="focus_entered" from="." to="ButtonSFX" method="on_hover"]
|
||||
[connection signal="mouse_entered" from="." to="ButtonSFX" method="on_hover"]
|
||||
[connection signal="pressed" from="." to="ButtonSFX" method="on_select"]
|
||||
[connection signal="pressed" from="." to="." method="_on_SceneSelectButton_pressed"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=9 format=2]
|
||||
[gd_scene load_steps=14 format=2]
|
||||
|
||||
[ext_resource path="res://Menu/Theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://Menu/Buttons/SceneSelectButton.tscn" type="PackedScene" id=2]
|
||||
|
@ -8,6 +8,11 @@
|
|||
[ext_resource path="res://icon.png" type="Texture" id=6]
|
||||
[ext_resource path="res://Menu/LevelInfo.tscn" type="PackedScene" id=7]
|
||||
[ext_resource path="res://Pegs/Pink/Pink.png" type="Texture" id=8]
|
||||
[ext_resource path="res://Menu/Buttons/AudioSliders/VolumeSlider.tscn" type="PackedScene" id=9]
|
||||
[ext_resource path="res://Menu/Buttons/AudioSliders/MusicVolume1.png" type="Texture" id=10]
|
||||
[ext_resource path="res://Menu/Buttons/AudioSliders/MusicVolume2.png" type="Texture" id=11]
|
||||
[ext_resource path="res://Menu/Buttons/AudioSliders/SFXVolume1.png" type="Texture" id=12]
|
||||
[ext_resource path="res://Menu/Buttons/AudioSliders/SFXVolume2.png" type="Texture" id=13]
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer"]
|
||||
|
||||
|
@ -55,13 +60,27 @@ __meta__ = {
|
|||
margin_top = 133.0
|
||||
margin_right = 368.0
|
||||
margin_bottom = 165.0
|
||||
alignment = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="SFX Volume" parent="Control/TabContainer/Main Menu/VBoxContainer/HBoxContainer" instance=ExtResource( 9 )]
|
||||
margin_left = 64.0
|
||||
margin_right = 164.0
|
||||
custom_icons/grabber_highlight = ExtResource( 13 )
|
||||
custom_icons/grabber = ExtResource( 12 )
|
||||
bus_channel = "SFX"
|
||||
|
||||
[node name="Music Volume" parent="Control/TabContainer/Main Menu/VBoxContainer/HBoxContainer" instance=ExtResource( 9 )]
|
||||
margin_left = 168.0
|
||||
margin_right = 268.0
|
||||
custom_icons/grabber_highlight = ExtResource( 11 )
|
||||
custom_icons/grabber = ExtResource( 10 )
|
||||
bus_channel = "Music"
|
||||
|
||||
[node name="FullscreenButton" parent="Control/TabContainer/Main Menu/VBoxContainer/HBoxContainer" instance=ExtResource( 5 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 336.0
|
||||
margin_right = 368.0
|
||||
margin_left = 272.0
|
||||
margin_right = 304.0
|
||||
margin_bottom = 32.0
|
||||
|
||||
[node name="Levels" type="Tabs" parent="Control/TabContainer"]
|
||||
|
@ -84,9 +103,12 @@ __meta__ = {
|
|||
}
|
||||
|
||||
[node name="LevelInfo" parent="Control/TabContainer/Levels/HBoxContainer" instance=ExtResource( 7 )]
|
||||
margin_left = 157.0
|
||||
margin_right = 172.0
|
||||
alignment = 1
|
||||
|
||||
[node name="LevelList" type="ScrollContainer" parent="Control/TabContainer/Levels/HBoxContainer"]
|
||||
margin_left = 154.0
|
||||
margin_left = 176.0
|
||||
margin_right = 368.0
|
||||
margin_bottom = 165.0
|
||||
theme = ExtResource( 1 )
|
||||
|
@ -102,72 +124,74 @@ margin_bottom = 335.0
|
|||
[node name="LevelSelectButton" parent="Control/TabContainer/Levels/HBoxContainer/LevelList/LevelListHBox" instance=ExtResource( 2 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 190.0
|
||||
margin_bottom = 40.0
|
||||
margin_right = 168.0
|
||||
margin_bottom = 25.0
|
||||
icon = ExtResource( 8 )
|
||||
scene = "res://Stages/EmptyStage.tscn"
|
||||
|
||||
[node name="LevelSelectButton3" parent="Control/TabContainer/Levels/HBoxContainer/LevelList/LevelListHBox" instance=ExtResource( 2 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 88.0
|
||||
margin_right = 190.0
|
||||
margin_bottom = 128.0
|
||||
margin_top = 29.0
|
||||
margin_right = 168.0
|
||||
margin_bottom = 69.0
|
||||
icon = ExtResource( 6 )
|
||||
scene = "res://Stages/EmptyStage.tscn"
|
||||
unlock_points_required = 10
|
||||
|
||||
[node name="LevelSelectButton4" parent="Control/TabContainer/Levels/HBoxContainer/LevelList/LevelListHBox" instance=ExtResource( 2 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 132.0
|
||||
margin_right = 190.0
|
||||
margin_bottom = 172.0
|
||||
margin_top = 73.0
|
||||
margin_right = 168.0
|
||||
margin_bottom = 113.0
|
||||
text = "> piss"
|
||||
icon = ExtResource( 6 )
|
||||
scene = "res://Stages/EmptyStage.tscn"
|
||||
unlock_points_required = 20
|
||||
|
||||
[node name="LevelSelectButton5" parent="Control/TabContainer/Levels/HBoxContainer/LevelList/LevelListHBox" instance=ExtResource( 2 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 176.0
|
||||
margin_right = 190.0
|
||||
margin_bottom = 216.0
|
||||
margin_top = 117.0
|
||||
margin_right = 168.0
|
||||
margin_bottom = 157.0
|
||||
icon = ExtResource( 6 )
|
||||
scene = "res://Stages/EmptyStage.tscn"
|
||||
|
||||
[node name="LevelSelectButton6" parent="Control/TabContainer/Levels/HBoxContainer/LevelList/LevelListHBox" instance=ExtResource( 2 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 220.0
|
||||
margin_right = 190.0
|
||||
margin_bottom = 260.0
|
||||
margin_top = 161.0
|
||||
margin_right = 168.0
|
||||
margin_bottom = 201.0
|
||||
icon = ExtResource( 6 )
|
||||
scene = "res://Stages/EmptyStage.tscn"
|
||||
|
||||
[node name="LevelSelectButton7" parent="Control/TabContainer/Levels/HBoxContainer/LevelList/LevelListHBox" instance=ExtResource( 2 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 264.0
|
||||
margin_right = 190.0
|
||||
margin_bottom = 304.0
|
||||
margin_top = 205.0
|
||||
margin_right = 168.0
|
||||
margin_bottom = 245.0
|
||||
icon = ExtResource( 6 )
|
||||
scene = "res://Stages/EmptyStage.tscn"
|
||||
|
||||
[node name="LevelSelectButton8" parent="Control/TabContainer/Levels/HBoxContainer/LevelList/LevelListHBox" instance=ExtResource( 2 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 308.0
|
||||
margin_right = 190.0
|
||||
margin_bottom = 348.0
|
||||
margin_top = 249.0
|
||||
margin_right = 168.0
|
||||
margin_bottom = 289.0
|
||||
icon = ExtResource( 6 )
|
||||
scene = "res://Stages/EmptyStage.tscn"
|
||||
|
||||
[node name="LevelSelectButton9" parent="Control/TabContainer/Levels/HBoxContainer/LevelList/LevelListHBox" instance=ExtResource( 2 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 352.0
|
||||
margin_right = 190.0
|
||||
margin_bottom = 392.0
|
||||
margin_top = 293.0
|
||||
margin_right = 168.0
|
||||
margin_bottom = 333.0
|
||||
icon = ExtResource( 6 )
|
||||
scene = "res://Stages/EmptyStage.tscn"
|
||||
|
||||
|
|
9
Menu/Pause.gd
Normal file
9
Menu/Pause.gd
Normal file
|
@ -0,0 +1,9 @@
|
|||
extends CenterContainer
|
||||
|
||||
func _process(delta):
|
||||
if Input.is_action_just_pressed("pause"):
|
||||
_on_pause_button_pressed()
|
||||
|
||||
func _on_pause_button_pressed():
|
||||
get_tree().paused = !get_tree().paused
|
||||
visible = !visible
|
95
Menu/Pause.tscn
Normal file
95
Menu/Pause.tscn
Normal file
|
@ -0,0 +1,95 @@
|
|||
[gd_scene load_steps=17 format=2]
|
||||
|
||||
[ext_resource path="res://Menu/Buttons/RestartButton.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Menu/Icons/Play/Play2.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Menu/Icons/Home/homeIcon1.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Menu/Icons/Home/homeIcon2.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Menu/Icons/Home/homeIcon3.png" type="Texture" id=5]
|
||||
[ext_resource path="res://Menu/Buttons/LevelSelectIconButton.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://Menu/Pause.gd" type="Script" id=7]
|
||||
[ext_resource path="res://Menu/Icons/Play/Play1.png" type="Texture" id=8]
|
||||
[ext_resource path="res://Menu/Icons/Play/Play3.png" type="Texture" id=9]
|
||||
[ext_resource path="res://Menu/Buttons/AudioSliders/SFXVolume2.png" type="Texture" id=10]
|
||||
[ext_resource path="res://Menu/Buttons/AudioSliders/SFXVolume1.png" type="Texture" id=11]
|
||||
[ext_resource path="res://Menu/Buttons/AudioSliders/VolumeSlider.tscn" type="PackedScene" id=12]
|
||||
[ext_resource path="res://Menu/Buttons/AudioSliders/MusicVolume1.png" type="Texture" id=13]
|
||||
[ext_resource path="res://Menu/Buttons/AudioSliders/MusicVolume2.png" type="Texture" id=14]
|
||||
[ext_resource path="res://Menu/Theme.tres" type="Theme" id=15]
|
||||
[ext_resource path="res://Menu/Buttons/Fullscreen/FullscreenButton.tscn" type="PackedScene" id=16]
|
||||
|
||||
[node name="Pause" type="CanvasLayer"]
|
||||
pause_mode = 2
|
||||
|
||||
[node name="Pause" type="CenterContainer" parent="."]
|
||||
visible = false
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
theme = ExtResource( 15 )
|
||||
script = ExtResource( 7 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="Pause"]
|
||||
margin_left = 190.0
|
||||
margin_top = 106.0
|
||||
margin_right = 194.0
|
||||
margin_bottom = 110.0
|
||||
theme = ExtResource( 15 )
|
||||
|
||||
[node name="HBoxContainer" type="VBoxContainer" parent="Pause/PanelContainer"]
|
||||
margin_left = 2.0
|
||||
margin_top = 2.0
|
||||
margin_right = 142.0
|
||||
margin_bottom = 106.0
|
||||
|
||||
[node name="VBoxContainer" type="HBoxContainer" parent="Pause/PanelContainer/HBoxContainer"]
|
||||
margin_right = 140.0
|
||||
margin_bottom = 32.0
|
||||
|
||||
[node name="FullscreenButton" parent="Pause/PanelContainer/HBoxContainer/VBoxContainer" instance=ExtResource( 16 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 32.0
|
||||
margin_bottom = 32.0
|
||||
|
||||
[node name="LevelSelectIconButton" parent="Pause/PanelContainer/HBoxContainer/VBoxContainer" instance=ExtResource( 6 )]
|
||||
margin_left = 36.0
|
||||
margin_right = 68.0
|
||||
margin_bottom = 32.0
|
||||
texture_normal = ExtResource( 3 )
|
||||
texture_pressed = ExtResource( 5 )
|
||||
texture_hover = ExtResource( 4 )
|
||||
|
||||
[node name="RestartButton" parent="Pause/PanelContainer/HBoxContainer/VBoxContainer" instance=ExtResource( 1 )]
|
||||
margin_left = 72.0
|
||||
margin_right = 104.0
|
||||
margin_bottom = 32.0
|
||||
|
||||
[node name="Resume" type="TextureButton" parent="Pause/PanelContainer/HBoxContainer/VBoxContainer"]
|
||||
margin_left = 108.0
|
||||
margin_right = 140.0
|
||||
margin_bottom = 32.0
|
||||
texture_normal = ExtResource( 8 )
|
||||
texture_pressed = ExtResource( 9 )
|
||||
texture_hover = ExtResource( 2 )
|
||||
|
||||
[node name="SFX Volume" parent="Pause/PanelContainer/HBoxContainer" instance=ExtResource( 12 )]
|
||||
margin_top = 36.0
|
||||
margin_right = 140.0
|
||||
margin_bottom = 68.0
|
||||
custom_icons/grabber_highlight = ExtResource( 10 )
|
||||
custom_icons/grabber = ExtResource( 11 )
|
||||
bus_channel = "SFX"
|
||||
|
||||
[node name="Music Volume" parent="Pause/PanelContainer/HBoxContainer" instance=ExtResource( 12 )]
|
||||
margin_top = 72.0
|
||||
margin_right = 140.0
|
||||
margin_bottom = 104.0
|
||||
custom_icons/grabber_highlight = ExtResource( 14 )
|
||||
custom_icons/grabber = ExtResource( 13 )
|
||||
bus_channel = "Music"
|
||||
|
||||
[connection signal="pressed" from="Pause/PanelContainer/HBoxContainer/VBoxContainer/LevelSelectIconButton" to="Pause" method="_on_pause_button_pressed"]
|
||||
[connection signal="pressed" from="Pause/PanelContainer/HBoxContainer/VBoxContainer/RestartButton" to="Pause" method="_on_pause_button_pressed"]
|
||||
[connection signal="pressed" from="Pause/PanelContainer/HBoxContainer/VBoxContainer/Resume" to="Pause" method="_on_pause_button_pressed"]
|
107
Menu/Theme.tres
107
Menu/Theme.tres
|
@ -1,4 +1,4 @@
|
|||
[gd_resource type="Theme" load_steps=22 format=2]
|
||||
[gd_resource type="Theme" load_steps=26 format=2]
|
||||
|
||||
[ext_resource path="res://Font/Yoster-island/Yoster16.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://Font/Yoster-island/Yoster.ttf" type="DynamicFontData" id=2]
|
||||
|
@ -60,12 +60,40 @@ border_width_right = 2
|
|||
border_width_bottom = 2
|
||||
border_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=7]
|
||||
[sub_resource type="StyleBoxFlat" id=7]
|
||||
bg_color = Color( 0.847059, 0.74902, 0.847059, 1 )
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=8]
|
||||
bg_color = Color( 0.588235, 0.984314, 0.780392, 1 )
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=9]
|
||||
bg_color = Color( 0.847059, 0.74902, 0.847059, 1 )
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
expand_margin_top = 14.0
|
||||
expand_margin_bottom = 14.0
|
||||
|
||||
[sub_resource type="DynamicFont" id=10]
|
||||
size = 18
|
||||
outline_color = Color( 0.847059, 0.74902, 0.847059, 1 )
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=8]
|
||||
[sub_resource type="StyleBoxFlat" id=11]
|
||||
bg_color = Color( 0.847059, 0.74902, 0.847059, 1 )
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
|
@ -73,14 +101,31 @@ border_width_right = 1
|
|||
border_width_bottom = 1
|
||||
border_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=9]
|
||||
[sub_resource type="StyleBoxFlat" id=23]
|
||||
content_margin_left = 2.0
|
||||
content_margin_right = 2.0
|
||||
content_margin_top = 2.0
|
||||
content_margin_bottom = 2.0
|
||||
bg_color = Color( 0.847059, 0.74902, 0.847059, 1 )
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
corner_detail = 1
|
||||
expand_margin_left = 2.0
|
||||
expand_margin_right = 2.0
|
||||
expand_margin_top = 2.0
|
||||
expand_margin_bottom = 2.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=12]
|
||||
content_margin_left = 2.0
|
||||
content_margin_right = 2.0
|
||||
content_margin_top = 2.0
|
||||
content_margin_bottom = 2.0
|
||||
bg_color = Color( 0.847059, 0.74902, 0.847059, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=10]
|
||||
[sub_resource type="StyleBoxFlat" id=13]
|
||||
content_margin_left = 4.0
|
||||
content_margin_right = 4.0
|
||||
content_margin_top = 4.0
|
||||
|
@ -93,7 +138,7 @@ border_width_bottom = 2
|
|||
border_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=11]
|
||||
[sub_resource type="StyleBoxFlat" id=14]
|
||||
content_margin_left = 4.0
|
||||
content_margin_right = 4.0
|
||||
content_margin_top = 4.0
|
||||
|
@ -105,7 +150,7 @@ border_width_right = 1
|
|||
border_width_bottom = 1
|
||||
border_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=12]
|
||||
[sub_resource type="StyleBoxFlat" id=15]
|
||||
content_margin_left = 4.0
|
||||
content_margin_right = 4.0
|
||||
content_margin_top = 4.0
|
||||
|
@ -118,15 +163,15 @@ border_width_bottom = 1
|
|||
border_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=13]
|
||||
[sub_resource type="StyleBoxFlat" id=16]
|
||||
bg_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=14]
|
||||
[sub_resource type="StyleBoxFlat" id=17]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=15]
|
||||
[sub_resource type="StyleBoxFlat" id=18]
|
||||
bg_color = Color( 0.847059, 0.74902, 0.847059, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=16]
|
||||
[sub_resource type="StyleBoxFlat" id=19]
|
||||
bg_color = Color( 0.847059, 0.74902, 0.847059, 1 )
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
|
@ -134,7 +179,7 @@ border_width_right = 2
|
|||
border_width_bottom = 2
|
||||
border_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=17]
|
||||
[sub_resource type="StyleBoxFlat" id=20]
|
||||
bg_color = Color( 1, 0.701961, 0.796078, 1 )
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
|
@ -142,7 +187,7 @@ border_width_right = 2
|
|||
border_width_bottom = 2
|
||||
border_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=18]
|
||||
[sub_resource type="StyleBoxFlat" id=21]
|
||||
bg_color = Color( 0.588235, 0.984314, 0.780392, 1 )
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
|
@ -150,7 +195,7 @@ border_width_right = 2
|
|||
border_width_bottom = 2
|
||||
border_color = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=19]
|
||||
[sub_resource type="StyleBoxFlat" id=22]
|
||||
content_margin_right = 16.0
|
||||
bg_color = Color( 0.847059, 0.74902, 0.847059, 1 )
|
||||
border_width_left = 4
|
||||
|
@ -300,9 +345,9 @@ HSlider/icons/grabber = null
|
|||
HSlider/icons/grabber_disabled = null
|
||||
HSlider/icons/grabber_highlight = null
|
||||
HSlider/icons/tick = null
|
||||
HSlider/styles/grabber_area = null
|
||||
HSlider/styles/grabber_area_highlight = null
|
||||
HSlider/styles/slider = null
|
||||
HSlider/styles/grabber_area = SubResource( 7 )
|
||||
HSlider/styles/grabber_area_highlight = SubResource( 8 )
|
||||
HSlider/styles/slider = SubResource( 9 )
|
||||
HSplitContainer/constants/autohide = 1
|
||||
HSplitContainer/constants/separation = 12
|
||||
HSplitContainer/icons/grabber = null
|
||||
|
@ -329,7 +374,7 @@ Label/constants/line_spacing = 3
|
|||
Label/constants/shadow_as_outline = 0
|
||||
Label/constants/shadow_offset_x = 1
|
||||
Label/constants/shadow_offset_y = 1
|
||||
Label/fonts/font = SubResource( 7 )
|
||||
Label/fonts/font = SubResource( 10 )
|
||||
Label/styles/normal = null
|
||||
LineEdit/colors/clear_button_color = Color( 0, 0, 0, 1 )
|
||||
LineEdit/colors/clear_button_color_pressed = Color( 0, 0, 0, 1 )
|
||||
|
@ -378,8 +423,8 @@ OptionButton/styles/focus = null
|
|||
OptionButton/styles/hover = null
|
||||
OptionButton/styles/normal = null
|
||||
OptionButton/styles/pressed = null
|
||||
Panel/styles/panel = SubResource( 8 )
|
||||
PanelContainer/styles/panel = null
|
||||
Panel/styles/panel = SubResource( 11 )
|
||||
PanelContainer/styles/panel = SubResource( 23 )
|
||||
PopupDialog/styles/panel = null
|
||||
PopupMenu/colors/font_color = Color( 0, 0, 0, 1 )
|
||||
PopupMenu/colors/font_color_accel = Color( 0, 0, 0, 1 )
|
||||
|
@ -423,7 +468,7 @@ RichTextLabel/fonts/mono_font = null
|
|||
RichTextLabel/fonts/normal_font = null
|
||||
RichTextLabel/styles/focus = null
|
||||
RichTextLabel/styles/normal = null
|
||||
ScrollContainer/styles/bg = SubResource( 9 )
|
||||
ScrollContainer/styles/bg = SubResource( 12 )
|
||||
SpinBox/icons/updown = null
|
||||
TabContainer/colors/font_color_bg = Color( 0, 0, 0, 1 )
|
||||
TabContainer/colors/font_color_disabled = Color( 0, 0, 0, 1 )
|
||||
|
@ -440,10 +485,10 @@ TabContainer/icons/increment = null
|
|||
TabContainer/icons/increment_highlight = null
|
||||
TabContainer/icons/menu = null
|
||||
TabContainer/icons/menu_highlight = null
|
||||
TabContainer/styles/panel = SubResource( 10 )
|
||||
TabContainer/styles/tab_bg = SubResource( 11 )
|
||||
TabContainer/styles/panel = SubResource( 13 )
|
||||
TabContainer/styles/tab_bg = SubResource( 14 )
|
||||
TabContainer/styles/tab_disabled = null
|
||||
TabContainer/styles/tab_fg = SubResource( 12 )
|
||||
TabContainer/styles/tab_fg = SubResource( 15 )
|
||||
Tabs/colors/font_color_bg = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
Tabs/colors/font_color_disabled = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
Tabs/colors/font_color_fg = Color( 0.454902, 0.337255, 0.607843, 1 )
|
||||
|
@ -457,10 +502,10 @@ Tabs/icons/decrement = null
|
|||
Tabs/icons/decrement_highlight = null
|
||||
Tabs/icons/increment = null
|
||||
Tabs/icons/increment_highlight = null
|
||||
Tabs/styles/button = SubResource( 13 )
|
||||
Tabs/styles/button = SubResource( 16 )
|
||||
Tabs/styles/button_pressed = null
|
||||
Tabs/styles/panel = SubResource( 14 )
|
||||
Tabs/styles/tab_bg = SubResource( 15 )
|
||||
Tabs/styles/panel = SubResource( 17 )
|
||||
Tabs/styles/tab_bg = SubResource( 18 )
|
||||
Tabs/styles/tab_disabled = null
|
||||
Tabs/styles/tab_fg = null
|
||||
TextEdit/colors/background_color = Color( 0, 0, 0, 1 )
|
||||
|
@ -560,10 +605,10 @@ VScrollBar/icons/decrement = null
|
|||
VScrollBar/icons/decrement_highlight = null
|
||||
VScrollBar/icons/increment = null
|
||||
VScrollBar/icons/increment_highlight = null
|
||||
VScrollBar/styles/grabber = SubResource( 16 )
|
||||
VScrollBar/styles/grabber_highlight = SubResource( 17 )
|
||||
VScrollBar/styles/grabber_pressed = SubResource( 18 )
|
||||
VScrollBar/styles/scroll = SubResource( 19 )
|
||||
VScrollBar/styles/grabber = SubResource( 19 )
|
||||
VScrollBar/styles/grabber_highlight = SubResource( 20 )
|
||||
VScrollBar/styles/grabber_pressed = SubResource( 21 )
|
||||
VScrollBar/styles/scroll = SubResource( 22 )
|
||||
VScrollBar/styles/scroll_focus = null
|
||||
VSeparator/constants/separation = 4
|
||||
VSeparator/styles/separator = null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue