2025-01-16 16:32:58 +00:00
|
|
|
[gd_scene load_steps=8 format=3 uid="uid://dvwuhobhka78d"]
|
2023-08-01 08:52:08 +00:00
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://logic-scenes/misc/skip_control.gd" id="1_s6riu"]
|
2025-01-16 16:32:58 +00:00
|
|
|
[ext_resource type="Script" path="res://addons/input_prompts/action_prompt/action_prompt.gd" id="2_ev8gx"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://615hvpuiacvm" path="res://addons/input_prompts/icons/xbox/X.png" id="2_pnwbx"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_pwtn0"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_4rt17"]
|
|
|
|
|
bg_color = Color(0.6, 0.6, 0.6, 0)
|
|
|
|
|
border_width_top = 5
|
|
|
|
|
border_width_bottom = 5
|
|
|
|
|
border_color = Color(1, 1, 1, 1)
|
|
|
|
|
border_blend = true
|
|
|
|
|
corner_radius_top_left = 5
|
|
|
|
|
corner_radius_bottom_left = 5
|
|
|
|
|
expand_margin_top = 5.0
|
|
|
|
|
expand_margin_bottom = 5.0
|
|
|
|
|
|
|
|
|
|
[sub_resource type="InputEventKey" id="InputEventKey_krb4k"]
|
|
|
|
|
device = -1
|
|
|
|
|
physical_keycode = 88
|
|
|
|
|
unicode = 120
|
|
|
|
|
|
|
|
|
|
[sub_resource type="InputEventJoypadButton" id="InputEventJoypadButton_3b2du"]
|
|
|
|
|
device = -1
|
|
|
|
|
button_index = 2
|
|
|
|
|
pressed = true
|
2023-08-01 08:52:08 +00:00
|
|
|
|
|
|
|
|
[node name="skip_control" type="Control"]
|
2025-01-16 16:32:58 +00:00
|
|
|
process_mode = 4
|
2023-08-01 08:52:08 +00:00
|
|
|
layout_mode = 3
|
|
|
|
|
anchors_preset = 0
|
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
|
size_flags_vertical = 8
|
|
|
|
|
script = ExtResource("1_s6riu")
|
|
|
|
|
|
2025-01-16 16:32:58 +00:00
|
|
|
[node name="SkipButton" type="Button" parent="."]
|
|
|
|
|
unique_name_in_owner = true
|
|
|
|
|
visible = false
|
2023-08-01 08:52:08 +00:00
|
|
|
layout_mode = 1
|
|
|
|
|
anchors_preset = 8
|
|
|
|
|
anchor_left = 0.5
|
|
|
|
|
anchor_top = 0.5
|
|
|
|
|
anchor_right = 0.5
|
|
|
|
|
anchor_bottom = 0.5
|
2025-01-16 16:32:58 +00:00
|
|
|
offset_left = -108.0
|
|
|
|
|
offset_top = -21.5
|
|
|
|
|
offset_right = 108.0
|
|
|
|
|
offset_bottom = 21.5
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
grow_vertical = 2
|
|
|
|
|
text = "skip to end (hold)"
|
|
|
|
|
|
|
|
|
|
[node name="ProgressBar" type="ProgressBar" parent="SkipButton"]
|
|
|
|
|
unique_name_in_owner = true
|
|
|
|
|
layout_mode = 1
|
|
|
|
|
anchors_preset = 15
|
|
|
|
|
anchor_right = 1.0
|
|
|
|
|
anchor_bottom = 1.0
|
2023-08-01 08:52:08 +00:00
|
|
|
grow_horizontal = 2
|
|
|
|
|
grow_vertical = 2
|
2025-01-16 16:32:58 +00:00
|
|
|
theme_override_styles/background = SubResource("StyleBoxEmpty_pwtn0")
|
|
|
|
|
theme_override_styles/fill = SubResource("StyleBoxFlat_4rt17")
|
2023-08-01 08:52:08 +00:00
|
|
|
max_value = 1.0
|
|
|
|
|
show_percentage = false
|
|
|
|
|
|
2025-01-16 16:32:58 +00:00
|
|
|
[node name="ActionPrompt" type="TextureRect" parent="SkipButton"]
|
2023-08-01 08:52:08 +00:00
|
|
|
layout_mode = 1
|
2025-01-16 16:32:58 +00:00
|
|
|
anchors_preset = 4
|
2023-08-01 08:52:08 +00:00
|
|
|
anchor_top = 0.5
|
|
|
|
|
anchor_bottom = 0.5
|
2025-01-16 16:32:58 +00:00
|
|
|
offset_left = -55.0
|
|
|
|
|
offset_top = -25.0
|
|
|
|
|
offset_right = -5.0
|
|
|
|
|
offset_bottom = 25.0
|
2023-08-01 08:52:08 +00:00
|
|
|
grow_vertical = 2
|
2025-01-16 16:32:58 +00:00
|
|
|
texture = ExtResource("2_pnwbx")
|
|
|
|
|
expand_mode = 2
|
|
|
|
|
stretch_mode = 5
|
|
|
|
|
script = ExtResource("2_ev8gx")
|
|
|
|
|
action = "skip"
|
|
|
|
|
icon = 0
|
|
|
|
|
events = Array[InputEvent]([null, SubResource("InputEventKey_krb4k"), SubResource("InputEventJoypadButton_3b2du")])
|
2023-08-01 08:52:08 +00:00
|
|
|
|
2025-01-16 16:32:58 +00:00
|
|
|
[connection signal="toggled" from="SkipButton" to="." method="_on_skip_button_toggled"]
|