mirror of
https://git.kittycat.homes/BatHeartTiger/untitled-plant-game.git
synced 2024-08-15 03:16:27 +00:00
volume slider
This commit is contained in:
parent
7ab759a777
commit
cf3e10a880
25 changed files with 191 additions and 10 deletions
|
@ -1,19 +1,42 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=11 format=2]
|
||||
|
||||
[ext_resource path="res://World/Plant.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://World/FullscreenButton.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Aseprite/fullscreen.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Aseprite/fullscreen_hover.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Menu/Theme.tres" type="Theme" id=5]
|
||||
[ext_resource path="res://Menu/Volume.gd" type="Script" id=6]
|
||||
[ext_resource path="res://Aseprite/music.png" type="Texture" id=7]
|
||||
[ext_resource path="res://Aseprite/music_hover.png" type="Texture" id=8]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 0.14902, 0.0431373, 0.129412, 1 )
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=2]
|
||||
bg_color = Color( 0.94902, 0.988235, 0.878431, 1 )
|
||||
expand_margin_left = 2.0
|
||||
expand_margin_right = 2.0
|
||||
|
||||
[node name="Main" type="Node2D"]
|
||||
|
||||
[node name="Plant" parent="." instance=ExtResource( 1 )]
|
||||
|
||||
[node name="FullscreenButton" type="TextureButton" parent="."]
|
||||
margin_left = 238.0
|
||||
margin_top = 126.0
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
margin_left = 236.0
|
||||
margin_top = 2.0
|
||||
margin_right = 254.0
|
||||
margin_bottom = 142.0
|
||||
theme = ExtResource( 5 )
|
||||
custom_styles/panel = SubResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="FullscreenButton" type="TextureButton" parent="Panel"]
|
||||
margin_left = 1.0
|
||||
margin_top = 123.0
|
||||
margin_right = 17.0
|
||||
margin_bottom = 139.0
|
||||
texture_normal = ExtResource( 3 )
|
||||
texture_hover = ExtResource( 4 )
|
||||
script = ExtResource( 2 )
|
||||
|
@ -21,4 +44,34 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[connection signal="pressed" from="FullscreenButton" to="FullscreenButton" method="_on_FullscreenButton_pressed"]
|
||||
[node name="MusicVolume" type="VSlider" parent="Panel"]
|
||||
margin_left = 1.0
|
||||
margin_top = 1.0
|
||||
margin_right = 17.0
|
||||
margin_bottom = 120.0
|
||||
custom_icons/tick = ExtResource( 7 )
|
||||
custom_icons/grabber_disabled = ExtResource( 7 )
|
||||
custom_icons/grabber_highlight = ExtResource( 8 )
|
||||
custom_icons/grabber = ExtResource( 7 )
|
||||
custom_styles/slider = SubResource( 2 )
|
||||
max_value = 1.0
|
||||
step = 0.1
|
||||
script = ExtResource( 6 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
bus_channel = "Music"
|
||||
|
||||
[node name="Panel2" type="Panel" parent="."]
|
||||
margin_left = 130.0
|
||||
margin_top = 2.0
|
||||
margin_right = 234.0
|
||||
margin_bottom = 142.0
|
||||
theme = ExtResource( 5 )
|
||||
custom_styles/panel = SubResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[connection signal="pressed" from="Panel/FullscreenButton" to="Panel/FullscreenButton" method="_on_FullscreenButton_pressed"]
|
||||
[connection signal="value_changed" from="Panel/MusicVolume" to="Panel/MusicVolume" method="_on_MusicVolume_value_changed"]
|
||||
|
|
|
@ -5,7 +5,7 @@ var pixels_x = []
|
|||
var active = []
|
||||
var rng
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
func _process(_delta):
|
||||
# step()
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue