From 40ae307c660bb912a654244ddbe92b1f436d8b67 Mon Sep 17 00:00:00 2001 From: betalars Date: Tue, 3 Jun 2025 02:40:03 +0200 Subject: [PATCH] adding input prompt --- src/logic-scenes/card_burner/card_burner.tscn | 39 ++++++++++++++++--- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/src/logic-scenes/card_burner/card_burner.tscn b/src/logic-scenes/card_burner/card_burner.tscn index 4a28b48..3bb1d47 100644 --- a/src/logic-scenes/card_burner/card_burner.tscn +++ b/src/logic-scenes/card_burner/card_burner.tscn @@ -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://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="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"] anchors_preset = 15 @@ -93,16 +105,31 @@ text = "card" picked_random = null metadata/_custom_type_script = "uid://2loic2eeec5b" -[node name="Button" type="Button" parent="Control"] +[node name="HSplitContainer" type="HSplitContainer" parent="Control"] layout_mode = 1 anchors_preset = 5 anchor_left = 0.5 anchor_right = 0.5 -offset_left = -127.0 -offset_top = 220.0 -offset_right = 127.0 -offset_bottom = 267.0 +offset_left = -156.0 +offset_top = 197.0 +offset_right = 157.0 +offset_bottom = 244.0 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" [node name="CursorCandle" parent="." instance=ExtResource("3_l4ogr")]