Some shortcuts, cancellable shovel and pause fix
This commit is contained in:
parent
6e84edafea
commit
50887a3e19
8 changed files with 99 additions and 53 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=16 format=3 uid="uid://cfnmspei3k4p7"]
|
||||
[gd_scene load_steps=21 format=3 uid="uid://cfnmspei3k4p7"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ky35veswaytr" path="res://scenes/gui/sun_counter.tscn" id="1_le3od"]
|
||||
[ext_resource type="Theme" uid="uid://b8l285cjcgeyi" path="res://resources/themes/GameStyle.tres" id="1_xf6ra"]
|
||||
|
|
@ -10,7 +10,6 @@
|
|||
[ext_resource type="PackedScene" uid="uid://b4lx8adw6rbqs" path="res://scenes/particles/dirt_explosion.tscn" id="6_5jtun"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="7_5kkbf"]
|
||||
[ext_resource type="AudioStream" uid="uid://dfbg6dxg4actb" path="res://assets/audio/sfx/shovel.mp3" id="8_xq48m"]
|
||||
[ext_resource type="AudioStream" uid="uid://ckja8ym50y0d4" path="res://assets/audio/sfx/pause.mp3" id="11_cti1a"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_ps2iw"]
|
||||
texture = ExtResource("2_eg3hk")
|
||||
|
|
@ -20,6 +19,27 @@ texture_margin_right = 4.0
|
|||
texture_margin_bottom = 4.0
|
||||
axis_stretch_horizontal = 1
|
||||
|
||||
[sub_resource type="InputEventAction" id="InputEventAction_xq48m"]
|
||||
action = &"short_shovel"
|
||||
pressed = true
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_cti1a"]
|
||||
events = [SubResource("InputEventAction_xq48m")]
|
||||
|
||||
[sub_resource type="InputEventAction" id="InputEventAction_5kkbf"]
|
||||
action = &"short_ff"
|
||||
pressed = true
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_xq48m"]
|
||||
events = [SubResource("InputEventAction_5kkbf")]
|
||||
|
||||
[sub_resource type="InputEventAction" id="InputEventAction_cti1a"]
|
||||
action = &"short_pause"
|
||||
pressed = true
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_s07y0"]
|
||||
events = [SubResource("InputEventAction_cti1a")]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_c8fnk"]
|
||||
length = 0.001
|
||||
tracks/0/type = "bezier"
|
||||
|
|
@ -116,6 +136,7 @@ size_flags_horizontal = 3
|
|||
layout_mode = 2
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 4
|
||||
shortcut = SubResource("Shortcut_cti1a")
|
||||
particles = ExtResource("6_5jtun")
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="MarginContainer/Control/Hotbar/ShovelButton"]
|
||||
|
|
@ -126,6 +147,7 @@ metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
|||
|
||||
[node name="FastForwardButton" parent="MarginContainer/Control/Hotbar" node_paths=PackedStringArray("flashAnimator") instance=ExtResource("4_66uy4")]
|
||||
layout_mode = 2
|
||||
shortcut = SubResource("Shortcut_xq48m")
|
||||
flashAnimator = NodePath("../../../../FastForwardEffect/AnimationPlayer")
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="MarginContainer/Control/Hotbar/FastForwardButton"]
|
||||
|
|
@ -136,12 +158,7 @@ metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
|||
[node name="PauseButton" parent="MarginContainer/Control/Hotbar" instance=ExtResource("5_jyq78")]
|
||||
process_mode = 3
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="MarginContainer/Control/Hotbar/PauseButton"]
|
||||
script = ExtResource("7_5kkbf")
|
||||
audioStream = ExtResource("11_cti1a")
|
||||
channel = "pause"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
shortcut = SubResource("Shortcut_s07y0")
|
||||
|
||||
[node name="FastForwardEffect" type="ColorRect" parent="."]
|
||||
z_index = 1
|
||||
|
|
@ -161,4 +178,3 @@ libraries = {
|
|||
}
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/Control/Hotbar/ShovelButton" to="MarginContainer/Control/Hotbar/ShovelButton/ChannelPlayer" method="Play"]
|
||||
[connection signal="pressed" from="MarginContainer/Control/Hotbar/PauseButton" to="MarginContainer/Control/Hotbar/PauseButton/ChannelPlayer" method="Play"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue