Files
MovementTests/guide_examples/virtual_cursor/virtual_cursor.tscn
Minimata af1f6da98d
Some checks failed
Create tag and build when new code gets to main / BumpTag (push) Successful in 31s
Create tag and build when new code gets to main / Test (push) Has been cancelled
Create tag and build when new code gets to main / Export (push) Has been cancelled
updating project files
2026-01-28 09:50:10 +01:00

82 lines
3.8 KiB
Plaintext

[gd_scene format=3 uid="uid://b1f0bnaomla7u"]
[ext_resource type="Script" uid="uid://dvv04npvyv3mh" path="res://guide_examples/virtual_cursor/virtual_cursor.gd" id="1_g0bre"]
[ext_resource type="Resource" uid="uid://b4tn11iq7uvr7" path="res://guide_examples/virtual_cursor/mapping_contexts/virtual_cursor.tres" id="2_4xju7"]
[ext_resource type="Texture2D" uid="uid://ntkhw87eedc0" path="res://guide_examples/virtual_cursor/pointer.svg" id="2_mxnae"]
[ext_resource type="Script" uid="uid://cyhgr4oiher4l" path="res://guide_examples/virtual_cursor/pointer.gd" id="3_dw1p5"]
[ext_resource type="PackedScene" uid="uid://ca51sup6v0qr1" path="res://guide_examples/virtual_cursor/pointable/pointable.tscn" id="3_uy61q"]
[ext_resource type="Resource" uid="uid://bcumfh8j6k1ln" path="res://guide_examples/virtual_cursor/mapping_contexts/actions/cursor_2d.tres" id="5_tj3fv"]
[ext_resource type="Resource" uid="uid://cwtdxy3gy7kud" path="res://guide_examples/virtual_cursor/mapping_contexts/actions/click.tres" id="6_1ffq2"]
[ext_resource type="PackedScene" uid="uid://dkr80d2pi0d41" path="res://addons/guide/debugger/guide_debugger.tscn" id="6_hfxka"]
[ext_resource type="Theme" uid="uid://dot0gi1yoqmrl" path="res://guide_examples/shared/ui_theme.tres" id="7_bh7yl"]
[ext_resource type="Script" uid="uid://w8q1xlqw60qh" path="res://guide_examples/shared/instructions_label.gd" id="7_udsq5"]
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="11_vecjl"]
[sub_resource type="CircleShape2D" id="CircleShape2D_ltt1b"]
radius = 32.95
[node name="VirtualCursor" type="Node2D" unique_id=818193633]
script = ExtResource("1_g0bre")
mapping_context = ExtResource("2_4xju7")
[node name="Pointable" parent="." unique_id=216063788 instance=ExtResource("3_uy61q")]
position = Vector2(358, 282)
[node name="Pointable2" parent="." unique_id=1766913580 instance=ExtResource("3_uy61q")]
position = Vector2(915, 209)
[node name="Pointable3" parent="." unique_id=282289145 instance=ExtResource("3_uy61q")]
position = Vector2(1177, 621)
[node name="Pointable4" parent="." unique_id=1683336321 instance=ExtResource("3_uy61q")]
position = Vector2(338, 859)
[node name="Pointable5" parent="." unique_id=1429285039 instance=ExtResource("3_uy61q")]
position = Vector2(1476, 274)
[node name="Pointable6" parent="." unique_id=533513956 instance=ExtResource("3_uy61q")]
position = Vector2(791, 808)
[node name="Pointable7" parent="." unique_id=744515523 instance=ExtResource("3_uy61q")]
position = Vector2(605, 499)
[node name="Pointable8" parent="." unique_id=1201100780 instance=ExtResource("3_uy61q")]
position = Vector2(1515, 845)
[node name="Pointer" type="Area2D" parent="." unique_id=469630007]
position = Vector2(813, 485)
script = ExtResource("3_dw1p5")
cursor_2d = ExtResource("5_tj3fv")
click = ExtResource("6_1ffq2")
[node name="PointerVisual" type="Sprite2D" parent="Pointer" unique_id=45268119]
texture = ExtResource("2_mxnae")
centered = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="Pointer" unique_id=564246588]
shape = SubResource("CircleShape2D_ltt1b")
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1242679442]
[node name="GuideDebugger" parent="CanvasLayer" unique_id=1055016727 instance=ExtResource("6_hfxka")]
theme = ExtResource("7_bh7yl")
[node name="UILayer" type="CanvasLayer" parent="." unique_id=2125451374]
[node name="RichTextLabel" type="RichTextLabel" parent="UILayer" unique_id=2040138710]
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -104.0
offset_top = 56.0
offset_right = -64.0
offset_bottom = 96.0
grow_horizontal = 0
theme = ExtResource("7_bh7yl")
script = ExtResource("7_udsq5")
instructions_text = "This shows how to use a controller stick to control a virtual cursor.
%s to move the the cursor
%s to \"click\""
actions = Array[ExtResource("11_vecjl")]([ExtResource("5_tj3fv"), ExtResource("6_1ffq2")])