More work on pawn select sounds and controls.
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://ck4x56txf676a"]
|
||||
[gd_scene load_steps=21 format=3 uid="uid://ck4x56txf676a"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://grs3nyom325o" path="res://scripts/character_select.gd" id="1_bow2h"]
|
||||
[ext_resource type="Script" uid="uid://blljmwvft1g8m" path="res://scripts/pawn_display.gd" id="2_5wdeo"]
|
||||
[ext_resource type="Texture2D" uid="uid://dri0a20l6kpbj" path="res://visuals/images/icon.svg" id="2_uxcyu"]
|
||||
[ext_resource type="AudioStream" uid="uid://vcatohtmt8bk" path="res://audio/music/16 - Character Select.mp3" id="3_bow2h"]
|
||||
[ext_resource type="Texture2D" uid="uid://lttjm6mhx2nx" path="res://visuals/images/chselector.png" id="3_uxcyu"]
|
||||
[ext_resource type="Script" uid="uid://qwyhu0gexeah" path="res://scripts/cs_trap_display.gd" id="3_w1hxv"]
|
||||
[ext_resource type="Script" uid="uid://cu7ho7656m6hp" path="res://scripts/pawn_selector.gd" id="6_5cdo8"]
|
||||
[ext_resource type="AudioStream" uid="uid://cwmfd8ov3lj1h" path="res://audio/sounds/menu select.wav" id="7_bqp8h"]
|
||||
[ext_resource type="AudioStream" uid="uid://doelc8yt5snc2" path="res://audio/sounds/Keypad A.wav" id="8_5cdo8"]
|
||||
|
||||
[sub_resource type="Shader" id="Shader_fa52j"]
|
||||
code = "shader_type canvas_item;
|
||||
@@ -70,6 +76,62 @@ colors = PackedColorArray(1, 1, 1, 1)
|
||||
gradient = SubResource("Gradient_w1hxv")
|
||||
width = 1
|
||||
|
||||
[sub_resource type="Animation" id="Animation_fa52j"]
|
||||
resource_name = "selecting"
|
||||
length = 0.2667
|
||||
loop_mode = 1
|
||||
step = 0.0168
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.0001, 0.13333334, 0.26666668),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [true, true, false, true]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_5wdeo"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_w1hxv"]
|
||||
resource_name = "selected"
|
||||
step = 0.0168
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_bqp8h"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_5wdeo"),
|
||||
&"selected": SubResource("Animation_w1hxv"),
|
||||
&"selecting": SubResource("Animation_fa52j")
|
||||
}
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@@ -87,14 +149,16 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Panel" type="Panel" parent="Panel"]
|
||||
[node name="P1PawnDisplay" type="Panel" parent="Panel"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
offset_left = 94.0
|
||||
offset_top = 96.0
|
||||
offset_right = 794.0
|
||||
offset_bottom = 796.0
|
||||
script = ExtResource("2_5wdeo")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel/Panel"]
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel/P1PawnDisplay"]
|
||||
material = SubResource("ShaderMaterial_uxcyu")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
@@ -105,14 +169,15 @@ grow_vertical = 2
|
||||
texture = SubResource("GradientTexture1D_fa52j")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Control" type="Control" parent="Panel/Panel"]
|
||||
[node name="Control" type="Control" parent="Panel/P1PawnDisplay"]
|
||||
anchors_preset = 0
|
||||
offset_left = 108.0
|
||||
offset_top = 286.0
|
||||
offset_right = 392.0
|
||||
offset_bottom = 350.0
|
||||
|
||||
[node name="Label" type="Label" parent="Panel/Panel/Control"]
|
||||
[node name="PawnName" type="Label" parent="Panel/P1PawnDisplay/Control"]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(0, 0.3254902, 1, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 37.0
|
||||
@@ -123,7 +188,7 @@ theme_override_font_sizes/font_size = 48
|
||||
text = "NAME GOES HERE"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/Panel/Control"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/P1PawnDisplay/Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
@@ -137,17 +202,20 @@ offset_bottom = 394.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="Panel" type="PanelContainer" parent="Panel/Panel/Control/VBoxContainer"]
|
||||
[node name="Panel" type="PanelContainer" parent="Panel/P1PawnDisplay/Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Panel/Panel/Control/VBoxContainer/Panel"]
|
||||
[node name="TrapContainer" type="HBoxContainer" parent="Panel/P1PawnDisplay/Control/VBoxContainer/Panel"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel/Panel/Control/VBoxContainer/Panel/HBoxContainer"]
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel/P1PawnDisplay/Control/VBoxContainer/Panel/TrapContainer"]
|
||||
custom_minimum_size = Vector2(92, 64)
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
script = ExtResource("3_w1hxv")
|
||||
|
||||
[node name="Label" type="Label" parent="Panel/Panel/Control/VBoxContainer/Panel/HBoxContainer/TextureRect"]
|
||||
[node name="Label" type="Label" parent="Panel/P1PawnDisplay/Control/VBoxContainer/Panel/TrapContainer/TextureRect"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
@@ -161,11 +229,13 @@ grow_vertical = 0
|
||||
text = "##"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="TextureRect2" type="TextureRect" parent="Panel/Panel/Control/VBoxContainer/Panel/HBoxContainer"]
|
||||
[node name="TextureRect2" type="TextureRect" parent="Panel/P1PawnDisplay/Control/VBoxContainer/Panel/TrapContainer"]
|
||||
custom_minimum_size = Vector2(92, 64)
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
script = ExtResource("3_w1hxv")
|
||||
|
||||
[node name="Label" type="Label" parent="Panel/Panel/Control/VBoxContainer/Panel/HBoxContainer/TextureRect2"]
|
||||
[node name="Label" type="Label" parent="Panel/P1PawnDisplay/Control/VBoxContainer/Panel/TrapContainer/TextureRect2"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
@@ -179,11 +249,13 @@ grow_vertical = 0
|
||||
text = "##"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="TextureRect3" type="TextureRect" parent="Panel/Panel/Control/VBoxContainer/Panel/HBoxContainer"]
|
||||
[node name="TextureRect3" type="TextureRect" parent="Panel/P1PawnDisplay/Control/VBoxContainer/Panel/TrapContainer"]
|
||||
custom_minimum_size = Vector2(92, 64)
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
script = ExtResource("3_w1hxv")
|
||||
|
||||
[node name="Label" type="Label" parent="Panel/Panel/Control/VBoxContainer/Panel/HBoxContainer/TextureRect3"]
|
||||
[node name="Label" type="Label" parent="Panel/P1PawnDisplay/Control/VBoxContainer/Panel/TrapContainer/TextureRect3"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
@@ -271,6 +343,7 @@ layout_mode = 2
|
||||
[node name="TextureRect" type="TextureRect" parent="Panel/Panel2/Control/VBoxContainer/Panel/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(92, 64)
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Label" type="Label" parent="Panel/Panel2/Control/VBoxContainer/Panel/HBoxContainer/TextureRect"]
|
||||
layout_mode = 1
|
||||
@@ -289,6 +362,7 @@ horizontal_alignment = 2
|
||||
[node name="TextureRect2" type="TextureRect" parent="Panel/Panel2/Control/VBoxContainer/Panel/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(92, 64)
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Label" type="Label" parent="Panel/Panel2/Control/VBoxContainer/Panel/HBoxContainer/TextureRect2"]
|
||||
layout_mode = 1
|
||||
@@ -307,6 +381,7 @@ horizontal_alignment = 2
|
||||
[node name="TextureRect3" type="TextureRect" parent="Panel/Panel2/Control/VBoxContainer/Panel/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(92, 64)
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Label" type="Label" parent="Panel/Panel2/Control/VBoxContainer/Panel/HBoxContainer/TextureRect3"]
|
||||
layout_mode = 1
|
||||
@@ -660,6 +735,31 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="SelectorStart" type="Control" parent="Panel2"]
|
||||
unique_name_in_owner = true
|
||||
anchors_preset = 0
|
||||
offset_left = 438.0
|
||||
offset_top = 40.0
|
||||
offset_right = 478.0
|
||||
offset_bottom = 80.0
|
||||
|
||||
[node name="Selector" type="TextureRect" parent="Panel2"]
|
||||
unique_name_in_owner = true
|
||||
texture_filter = 1
|
||||
layout_mode = 0
|
||||
offset_left = 438.0
|
||||
offset_top = 40.0
|
||||
offset_right = 608.0
|
||||
offset_bottom = 210.0
|
||||
texture = ExtResource("3_uxcyu")
|
||||
script = ExtResource("6_5cdo8")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="Panel2/Selector"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_bqp8h")
|
||||
}
|
||||
autoplay = "selecting"
|
||||
|
||||
[node name="Panel3" type="Panel" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
@@ -685,4 +785,13 @@ horizontal_alignment = 1
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("3_bow2h")
|
||||
volume_db = -5.0
|
||||
autoplay = true
|
||||
|
||||
[node name="SelectSound" type="AudioStreamPlayer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("7_bqp8h")
|
||||
|
||||
[node name="SwitchSound" type="AudioStreamPlayer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("8_5cdo8")
|
||||
|
||||
Reference in New Issue
Block a user