[gd_scene load_steps=11 format=3 uid="uid://1anjhvi173g3"] [ext_resource type="Script" path="res://ui/ingame_controls/ingame_controls.gd" id="1_iw1sp"] [ext_resource type="Texture2D" uid="uid://2vxx2waofxpw" path="res://assets/textures/Xbox Series/Vector/xbox_button_menu_outline.svg" id="1_wr5sh"] [ext_resource type="Script" path="res://ui/ingame_controls/joystick.gd" id="2_pyri2"] [ext_resource type="Texture2D" uid="uid://8anyvhkcy4ng" path="res://assets/textures/Xbox Series/Vector/xbox_button_a.svg" id="3_lgi8v"] [ext_resource type="Texture2D" uid="uid://cbep021ykpb23" path="res://assets/textures/Game Icons/Vector/2x/save.png" id="5_2pil1"] [ext_resource type="Texture2D" uid="uid://bwyoxxotdisyp" path="res://assets/textures/Game Icons/Vector/2x/gear.png" id="5_nwwsc"] [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_uoef2"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nfkty"] bg_color = Color(0, 0, 0, 0.196078) corner_radius_top_left = 999 corner_radius_top_right = 999 corner_radius_bottom_right = 999 corner_radius_bottom_left = 999 corner_detail = 12 [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_hfsbq"] [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_x4icw"] [node name="IngameControls" type="Control"] layout_mode = 3 anchors_preset = 12 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 0 size_flags_horizontal = 3 size_flags_vertical = 3 script = ExtResource("1_iw1sp") [node name="MarginContainer" type="MarginContainer" parent="."] layout_mode = 1 anchors_preset = 12 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_top = -338.0 grow_horizontal = 2 grow_vertical = 0 theme_override_constants/margin_left = 30 theme_override_constants/margin_right = 30 theme_override_constants/margin_bottom = 30 [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"] layout_mode = 2 size_flags_vertical = 8 alignment = 2 [node name="Left" type="VBoxContainer" parent="MarginContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 theme_override_constants/separation = 8 alignment = 2 [node name="MenuButton" type="Button" parent="MarginContainer/HBoxContainer/Left"] self_modulate = Color(0, 0, 0, 0.392157) custom_minimum_size = Vector2(120, 120) layout_mode = 2 size_flags_horizontal = 0 theme_override_styles/focus = SubResource("StyleBoxEmpty_uoef2") icon = ExtResource("1_wr5sh") flat = true expand_icon = true [node name="JoystickPanel" type="Panel" parent="MarginContainer/HBoxContainer/Left"] custom_minimum_size = Vector2(180, 180) layout_mode = 2 size_flags_horizontal = 0 theme_override_styles/panel = SubResource("StyleBoxFlat_nfkty") script = ExtResource("2_pyri2") [node name="Thumbstick" type="TextureRect" parent="MarginContainer/HBoxContainer/Left/JoystickPanel"] self_modulate = Color(0, 0, 0, 0.392157) layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -65.0 offset_top = -65.0 offset_right = 65.0 offset_bottom = 65.0 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("3_lgi8v") expand_mode = 3 stretch_mode = 5 [node name="Right" type="VBoxContainer" parent="MarginContainer/HBoxContainer"] layout_mode = 2 size_flags_vertical = 8 theme_override_constants/separation = 0 alignment = 2 [node name="SaveButton" type="Button" parent="MarginContainer/HBoxContainer/Right"] unique_name_in_owner = true self_modulate = Color(0, 0, 0, 0.392157) custom_minimum_size = Vector2(120, 120) layout_mode = 2 theme_override_styles/focus = SubResource("StyleBoxEmpty_hfsbq") icon = ExtResource("5_2pil1") flat = true icon_alignment = 1 expand_icon = true [node name="SettingsButton" type="Button" parent="MarginContainer/HBoxContainer/Right"] self_modulate = Color(0, 0, 0, 0.392157) custom_minimum_size = Vector2(120, 120) layout_mode = 2 theme_override_styles/focus = SubResource("StyleBoxEmpty_x4icw") icon = ExtResource("5_nwwsc") flat = true icon_alignment = 1 expand_icon = true [connection signal="pressed" from="MarginContainer/HBoxContainer/Left/MenuButton" to="." method="_on_menu_button_pressed"] [connection signal="gui_input" from="MarginContainer/HBoxContainer/Left/JoystickPanel" to="MarginContainer/HBoxContainer/Left/JoystickPanel" method="_on_gui_input"] [connection signal="resized" from="MarginContainer/HBoxContainer/Left/JoystickPanel" to="MarginContainer/HBoxContainer/Left/JoystickPanel" method="_on_resized"] [connection signal="button_down" from="MarginContainer/HBoxContainer/Right/SaveButton" to="." method="_on_save_button_button_down"] [connection signal="button_up" from="MarginContainer/HBoxContainer/Right/SaveButton" to="." method="_on_save_button_button_up"] [connection signal="pressed" from="MarginContainer/HBoxContainer/Right/SettingsButton" to="." method="_on_settings_button_pressed"]