Gamepad support
This commit is contained in:
parent
87f841e8e1
commit
ed369cf718
24 changed files with 240 additions and 78 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://bvpt0q4j6nx18"]
|
||||
[gd_scene load_steps=13 format=3 uid="uid://bvpt0q4j6nx18"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dr8a0rx42o3qy" path="res://assets/sprites/gui/ChooseYourSeeds/PlantFrame.tres" id="1_1hnxi"]
|
||||
[ext_resource type="Script" uid="uid://bs1qywtqijyd2" path="res://scenes/gui/almanach.gd" id="1_oy57w"]
|
||||
|
|
@ -12,6 +12,13 @@
|
|||
[sub_resource type="ViewportTexture" id="ViewportTexture_ru62c"]
|
||||
viewport_path = NodePath("plants/Infobox/FrameAndTitle/VboxContainer/Frame/Previewport")
|
||||
|
||||
[sub_resource type="InputEventAction" id="InputEventAction_vvhxq"]
|
||||
action = &"ui_cancel"
|
||||
pressed = true
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_lmmwe"]
|
||||
events = [SubResource("InputEventAction_vvhxq")]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_7yl8g"]
|
||||
viewport_path = NodePath("zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport")
|
||||
|
||||
|
|
@ -81,6 +88,7 @@ texture = SubResource("ViewportTexture_ru62c")
|
|||
[node name="QuitButton" type="Button" parent="plants/Infobox/FrameAndTitle/VboxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
shortcut = SubResource("Shortcut_lmmwe")
|
||||
text = "exit"
|
||||
|
||||
[node name="Label" type="Label" parent="plants/Infobox/FrameAndTitle"]
|
||||
|
|
|
|||
13
scenes/gui/cursor_canvas_layer.tscn
Normal file
13
scenes/gui/cursor_canvas_layer.tscn
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://djfsa0pxqeoq1"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c20dwjohaljdk" path="res://assets/sprites/atlases/cursor/default_arrow.png" id="1_0pqw0"]
|
||||
[ext_resource type="Script" uid="uid://c6ucy48qwaxuc" path="res://scripts/Cursor.cs" id="2_yv0fr"]
|
||||
|
||||
[node name="CursorCanvasLayer" type="CanvasLayer"]
|
||||
process_mode = 3
|
||||
layer = 11
|
||||
follow_viewport_enabled = true
|
||||
|
||||
[node name="Cursor" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_0pqw0")
|
||||
script = ExtResource("2_yv0fr")
|
||||
Loading…
Add table
Add a link
Reference in a new issue