Added introductory touchscreen support for mobile devices.
This commit is contained in:
parent
df13ee42d8
commit
4c512379c5
34 changed files with 697 additions and 1 deletions
53
addons/virtual_joystick/virtual_joystick_scene.tscn
Normal file
53
addons/virtual_joystick/virtual_joystick_scene.tscn
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
[gd_scene format=3 uid="uid://dmr0fcamx7t56"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://chxcpeg4d1phj" path="res://addons/virtual_joystick/virtual_joystick.gd" id="1_8x4dy"]
|
||||
[ext_resource type="Texture2D" uid="uid://bm30au8mjfc2f" path="res://addons/virtual_joystick/textures/joystick_base_outline.png" id="2_jhjs2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dt13r06u87fib" path="res://addons/virtual_joystick/textures/joystick_tip_arrows.png" id="3_3etdg"]
|
||||
|
||||
[node name="Virtual Joystick" type="Control" unique_id=2019740770]
|
||||
layout_mode = 3
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -0.99999994
|
||||
offset_top = -104.0
|
||||
offset_right = 299.0
|
||||
offset_bottom = 196.0
|
||||
grow_vertical = 0
|
||||
scale = Vector2(0.35, 0.35)
|
||||
script = ExtResource("1_8x4dy")
|
||||
|
||||
[node name="Base" type="TextureRect" parent="." unique_id=1338665392]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -100.0
|
||||
offset_top = -100.0
|
||||
offset_right = 100.0
|
||||
offset_bottom = 100.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
pivot_offset = Vector2(100, 100)
|
||||
mouse_force_pass_scroll_events = false
|
||||
texture = ExtResource("2_jhjs2")
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="Tip" type="TextureRect" parent="Base" unique_id=1182099131]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -50.0
|
||||
offset_top = -50.0
|
||||
offset_right = 50.0
|
||||
offset_bottom = 50.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
pivot_offset = Vector2(50, 50)
|
||||
texture = ExtResource("3_3etdg")
|
||||
stretch_mode = 5
|
||||
Loading…
Add table
Add a link
Reference in a new issue