summaryrefslogtreecommitdiff
path: root/ui/mobile/mobile_controls.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'ui/mobile/mobile_controls.tscn')
-rw-r--r--ui/mobile/mobile_controls.tscn78
1 files changed, 78 insertions, 0 deletions
diff --git a/ui/mobile/mobile_controls.tscn b/ui/mobile/mobile_controls.tscn
new file mode 100644
index 0000000..333b0ad
--- /dev/null
+++ b/ui/mobile/mobile_controls.tscn
@@ -0,0 +1,78 @@
+[gd_scene load_steps=7 format=3 uid="uid://cvx1vj47uf5k2"]
+
+[ext_resource type="Script" path="res://ui/mobile/mobile_controls.gd" id="1_ts8mv"]
+[ext_resource type="PackedScene" uid="uid://evppekv62x0g" path="res://ui/mobile/button.tscn" id="2_7um2b"]
+[ext_resource type="Texture2D" uid="uid://cywefso7qpdan" path="res://ui/assets/tilemap_white.png" id="2_n84be"]
+
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_e3qjv"]
+bg_color = Color(0.0313726, 0.156863, 0.180392, 1)
+
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hxyr7"]
+bg_color = Color(0.0297164, 0.155372, 0.181691, 1)
+border_width_left = 1
+border_width_top = 2
+border_width_right = 1
+border_width_bottom = 1
+border_color = Color(0, 0, 0, 1)
+border_blend = true
+
+[sub_resource type="AtlasTexture" id="AtlasTexture_kr7mh"]
+atlas = ExtResource("2_n84be")
+region = Rect2(445, 292, 10, 10)
+filter_clip = true
+
+[node name="MobileControls" type="CanvasLayer"]
+script = ExtResource("1_ts8mv")
+
+[node name="Control" type="Panel" parent="."]
+offset_top = 144.0
+offset_right = 160.0
+offset_bottom = 249.0
+theme_override_styles/panel = SubResource("StyleBoxFlat_e3qjv")
+
+[node name="Up" parent="Control" instance=ExtResource("2_7um2b")]
+layout_mode = 0
+offset_bottom = 26.0
+theme_override_styles/panel = SubResource("StyleBoxFlat_hxyr7")
+texture = SubResource("AtlasTexture_kr7mh")
+label = ""
+action = &"ui_up"
+
+[node name="Down" parent="Control" instance=ExtResource("2_7um2b")]
+layout_mode = 0
+offset_left = 160.0
+offset_top = 92.0
+offset_right = 320.0
+offset_bottom = 118.0
+rotation = 3.14159
+texture = SubResource("AtlasTexture_kr7mh")
+label = ""
+action = &"ui_down"
+
+[node name="Left" parent="Control" instance=ExtResource("2_7um2b")]
+layout_mode = 0
+offset_left = 160.0
+offset_top = 26.0
+offset_right = 200.0
+offset_bottom = 106.0
+rotation = 1.5708
+texture = SubResource("AtlasTexture_kr7mh")
+label = ""
+action = &"ui_right"
+
+[node name="Right" parent="Control" instance=ExtResource("2_7um2b")]
+layout_mode = 0
+offset_top = 66.0
+offset_right = 40.0
+offset_bottom = 146.0
+rotation = -1.5708
+texture = SubResource("AtlasTexture_kr7mh")
+label = ""
+action = &"ui_left"
+
+[node name="Start" parent="Control" instance=ExtResource("2_7um2b")]
+layout_mode = 0
+offset_top = 92.0
+offset_bottom = 105.0
+label = "Start"
+action = &"ui_accept"