adding input prompt

This commit is contained in:
betalars 2025-06-03 02:40:03 +02:00
parent 2966952d32
commit 40ae307c66
1 changed files with 33 additions and 6 deletions

View File

@ -1,8 +1,20 @@
[gd_scene load_steps=4 format=3 uid="uid://g2a27jwdapai"] [gd_scene load_steps=8 format=3 uid="uid://g2a27jwdapai"]
[ext_resource type="Script" uid="uid://bbia2hcdwctyn" path="res://logic-scenes/card_burner/card_burner.gd" id="1_copuj"] [ext_resource type="Script" uid="uid://bbia2hcdwctyn" path="res://logic-scenes/card_burner/card_burner.gd" id="1_copuj"]
[ext_resource type="Script" uid="uid://2loic2eeec5b" path="res://logic-scenes/board/card.gd" id="2_l4ogr"] [ext_resource type="Script" uid="uid://2loic2eeec5b" path="res://logic-scenes/board/card.gd" id="2_l4ogr"]
[ext_resource type="Texture2D" uid="uid://615hvpuiacvm" path="res://addons/input_prompts/icons/xbox/X.png" id="3_ckmi5"]
[ext_resource type="PackedScene" uid="uid://uc6urpgv7n1y" path="res://logic-scenes/card_burner/cursor_candle.tscn" id="3_l4ogr"] [ext_resource type="PackedScene" uid="uid://uc6urpgv7n1y" path="res://logic-scenes/card_burner/cursor_candle.tscn" id="3_l4ogr"]
[ext_resource type="Script" uid="uid://bbs1u7ojno7xo" path="res://addons/input_prompts/action_prompt/action_prompt.gd" id="4_x6cxt"]
[sub_resource type="InputEventKey" id="InputEventKey_23lqb"]
device = -1
physical_keycode = 88
unicode = 120
[sub_resource type="InputEventJoypadButton" id="InputEventJoypadButton_57mhv"]
device = -1
button_index = 2
pressed = true
[node name="CardBurner" type="CenterContainer"] [node name="CardBurner" type="CenterContainer"]
anchors_preset = 15 anchors_preset = 15
@ -93,16 +105,31 @@ text = "card"
picked_random = null picked_random = null
metadata/_custom_type_script = "uid://2loic2eeec5b" metadata/_custom_type_script = "uid://2loic2eeec5b"
[node name="Button" type="Button" parent="Control"] [node name="HSplitContainer" type="HSplitContainer" parent="Control"]
layout_mode = 1 layout_mode = 1
anchors_preset = 5 anchors_preset = 5
anchor_left = 0.5 anchor_left = 0.5
anchor_right = 0.5 anchor_right = 0.5
offset_left = -127.0 offset_left = -156.0
offset_top = 220.0 offset_top = 197.0
offset_right = 127.0 offset_right = 157.0
offset_bottom = 267.0 offset_bottom = 244.0
grow_horizontal = 2 grow_horizontal = 2
[node name="ActionPrompt" type="TextureRect" parent="Control/HSplitContainer"]
layout_mode = 2
size_flags_horizontal = 3
texture = ExtResource("3_ckmi5")
expand_mode = 2
stretch_mode = 4
script = ExtResource("4_x6cxt")
action = "skip"
icon = 0
events = Array[InputEvent]([null, SubResource("InputEventKey_23lqb"), SubResource("InputEventJoypadButton_57mhv")])
metadata/_custom_type_script = "uid://bbs1u7ojno7xo"
[node name="Button" type="Button" parent="Control/HSplitContainer"]
layout_mode = 2
text = "Keep all thoughts" text = "Keep all thoughts"
[node name="CursorCandle" parent="." instance=ExtResource("3_l4ogr")] [node name="CursorCandle" parent="." instance=ExtResource("3_l4ogr")]