[gd_scene load_steps=13 format=3 uid="uid://dvwuhobhka78d"] [ext_resource type="Script" uid="uid://dw07pldd135f1" path="res://logic-scenes/misc/skip_control.gd" id="1_s6riu"] [ext_resource type="Script" uid="uid://bbs1u7ojno7xo" 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_7em4l"] device = -1 physical_keycode = 88 unicode = 120 [sub_resource type="InputEventJoypadButton" id="InputEventJoypadButton_hb4jw"] device = -1 button_index = 2 pressed = true [sub_resource type="Animation" id="Animation_24cc4"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("SkipButton:self_modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Color(1, 1, 1, 0)] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("SkipButton:modulate") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Color(1, 1, 1, 1)] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("SkipButton/ActionPrompt:modulate") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Color(1, 1, 1, 0)] } tracks/3/type = "value" tracks/3/imported = false tracks/3/enabled = true tracks/3/path = NodePath("SkipButton/ActionPrompt:scale") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector2(1, 1)] } [sub_resource type="Animation" id="Animation_7t2h7"] resource_name = "replace_text" tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("SkipButton:self_modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Color(1, 1, 1, 1)] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("SkipButton:modulate") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0, 0.733333, 1), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1)] } tracks/2/type = "method" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath(".") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0.733333), "transitions": PackedFloat32Array(1), "values": [{ "args": [], "method": &"transition_text" }] } tracks/3/type = "value" tracks/3/imported = false tracks/3/enabled = true tracks/3/path = NodePath("SkipButton/ActionPrompt:modulate") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Color(1, 1, 1, 1)] } [sub_resource type="Animation" id="Animation_wpc0s"] resource_name = "reveal_skip" length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("SkipButton:self_modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.466667), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("SkipButton/ActionPrompt:modulate") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0, 0.133333), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)] } [sub_resource type="Animation" id="Animation_5y7a2"] resource_name = "skip_pressed" length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("SkipButton:self_modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0.2, 0.5), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("SkipButton/ActionPrompt:modulate") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0.333333, 0.5), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("SkipButton/ActionPrompt:scale") tracks/2/interp = 2 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0, 0.0666667, 0.433333), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Vector2(0.8, 0.8), Vector2(1.1, 1.1), Vector2(1, 1)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_f8gbl"] _data = { &"RESET": SubResource("Animation_24cc4"), &"replace_text": SubResource("Animation_7t2h7"), &"reveal_skip": SubResource("Animation_wpc0s"), &"skip_pressed": SubResource("Animation_5y7a2") } [node name="SkipControl" type="Control"] layout_mode = 3 anchors_preset = 0 offset_left = 750.0 offset_top = 260.0 offset_right = 750.0 offset_bottom = 260.0 size_flags_horizontal = 4 size_flags_vertical = 8 script = ExtResource("1_s6riu") [node name="SkipButton" type="Button" parent="."] unique_name_in_owner = true self_modulate = Color(1, 1, 1, 0) layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -108.0 offset_top = -21.5 offset_right = 108.0 offset_bottom = 21.5 grow_horizontal = 2 grow_vertical = 2 text = "skip reading (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 grow_horizontal = 2 grow_vertical = 2 theme_override_styles/background = SubResource("StyleBoxEmpty_pwtn0") theme_override_styles/fill = SubResource("StyleBoxFlat_4rt17") max_value = 1.0 show_percentage = false [node name="ActionPrompt" type="TextureRect" parent="SkipButton"] modulate = Color(1, 1, 1, 0) layout_mode = 1 anchors_preset = 4 anchor_top = 0.5 anchor_bottom = 0.5 offset_left = -57.0 offset_top = -25.0 offset_right = -7.0 offset_bottom = 25.0 grow_vertical = 2 pivot_offset = Vector2(25, 25) texture = ExtResource("2_pnwbx") expand_mode = 2 stretch_mode = 5 script = ExtResource("2_ev8gx") action = "skip" icon = 0 events = Array[InputEvent]([null, SubResource("InputEventKey_7em4l"), SubResource("InputEventJoypadButton_hb4jw")]) [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { &"": SubResource("AnimationLibrary_f8gbl") } [connection signal="toggled" from="SkipButton" to="." method="_on_skip_button_toggled"]