[gd_scene format=3 uid="uid://g7h185yageqr"] [ext_resource type="Script" uid="uid://2kbajcohyem7" path="res://ui/mobile_controls/mobile_controls.gd" id="1_controls"] [ext_resource type="Texture2D" uid="uid://cj6wl2l43nao2" path="res://assets/ui/mobile_controls/left-arrow.png" id="2_left"] [ext_resource type="Texture2D" uid="uid://y0tsuhk4moj3" path="res://assets/ui/mobile_controls/right-arrow.png" id="3_right"] [ext_resource type="Texture2D" uid="uid://b832qiumqbdwc" path="res://assets/ui/mobile_controls/top-arrow.png" id="4_jump"] [ext_resource type="Texture2D" uid="uid://byb0xo2xlcj4f" path="res://assets/ui/mobile_controls/attack.png" id="5_attack"] [sub_resource type="StyleBoxFlat" id="ButtonNormal"] bg_color = Color(0.65, 0.04, 0.04, 0.28) border_width_left = 3 border_width_top = 3 border_width_right = 3 border_width_bottom = 3 border_color = Color(1, 0.15, 0.15, 0.72) corner_radius_top_left = 14 corner_radius_top_right = 14 corner_radius_bottom_right = 14 corner_radius_bottom_left = 14 [sub_resource type="StyleBoxFlat" id="ButtonPressed"] bg_color = Color(0.95, 0.05, 0.05, 0.52) border_width_left = 4 border_width_top = 4 border_width_right = 4 border_width_bottom = 4 border_color = Color(1, 0.45, 0.45, 0.95) corner_radius_top_left = 14 corner_radius_top_right = 14 corner_radius_bottom_right = 14 corner_radius_bottom_left = 14 [node name="MobileControls" type="CanvasLayer" unique_id=478431491] layer = 100 script = ExtResource("1_controls") [node name="Controls" type="Control" parent="." unique_id=1754744981] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 [node name="MoveLeft" type="Button" parent="Controls" unique_id=981068385] layout_mode = 1 anchors_preset = 2 anchor_top = 1.0 anchor_bottom = 1.0 offset_left = 50.0 offset_top = -170.0 offset_right = 188.0 offset_bottom = -32.0 grow_vertical = 0 focus_mode = 0 theme_override_colors/font_color = Color(1, 1, 1, 0.95) theme_override_colors/font_pressed_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 42 theme_override_styles/normal = SubResource("ButtonNormal") theme_override_styles/pressed = SubResource("ButtonPressed") theme_override_styles/hover = SubResource("ButtonNormal") keep_pressed_outside = true icon = ExtResource("2_left") expand_icon = true [node name="MoveRight" type="Button" parent="Controls" unique_id=561780368] layout_mode = 1 anchors_preset = 2 anchor_top = 1.0 anchor_bottom = 1.0 offset_left = 208.0 offset_top = -170.0 offset_right = 346.0 offset_bottom = -32.0 grow_vertical = 0 focus_mode = 0 theme_override_colors/font_color = Color(1, 1, 1, 0.95) theme_override_colors/font_pressed_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 42 theme_override_styles/normal = SubResource("ButtonNormal") theme_override_styles/pressed = SubResource("ButtonPressed") theme_override_styles/hover = SubResource("ButtonNormal") keep_pressed_outside = true icon = ExtResource("3_right") expand_icon = true [node name="Jump" type="Button" parent="Controls" unique_id=1396737393] layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -280.0 offset_top = -132.0 offset_right = -170.0 offset_bottom = -32.0 grow_horizontal = 0 grow_vertical = 0 focus_mode = 0 theme_override_colors/font_color = Color(1, 1, 1, 0.95) theme_override_colors/font_pressed_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 22 theme_override_styles/normal = SubResource("ButtonNormal") theme_override_styles/pressed = SubResource("ButtonPressed") theme_override_styles/hover = SubResource("ButtonNormal") keep_pressed_outside = true icon = ExtResource("4_jump") expand_icon = true [node name="Attack" type="Button" parent="Controls" unique_id=514469811] layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -154.0 offset_top = -132.0 offset_right = -44.0 offset_bottom = -32.0 grow_horizontal = 0 grow_vertical = 0 focus_mode = 0 theme_override_colors/font_color = Color(1, 1, 1, 0.95) theme_override_colors/font_pressed_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 22 theme_override_styles/normal = SubResource("ButtonNormal") theme_override_styles/pressed = SubResource("ButtonPressed") theme_override_styles/hover = SubResource("ButtonNormal") keep_pressed_outside = true icon = ExtResource("5_attack") expand_icon = true [node name="GroundPound" type="Button" parent="Controls" unique_id=655126227] layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -280.0 offset_top = -256.0 offset_right = -170.0 offset_bottom = -156.0 grow_horizontal = 0 grow_vertical = 0 focus_mode = 0 theme_override_colors/font_color = Color(1, 1, 1, 0.95) theme_override_colors/font_pressed_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 18 theme_override_styles/normal = SubResource("ButtonNormal") theme_override_styles/pressed = SubResource("ButtonPressed") theme_override_styles/hover = SubResource("ButtonNormal") keep_pressed_outside = true text = "GP" [node name="SpecialAttack" type="Button" parent="Controls" unique_id=2065869646] layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -154.0 offset_top = -256.0 offset_right = -44.0 offset_bottom = -156.0 grow_horizontal = 0 grow_vertical = 0 focus_mode = 0 theme_override_colors/font_color = Color(1, 1, 1, 0.95) theme_override_colors/font_pressed_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 18 theme_override_styles/normal = SubResource("ButtonNormal") theme_override_styles/pressed = SubResource("ButtonPressed") theme_override_styles/hover = SubResource("ButtonNormal") keep_pressed_outside = true text = "SP"