65 lines
2.5 KiB
Plaintext
65 lines
2.5 KiB
Plaintext
|
|
[gd_scene load_steps=5 format=3 uid="uid://btmlxxbucfqa7"]
|
||
|
|
|
||
|
|
[ext_resource type="Texture2D" uid="uid://615hvpuiacvm" path="res://addons/input_prompts/icons/xbox/X.png" id="1_uowr1"]
|
||
|
|
[ext_resource type="Script" uid="uid://bbs1u7ojno7xo" path="res://addons/input_prompts/action_prompt/action_prompt.gd" id="2_xtx06"]
|
||
|
|
|
||
|
|
[sub_resource type="InputEventKey" id="InputEventKey_uowr1"]
|
||
|
|
device = -1
|
||
|
|
physical_keycode = 88
|
||
|
|
unicode = 120
|
||
|
|
|
||
|
|
[sub_resource type="InputEventJoypadButton" id="InputEventJoypadButton_xtx06"]
|
||
|
|
device = -1
|
||
|
|
button_index = 2
|
||
|
|
pressed = true
|
||
|
|
|
||
|
|
[node name="Prompter" type="MarginContainer"]
|
||
|
|
anchors_preset = 15
|
||
|
|
anchor_right = 1.0
|
||
|
|
anchor_bottom = 1.0
|
||
|
|
grow_horizontal = 2
|
||
|
|
grow_vertical = 2
|
||
|
|
theme_override_constants/margin_left = 42
|
||
|
|
theme_override_constants/margin_top = 42
|
||
|
|
theme_override_constants/margin_right = 42
|
||
|
|
theme_override_constants/margin_bottom = 42
|
||
|
|
|
||
|
|
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="MarginContainer" type="MarginContainer" parent="CenterContainer"]
|
||
|
|
custom_minimum_size = Vector2(500, 500)
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="VPrompt" type="VBoxContainer" parent="CenterContainer/MarginContainer"]
|
||
|
|
custom_minimum_size = Vector2(480, 80)
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 4
|
||
|
|
size_flags_vertical = 8
|
||
|
|
|
||
|
|
[node name="CenterContainer" type="CenterContainer" parent="CenterContainer/MarginContainer/VPrompt"]
|
||
|
|
custom_minimum_size = Vector2(32, 32)
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="ActionPrompt" type="TextureRect" parent="CenterContainer/MarginContainer/VPrompt/CenterContainer"]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
custom_minimum_size = Vector2(48, 48)
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_vertical = 3
|
||
|
|
texture = ExtResource("1_uowr1")
|
||
|
|
stretch_mode = 5
|
||
|
|
script = ExtResource("2_xtx06")
|
||
|
|
action = "scene_skip"
|
||
|
|
icon = 0
|
||
|
|
events = Array[InputEvent]([null, SubResource("InputEventKey_uowr1"), SubResource("InputEventJoypadButton_xtx06")])
|
||
|
|
|
||
|
|
[node name="SkipButton" type="Button" parent="CenterContainer/MarginContainer/VPrompt"]
|
||
|
|
unique_name_in_owner = true
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_vertical = 3
|
||
|
|
text = "reveal full text (hold)"
|
||
|
|
|
||
|
|
[connection signal="button_down" from="CenterContainer/MarginContainer/VPrompt/SkipButton" to="CenterContainer/MarginContainer/VPrompt" method="_on_skip_button_button_down"]
|
||
|
|
[connection signal="button_up" from="CenterContainer/MarginContainer/VPrompt/SkipButton" to="CenterContainer/MarginContainer/VPrompt" method="_on_skip_button_button_up"]
|
||
|
|
[connection signal="toggled" from="CenterContainer/MarginContainer/VPrompt/SkipButton" to="CenterContainer/MarginContainer/VPrompt" method="_on_skip_button_toggled"]
|