Sunday Update: graphic and bots improvements, ConfigFile, menu settings
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://assets/icons/return.png" type="Texture" id=3]
|
||||
|
||||
[node name="menu" type="Panel"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -472.5
|
||||
margin_top = -234.5
|
||||
margin_right = 472.5
|
||||
margin_bottom = 234.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
rect_clip_content = true
|
||||
size_flags_horizontal = 6
|
||||
size_flags_vertical = 6
|
||||
theme = ExtResource( 1 )
|
||||
|
||||
[node name="back" type="Button" parent="."]
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = -56.0
|
||||
margin_right = 132.0
|
||||
size_flags_horizontal = 6
|
||||
size_flags_vertical = 6
|
||||
custom_fonts/font = ExtResource( 2 )
|
||||
text = "BACK"
|
||||
icon = ExtResource( 3 )
|
||||
flat = true
|
||||
align = 0
|
||||
@@ -0,0 +1,95 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://scripts/menus/direct_host_menu.gd" type="Script" id=2]
|
||||
[ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://assets/icons/exitRight.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/icons/return.png" type="Texture" id=5]
|
||||
|
||||
|
||||
[node name="direct_host_menu" type="Control"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -512.0
|
||||
margin_top = -300.0
|
||||
margin_right = 512.0
|
||||
margin_bottom = 300.0
|
||||
theme = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="menu" type="Panel" parent="."]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -217.5
|
||||
margin_top = -53.5
|
||||
margin_right = 217.5
|
||||
margin_bottom = 53.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="menu"]
|
||||
margin_left = 16.0
|
||||
margin_top = 12.0
|
||||
margin_right = 429.0
|
||||
margin_bottom = 52.0
|
||||
|
||||
[node name="port_label" type="Label" parent="menu/HBoxContainer"]
|
||||
margin_top = 6.0
|
||||
margin_right = 65.0
|
||||
margin_bottom = 33.0
|
||||
text = "PORT"
|
||||
|
||||
[node name="port" type="SpinBox" parent="menu/HBoxContainer"]
|
||||
margin_left = 69.0
|
||||
margin_right = 266.0
|
||||
margin_bottom = 40.0
|
||||
focus_neighbour_right = NodePath("../bots")
|
||||
focus_neighbour_bottom = NodePath("../../back")
|
||||
size_flags_horizontal = 3
|
||||
max_value = 65535.0
|
||||
value = 8128.0
|
||||
align = 2
|
||||
|
||||
[node name="bots" type="CheckButton" parent="menu/HBoxContainer"]
|
||||
margin_left = 270.0
|
||||
margin_right = 413.0
|
||||
margin_bottom = 40.0
|
||||
focus_neighbour_left = NodePath("../port")
|
||||
focus_neighbour_bottom = NodePath("../../host")
|
||||
text = "BOTS"
|
||||
|
||||
[node name="host" type="Button" parent="menu"]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -143.0
|
||||
margin_top = -56.0001
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
rect_pivot_offset = Vector2( 1.89856, 0.845154 )
|
||||
focus_neighbour_left = NodePath("../back")
|
||||
focus_neighbour_top = NodePath("../GridContainer/bots")
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "HOST"
|
||||
icon = ExtResource( 4 )
|
||||
flat = true
|
||||
|
||||
[node name="back" type="Button" parent="menu"]
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = -56.0
|
||||
margin_right = 132.0
|
||||
rect_pivot_offset = Vector2( 0.606262, -0.447205 )
|
||||
focus_neighbour_top = NodePath("../GridContainer/port")
|
||||
focus_neighbour_right = NodePath("../host")
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "BACK"
|
||||
icon = ExtResource( 5 )
|
||||
flat = true
|
||||
[connection signal="pressed" from="menu/host" to="." method="_on_host_pressed"]
|
||||
[connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]
|
||||
@@ -0,0 +1,107 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://scripts/menus/direct_join_menu.gd" type="Script" id=2]
|
||||
[ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://assets/icons/exitRight.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/icons/return.png" type="Texture" id=5]
|
||||
|
||||
|
||||
[node name="direct_join_menu" type="Control"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -512.0
|
||||
margin_top = -300.0
|
||||
margin_right = 512.0
|
||||
margin_bottom = 300.0
|
||||
theme = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="menu" type="Panel" parent="."]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -217.5
|
||||
margin_top = -73.5
|
||||
margin_right = 217.5
|
||||
margin_bottom = 73.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="menu"]
|
||||
margin_left = 18.0
|
||||
margin_top = 11.0
|
||||
margin_right = 425.0
|
||||
margin_bottom = 89.0
|
||||
columns = 2
|
||||
|
||||
[node name="ip_label" type="Label" parent="menu/GridContainer"]
|
||||
margin_right = 65.0
|
||||
margin_bottom = 37.0
|
||||
size_flags_vertical = 1
|
||||
text = "IP"
|
||||
valign = 1
|
||||
|
||||
[node name="ip" type="LineEdit" parent="menu/GridContainer"]
|
||||
margin_left = 69.0
|
||||
margin_right = 407.0
|
||||
margin_bottom = 37.0
|
||||
focus_neighbour_bottom = NodePath("../port")
|
||||
size_flags_horizontal = 3
|
||||
text = "127.0.0.1"
|
||||
caret_blink = true
|
||||
caret_blink_speed = 0.5
|
||||
|
||||
[node name="port_label" type="Label" parent="menu/GridContainer"]
|
||||
margin_top = 41.0
|
||||
margin_right = 65.0
|
||||
margin_bottom = 78.0
|
||||
size_flags_vertical = 1
|
||||
text = "PORT"
|
||||
valign = 1
|
||||
|
||||
[node name="port" type="SpinBox" parent="menu/GridContainer"]
|
||||
margin_left = 69.0
|
||||
margin_top = 41.0
|
||||
margin_right = 407.0
|
||||
margin_bottom = 78.0
|
||||
focus_neighbour_top = NodePath("../ip")
|
||||
focus_neighbour_bottom = NodePath("../../join")
|
||||
max_value = 65535.0
|
||||
value = 8128.0
|
||||
align = 2
|
||||
|
||||
[node name="join" type="Button" parent="menu"]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -143.0
|
||||
margin_top = -56.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
rect_pivot_offset = Vector2( 1.89856, 0.845154 )
|
||||
focus_neighbour_left = NodePath("../back")
|
||||
focus_neighbour_top = NodePath("../GridContainer/port")
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "JOIN"
|
||||
icon = ExtResource( 4 )
|
||||
flat = true
|
||||
|
||||
[node name="back" type="Button" parent="menu"]
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = -56.0
|
||||
margin_right = 132.001
|
||||
rect_pivot_offset = Vector2( 0.606262, -0.447205 )
|
||||
focus_neighbour_top = NodePath("../GridContainer/port")
|
||||
focus_neighbour_right = NodePath("../join")
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "BACK"
|
||||
icon = ExtResource( 5 )
|
||||
flat = true
|
||||
[connection signal="pressed" from="menu/join" to="." method="_on_join_pressed"]
|
||||
[connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]
|
||||
@@ -0,0 +1,69 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://scripts/menus/ingame_menu.gd" type="Script" id=2]
|
||||
[ext_resource path="res://assets/icons/open.png" type="Texture" id=3]
|
||||
[ext_resource path="res://assets/icons/wrench.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/icons/arrowLeft.png" type="Texture" id=5]
|
||||
|
||||
[node name="ingame_menu" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -0.857361
|
||||
margin_right = -0.857361
|
||||
theme = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="menu" type="Panel" parent="."]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -155.0
|
||||
margin_top = -100.5
|
||||
margin_right = 155.0
|
||||
margin_bottom = 100.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="menu"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="resume" type="Button" parent="menu/VBoxContainer"]
|
||||
margin_right = 310.0
|
||||
margin_bottom = 64.0
|
||||
focus_neighbour_top = NodePath("../end")
|
||||
focus_neighbour_bottom = NodePath("../settings")
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
text = "RESUME"
|
||||
icon = ExtResource( 3 )
|
||||
flat = true
|
||||
|
||||
[node name="settings" type="Button" parent="menu/VBoxContainer"]
|
||||
margin_top = 68.0
|
||||
margin_right = 310.0
|
||||
margin_bottom = 132.0
|
||||
focus_neighbour_top = NodePath("../resume")
|
||||
focus_neighbour_bottom = NodePath("../end")
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
text = "SETTINGS"
|
||||
icon = ExtResource( 4 )
|
||||
flat = true
|
||||
|
||||
[node name="end" type="Button" parent="menu/VBoxContainer"]
|
||||
margin_top = 136.0
|
||||
margin_right = 310.0
|
||||
margin_bottom = 201.0
|
||||
focus_neighbour_top = NodePath("../settings")
|
||||
focus_neighbour_bottom = NodePath("../resume")
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
text = "END_GAME"
|
||||
icon = ExtResource( 5 )
|
||||
flat = true
|
||||
[connection signal="pressed" from="menu/VBoxContainer/resume" to="." method="_on_resume_pressed"]
|
||||
[connection signal="pressed" from="menu/VBoxContainer/settings" to="." method="_on_settings_pressed"]
|
||||
[connection signal="pressed" from="menu/VBoxContainer/end" to="." method="_on_end_pressed"]
|
||||
@@ -0,0 +1,149 @@
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://scripts/menus/lobby_menu.gd" type="Script" id=2]
|
||||
[ext_resource path="res://scenes/menus/BaseMenu.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://assets/icons/checkmark.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/icons/question.png" type="Texture" id=5]
|
||||
[ext_resource path="res://scenes/menus/SettingsPlayerMenu.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://assets/fonts/Kenney Future Narrow.ttf" type="DynamicFontData" id=7]
|
||||
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 100
|
||||
font_data = ExtResource( 7 )
|
||||
|
||||
[node name="lobby_menu" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 0.857376
|
||||
margin_top = 0.857422
|
||||
margin_right = 0.857422
|
||||
margin_bottom = 0.857422
|
||||
theme = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="menu" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
[node name="back" parent="menu" index="0"]
|
||||
focus_neighbour_right = NodePath("../ready")
|
||||
|
||||
[node name="top_bar" type="HBoxContainer" parent="menu"]
|
||||
margin_left = 14.0
|
||||
margin_top = 12.0
|
||||
margin_right = 940.0
|
||||
margin_bottom = 52.0
|
||||
|
||||
[node name="server_name" type="Label" parent="menu/top_bar"]
|
||||
margin_right = 779.0
|
||||
margin_bottom = 40.0
|
||||
mouse_filter = 1
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
text = "Server"
|
||||
valign = 1
|
||||
|
||||
[node name="server_bots" type="CheckButton" parent="menu/top_bar"]
|
||||
margin_left = 783.0
|
||||
margin_right = 926.0
|
||||
margin_bottom = 40.0
|
||||
disabled = true
|
||||
text = "Bots"
|
||||
align = 2
|
||||
|
||||
[node name="mid" type="GridContainer" parent="menu"]
|
||||
margin_left = 12.0
|
||||
margin_top = 57.0
|
||||
margin_right = 936.0
|
||||
margin_bottom = 397.0
|
||||
columns = 3
|
||||
|
||||
[node name="players" type="ItemList" parent="menu/mid"]
|
||||
editor/display_folded = true
|
||||
margin_right = 456.0
|
||||
margin_bottom = 340.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="ready_icon" type="Button" parent="menu/mid/players"]
|
||||
visible = false
|
||||
margin_right = 62.0
|
||||
margin_bottom = 56.0
|
||||
icon = ExtResource( 4 )
|
||||
|
||||
[node name="not_ready_icon" type="Button" parent="menu/mid/players"]
|
||||
visible = false
|
||||
margin_right = 62.0
|
||||
margin_bottom = 56.0
|
||||
icon = ExtResource( 5 )
|
||||
|
||||
[node name="VSeparator" type="VSeparator" parent="menu/mid"]
|
||||
margin_left = 460.0
|
||||
margin_right = 464.0
|
||||
margin_bottom = 340.0
|
||||
|
||||
[node name="player_settings" parent="menu/mid" instance=ExtResource( 6 )]
|
||||
editor/display_folded = true
|
||||
margin_left = 468.0
|
||||
margin_top = 0.0
|
||||
margin_right = 924.0
|
||||
margin_bottom = 340.0
|
||||
|
||||
[node name="name_label" parent="menu/mid/player_settings/GridContainer" index="0"]
|
||||
margin_right = 456.0
|
||||
margin_bottom = 27.0
|
||||
|
||||
[node name="name" parent="menu/mid/player_settings/GridContainer" index="1"]
|
||||
margin_top = 31.0
|
||||
margin_right = 456.0
|
||||
margin_bottom = 68.0
|
||||
focus_neighbour_bottom = NodePath("../color")
|
||||
|
||||
[node name="color_label" parent="menu/mid/player_settings/GridContainer" index="2"]
|
||||
margin_top = 72.0
|
||||
margin_right = 456.0
|
||||
margin_bottom = 99.0
|
||||
|
||||
[node name="color" parent="menu/mid/player_settings/GridContainer" index="3"]
|
||||
margin_top = 103.0
|
||||
margin_right = 456.0
|
||||
margin_bottom = 136.0
|
||||
focus_neighbour_top = NodePath("../name")
|
||||
focus_neighbour_bottom = NodePath("../../../../ready")
|
||||
|
||||
[node name="ready" type="CheckButton" parent="menu"]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -166.0
|
||||
margin_top = -58.0
|
||||
grow_vertical = 0
|
||||
focus_neighbour_left = NodePath("../back")
|
||||
focus_neighbour_top = NodePath("../mid/player_settings/GridContainer/color")
|
||||
text = "READY"
|
||||
flat = true
|
||||
|
||||
[node name="countdown" type="Label" parent="."]
|
||||
visible = false
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -94.0
|
||||
margin_top = -56.5
|
||||
margin_right = 94.0
|
||||
margin_bottom = 56.5
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
text = "3"
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="countdown_timer" type="Timer" parent="."]
|
||||
process_mode = 0
|
||||
wait_time = 3.0
|
||||
one_shot = true
|
||||
[connection signal="toggled" from="menu/ready" to="." method="_on_ready_toggled"]
|
||||
|
||||
[editable path="menu"]
|
||||
|
||||
[editable path="menu/mid/player_settings"]
|
||||
@@ -0,0 +1,108 @@
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://scripts/menus/local_game.gd" type="Script" id=2]
|
||||
[ext_resource path="res://scenes/menus/SettingsPlayerMenu.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=4]
|
||||
[ext_resource path="res://assets/icons/exitRight.png" type="Texture" id=5]
|
||||
[ext_resource path="res://assets/icons/return.png" type="Texture" id=6]
|
||||
|
||||
[node name="local_game_menu" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 0.857376
|
||||
margin_top = 0.857422
|
||||
margin_right = 0.857422
|
||||
margin_bottom = 0.857422
|
||||
theme = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="menu" type="Panel" parent="."]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -217.5
|
||||
margin_top = -130.5
|
||||
margin_right = 217.5
|
||||
margin_bottom = 130.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="menu"]
|
||||
margin_left = 19.0
|
||||
margin_top = 21.0
|
||||
margin_right = 418.0
|
||||
margin_bottom = 197.0
|
||||
|
||||
[node name="player_settings" parent="menu/VBoxContainer" instance=ExtResource( 3 )]
|
||||
margin_left = 0.0
|
||||
margin_top = 0.0
|
||||
margin_right = 399.0
|
||||
margin_bottom = 132.0
|
||||
|
||||
[node name="name_label" parent="menu/VBoxContainer/player_settings/VBoxContainer" index="0"]
|
||||
margin_right = 399.0
|
||||
margin_bottom = 27.0
|
||||
|
||||
[node name="name" parent="menu/VBoxContainer/player_settings/VBoxContainer" index="1"]
|
||||
margin_top = 31.0
|
||||
margin_right = 399.0
|
||||
margin_bottom = 68.0
|
||||
focus_neighbour_bottom = NodePath("../color")
|
||||
|
||||
[node name="color_label" parent="menu/VBoxContainer/player_settings/VBoxContainer" index="2"]
|
||||
margin_top = 72.0
|
||||
margin_right = 399.0
|
||||
margin_bottom = 99.0
|
||||
|
||||
[node name="color" parent="menu/VBoxContainer/player_settings/VBoxContainer" index="3"]
|
||||
margin_top = 103.0
|
||||
margin_right = 399.0
|
||||
margin_bottom = 136.0
|
||||
focus_neighbour_top = NodePath("../name")
|
||||
focus_neighbour_bottom = NodePath("../../../bots")
|
||||
|
||||
[node name="bots" type="CheckButton" parent="menu/VBoxContainer"]
|
||||
margin_top = 136.0
|
||||
margin_right = 143.0
|
||||
margin_bottom = 176.0
|
||||
focus_neighbour_top = NodePath("../player_settings/VBoxContainer/color")
|
||||
focus_neighbour_bottom = NodePath("../../start")
|
||||
size_flags_horizontal = 0
|
||||
pressed = true
|
||||
text = "BOTS"
|
||||
flat = true
|
||||
|
||||
[node name="start" type="Button" parent="menu"]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -234.0
|
||||
margin_top = -56.0
|
||||
grow_horizontal = 0
|
||||
rect_pivot_offset = Vector2( 1.89856, 0.845154 )
|
||||
focus_neighbour_left = NodePath("../back")
|
||||
focus_neighbour_top = NodePath("../VBoxContainer/bots")
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
text = "START_GAME"
|
||||
icon = ExtResource( 5 )
|
||||
flat = true
|
||||
|
||||
[node name="back" type="Button" parent="menu"]
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = -56.0
|
||||
margin_right = 132.0
|
||||
rect_pivot_offset = Vector2( 0.606262, -0.447205 )
|
||||
focus_neighbour_top = NodePath("../VBoxContainer/bots")
|
||||
focus_neighbour_right = NodePath("../start")
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
text = "BACK"
|
||||
icon = ExtResource( 6 )
|
||||
flat = true
|
||||
[connection signal="pressed" from="menu/start" to="." method="_on_start_pressed"]
|
||||
[connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]
|
||||
|
||||
[editable path="menu/VBoxContainer/player_settings"]
|
||||
@@ -0,0 +1,102 @@
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://scripts/menus/main_menu.gd" type="Script" id=2]
|
||||
[ext_resource path="res://assets/icons/massiveMultiplayer.png" type="Texture" id=3]
|
||||
[ext_resource path="res://assets/icons/singleplayer.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/icons/wrench.png" type="Texture" id=5]
|
||||
[ext_resource path="res://assets/icons/power.png" type="Texture" id=6]
|
||||
[ext_resource path="res://assets/icons/question.png" type="Texture" id=7]
|
||||
|
||||
|
||||
[node name="main_menu" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -0.857361
|
||||
margin_right = -0.857361
|
||||
theme = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="menu" type="Panel" parent="."]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -155.0
|
||||
margin_top = -132.5
|
||||
margin_right = 155.0
|
||||
margin_bottom = 132.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="menu"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="multiplayer" type="Button" parent="menu/VBoxContainer"]
|
||||
margin_right = 310.0
|
||||
margin_bottom = 63.0
|
||||
focus_neighbour_top = NodePath("../quit")
|
||||
focus_neighbour_bottom = NodePath("../practice")
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
text = "MULTIPLAYER"
|
||||
icon = ExtResource( 3 )
|
||||
flat = true
|
||||
|
||||
[node name="practice" type="Button" parent="menu/VBoxContainer"]
|
||||
margin_top = 67.0
|
||||
margin_right = 310.0
|
||||
margin_bottom = 130.0
|
||||
focus_neighbour_top = NodePath("../multiplayer")
|
||||
focus_neighbour_bottom = NodePath("../settings")
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
text = "PRACTISE"
|
||||
icon = ExtResource( 4 )
|
||||
flat = true
|
||||
|
||||
[node name="settings" type="Button" parent="menu/VBoxContainer"]
|
||||
margin_top = 134.0
|
||||
margin_right = 310.0
|
||||
margin_bottom = 197.0
|
||||
focus_neighbour_top = NodePath("../practice")
|
||||
focus_neighbour_bottom = NodePath("../quit")
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
text = "SETTINGS"
|
||||
icon = ExtResource( 5 )
|
||||
flat = true
|
||||
|
||||
[node name="quit" type="Button" parent="menu/VBoxContainer"]
|
||||
margin_top = 201.0
|
||||
margin_right = 310.0
|
||||
margin_bottom = 265.0
|
||||
focus_neighbour_top = NodePath("../settings")
|
||||
focus_neighbour_bottom = NodePath("../multiplayer")
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
text = "QUIT"
|
||||
icon = ExtResource( 6 )
|
||||
flat = true
|
||||
|
||||
[node name="error_dialog" type="AcceptDialog" parent="."]
|
||||
margin_right = 138.0
|
||||
margin_bottom = 84.0
|
||||
window_title = "ALERT"
|
||||
dialog_text = "Server disconnected!"
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -62.0
|
||||
margin_top = -56.0
|
||||
icon = ExtResource( 7 )
|
||||
flat = true
|
||||
[connection signal="pressed" from="menu/VBoxContainer/multiplayer" to="." method="_on_multiplayer_pressed"]
|
||||
[connection signal="pressed" from="menu/VBoxContainer/multiplayer" to="." method="_on_online_pressed"]
|
||||
[connection signal="pressed" from="menu/VBoxContainer/practice" to="." method="_on_practice_pressed"]
|
||||
[connection signal="pressed" from="menu/VBoxContainer/settings" to="." method="_on_settings_pressed"]
|
||||
[connection signal="pressed" from="menu/VBoxContainer/quit" to="." method="_on_quit_pressed"]
|
||||
@@ -0,0 +1,161 @@
|
||||
[gd_scene load_steps=11 format=2]
|
||||
|
||||
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://scripts/menus/server_menu.gd" type="Script" id=2]
|
||||
[ext_resource path="res://scenes/menus/BaseMenu.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://assets/icons/cpu.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/icons/exitRight.png" type="Texture" id=5]
|
||||
[ext_resource path="res://assets/icons/car.png" type="Texture" id=6]
|
||||
[ext_resource path="res://assets/icons/trophy.png" type="Texture" id=7]
|
||||
[ext_resource path="res://assets/icons/locked.png" type="Texture" id=8]
|
||||
[ext_resource path="res://assets/icons/massiveMultiplayer.png" type="Texture" id=9]
|
||||
[ext_resource path="res://assets/icons/fistPlus.png" type="Texture" id=10]
|
||||
|
||||
|
||||
[node name="multiplayer_menu" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -0.142624
|
||||
margin_top = 2.85742
|
||||
margin_right = -0.142578
|
||||
margin_bottom = 2.85742
|
||||
theme = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="menu" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
[node name="back" parent="menu" index="0"]
|
||||
focus_neighbour_top = NodePath("../games")
|
||||
focus_neighbour_right = NodePath("../bottom_bar/refresh")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="menu"]
|
||||
anchor_right = 1.0
|
||||
margin_bottom = 56.0
|
||||
|
||||
[node name="direct_host" type="Button" parent="menu/HBoxContainer"]
|
||||
margin_right = 239.0
|
||||
margin_bottom = 56.0
|
||||
focus_neighbour_right = NodePath("../direct_join")
|
||||
focus_neighbour_bottom = NodePath("../../games")
|
||||
text = "DIRECT_HOST"
|
||||
icon = ExtResource( 4 )
|
||||
flat = true
|
||||
|
||||
[node name="direct_join" type="Button" parent="menu/HBoxContainer"]
|
||||
margin_left = 243.0
|
||||
margin_right = 473.0
|
||||
margin_bottom = 56.0
|
||||
focus_neighbour_left = NodePath("../direct_host")
|
||||
focus_neighbour_right = NodePath("../open")
|
||||
focus_neighbour_bottom = NodePath("../../games")
|
||||
text = "DIRECT_JOIN"
|
||||
icon = ExtResource( 5 )
|
||||
flat = true
|
||||
|
||||
[node name="open" type="CheckButton" parent="menu/HBoxContainer"]
|
||||
margin_left = 477.0
|
||||
margin_right = 945.0
|
||||
margin_bottom = 56.0
|
||||
focus_neighbour_left = NodePath("../direct_join")
|
||||
focus_neighbour_bottom = NodePath("../../games")
|
||||
size_flags_horizontal = 3
|
||||
disabled = true
|
||||
pressed = true
|
||||
text = "OPEN_GAMES_ONLY"
|
||||
align = 2
|
||||
|
||||
[node name="games" type="ItemList" parent="menu"]
|
||||
margin_left = 13.0
|
||||
margin_top = 60.0
|
||||
margin_right = 931.0
|
||||
margin_bottom = 414.0
|
||||
focus_neighbour_top = NodePath("../top_bar/open")
|
||||
focus_neighbour_bottom = NodePath("../bottom_bar/join")
|
||||
|
||||
[node name="open_icon" type="Button" parent="menu/games"]
|
||||
visible = false
|
||||
margin_right = 12.0
|
||||
margin_bottom = 33.0
|
||||
icon = ExtResource( 6 )
|
||||
|
||||
[node name="running_icon" type="Button" parent="menu/games"]
|
||||
visible = false
|
||||
margin_right = 12.0
|
||||
margin_bottom = 33.0
|
||||
icon = ExtResource( 7 )
|
||||
|
||||
[node name="private_icon" type="Button" parent="menu/games"]
|
||||
visible = false
|
||||
margin_right = 12.0
|
||||
margin_bottom = 33.0
|
||||
icon = ExtResource( 8 )
|
||||
|
||||
[node name="bottom_bar" type="HBoxContainer" parent="menu"]
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 380.0
|
||||
margin_top = -56.0
|
||||
grow_horizontal = 0
|
||||
size_flags_horizontal = 6
|
||||
size_flags_vertical = 6
|
||||
alignment = 2
|
||||
|
||||
[node name="refresh" type="Button" parent="menu/bottom_bar"]
|
||||
margin_right = 183.0
|
||||
margin_bottom = 56.0
|
||||
grow_horizontal = 0
|
||||
focus_neighbour_left = NodePath("../../back")
|
||||
focus_neighbour_top = NodePath("../../games")
|
||||
focus_neighbour_right = NodePath("../create")
|
||||
text = "REFRESH"
|
||||
icon = ExtResource( 9 )
|
||||
flat = true
|
||||
align = 0
|
||||
|
||||
[node name="create" type="Button" parent="menu/bottom_bar"]
|
||||
margin_left = 187.0
|
||||
margin_right = 441.0
|
||||
margin_bottom = 56.0
|
||||
focus_neighbour_left = NodePath("../refresh")
|
||||
focus_neighbour_top = NodePath("../../games")
|
||||
focus_neighbour_right = NodePath("../join")
|
||||
disabled = true
|
||||
text = "CREATE_GAME"
|
||||
icon = ExtResource( 10 )
|
||||
flat = true
|
||||
align = 2
|
||||
|
||||
[node name="join" type="Button" parent="menu/bottom_bar"]
|
||||
margin_left = 445.0
|
||||
margin_right = 565.0
|
||||
margin_bottom = 56.0
|
||||
focus_neighbour_left = NodePath("../create")
|
||||
focus_neighbour_top = NodePath("../../games")
|
||||
disabled = true
|
||||
text = "JOIN"
|
||||
icon = ExtResource( 5 )
|
||||
flat = true
|
||||
align = 2
|
||||
|
||||
[node name="error_dialog" type="AcceptDialog" parent="."]
|
||||
margin_right = 138.0
|
||||
margin_bottom = 84.0
|
||||
window_title = "ALERT"
|
||||
|
||||
[node name="refresh_timer" type="Timer" parent="."]
|
||||
wait_time = 5.0
|
||||
autostart = true
|
||||
[connection signal="draw" from="." to="." method="_on_multiplayer_menu_draw"]
|
||||
[connection signal="hide" from="." to="." method="_on_multiplayer_menu_hide"]
|
||||
[connection signal="pressed" from="menu/HBoxContainer/direct_host" to="." method="_on_direct_host_pressed"]
|
||||
[connection signal="pressed" from="menu/HBoxContainer/direct_join" to="." method="_on_direct_join_pressed"]
|
||||
[connection signal="toggled" from="menu/HBoxContainer/open" to="." method="_on_open_toggled"]
|
||||
[connection signal="item_selected" from="menu/games" to="." method="_on_games_item_selected"]
|
||||
[connection signal="nothing_selected" from="menu/games" to="." method="_on_games_nothing_selected"]
|
||||
[connection signal="pressed" from="menu/bottom_bar/refresh" to="." method="_on_refresh_pressed"]
|
||||
[connection signal="pressed" from="menu/bottom_bar/create" to="." method="_on_create_pressed"]
|
||||
[connection signal="pressed" from="menu/bottom_bar/join" to="." method="_on_join_pressed"]
|
||||
[connection signal="timeout" from="refresh_timer" to="." method="_on_refresh_timer_timeout"]
|
||||
|
||||
[editable path="menu"]
|
||||
@@ -0,0 +1,100 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://scripts/menus/server_create_menu.gd" type="Script" id=2]
|
||||
[ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://assets/icons/fistPlus.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/icons/return.png" type="Texture" id=5]
|
||||
|
||||
|
||||
[node name="server_create_menu" type="Control"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -512.0
|
||||
margin_top = -300.0
|
||||
margin_right = 512.0
|
||||
margin_bottom = 300.0
|
||||
theme = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="menu" type="Panel" parent="."]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -296.5
|
||||
margin_top = -68.5
|
||||
margin_right = 296.5
|
||||
margin_bottom = 68.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="menu"]
|
||||
margin_left = 12.0
|
||||
margin_top = 11.0
|
||||
margin_right = 584.0
|
||||
margin_bottom = 92.0
|
||||
columns = 2
|
||||
|
||||
[node name="name_label" type="Label" parent="menu/GridContainer"]
|
||||
margin_top = 5.0
|
||||
margin_right = 162.0
|
||||
margin_bottom = 32.0
|
||||
text = "GAME_NAME"
|
||||
|
||||
[node name="name" type="LineEdit" parent="menu/GridContainer"]
|
||||
margin_left = 166.0
|
||||
margin_right = 572.0
|
||||
margin_bottom = 37.0
|
||||
focus_neighbour_left = NodePath("../../back")
|
||||
focus_neighbour_right = NodePath("../../create")
|
||||
focus_neighbour_bottom = NodePath("../bots")
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="bots" type="CheckButton" parent="menu/GridContainer"]
|
||||
margin_top = 41.0
|
||||
margin_right = 143.0
|
||||
margin_bottom = 81.0
|
||||
focus_neighbour_left = NodePath("../../back")
|
||||
focus_neighbour_top = NodePath("../name")
|
||||
focus_neighbour_right = NodePath("../../create")
|
||||
focus_neighbour_bottom = NodePath("../../create")
|
||||
size_flags_horizontal = 0
|
||||
text = "BOTS"
|
||||
|
||||
[node name="create" type="Button" parent="menu"]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -255.0
|
||||
margin_top = -56.0001
|
||||
margin_right = -1.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
rect_pivot_offset = Vector2( 1.89856, 0.845154 )
|
||||
focus_neighbour_left = NodePath("../back")
|
||||
focus_neighbour_top = NodePath("../GridContainer/bots")
|
||||
focus_neighbour_right = NodePath("../GridContainer/name")
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "CREATE_GAME"
|
||||
icon = ExtResource( 4 )
|
||||
flat = true
|
||||
|
||||
[node name="back" type="Button" parent="menu"]
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = -56.0
|
||||
margin_right = 132.0
|
||||
rect_pivot_offset = Vector2( 0.606262, -0.447205 )
|
||||
focus_neighbour_top = NodePath("../GridContainer/bots")
|
||||
focus_neighbour_right = NodePath("../create")
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Back"
|
||||
icon = ExtResource( 5 )
|
||||
flat = true
|
||||
[connection signal="text_changed" from="menu/GridContainer/name" to="." method="_on_name_text_changed"]
|
||||
[connection signal="pressed" from="menu/create" to="." method="_on_create_pressed"]
|
||||
[connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]
|
||||
@@ -0,0 +1,201 @@
|
||||
[gd_scene load_steps=20 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/menus/settings_controls_menu.gd" type="Script" id=1]
|
||||
[ext_resource path="res://assets/icons/keySmall_3d.png" type="Texture" id=2]
|
||||
[ext_resource path="res://assets/icons/buttonA.png" type="Texture" id=3]
|
||||
[ext_resource path="res://assets/icons/buttonB.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/icons/buttonX.png" type="Texture" id=5]
|
||||
[ext_resource path="res://assets/icons/buttonY.png" type="Texture" id=6]
|
||||
[ext_resource path="res://assets/icons/buttonL1.png" type="Texture" id=7]
|
||||
[ext_resource path="res://assets/icons/buttonR1.png" type="Texture" id=8]
|
||||
[ext_resource path="res://assets/icons/buttonL2.png" type="Texture" id=9]
|
||||
[ext_resource path="res://assets/icons/buttonR2.png" type="Texture" id=10]
|
||||
[ext_resource path="res://assets/icons/buttonL.png" type="Texture" id=11]
|
||||
[ext_resource path="res://assets/icons/buttonR.png" type="Texture" id=12]
|
||||
[ext_resource path="res://assets/icons/buttonSelect.png" type="Texture" id=13]
|
||||
[ext_resource path="res://assets/icons/buttonStart.png" type="Texture" id=14]
|
||||
[ext_resource path="res://assets/icons/DPAD_up.png" type="Texture" id=15]
|
||||
[ext_resource path="res://assets/icons/DPAD_down.png" type="Texture" id=16]
|
||||
[ext_resource path="res://assets/icons/DPAD_left.png" type="Texture" id=17]
|
||||
[ext_resource path="res://assets/icons/DPAD_right.png" type="Texture" id=18]
|
||||
[ext_resource path="res://assets/icons/fightJ.png" type="Texture" id=19]
|
||||
|
||||
[node name="settings_controls_menu" type="Control"]
|
||||
margin_left = 12.0
|
||||
margin_top = 8.0
|
||||
margin_right = 858.0
|
||||
margin_bottom = 335.0
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="grid" type="GridContainer" parent="ScrollContainer"]
|
||||
margin_right = 846.0
|
||||
margin_bottom = 327.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
columns = 3
|
||||
|
||||
[node name="empty" type="Label" parent="ScrollContainer/grid"]
|
||||
margin_bottom = 14.0
|
||||
|
||||
[node name="keyboard_label" type="Label" parent="ScrollContainer/grid"]
|
||||
margin_left = 4.0
|
||||
margin_right = 423.0
|
||||
margin_bottom = 14.0
|
||||
size_flags_horizontal = 3
|
||||
text = "KEYBOARD"
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="joypad_label" type="Label" parent="ScrollContainer/grid"]
|
||||
margin_left = 427.0
|
||||
margin_right = 846.0
|
||||
margin_bottom = 14.0
|
||||
size_flags_horizontal = 3
|
||||
text = "JOYPAD"
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="icons" type="GridContainer" parent="."]
|
||||
editor/display_folded = true
|
||||
visible = false
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="key" type="Button" parent="icons"]
|
||||
margin_right = 62.0
|
||||
margin_bottom = 56.0
|
||||
icon = ExtResource( 2 )
|
||||
|
||||
[node name="joypad" type="GridContainer" parent="icons"]
|
||||
editor/display_folded = true
|
||||
margin_top = 60.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 1076.0
|
||||
|
||||
[node name="0" type="Button" parent="icons/joypad"]
|
||||
margin_right = 62.0
|
||||
margin_bottom = 56.0
|
||||
icon = ExtResource( 3 )
|
||||
|
||||
[node name="1" type="Button" parent="icons/joypad"]
|
||||
margin_top = 60.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 116.0
|
||||
icon = ExtResource( 4 )
|
||||
|
||||
[node name="2" type="Button" parent="icons/joypad"]
|
||||
margin_top = 120.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 176.0
|
||||
icon = ExtResource( 5 )
|
||||
|
||||
[node name="3" type="Button" parent="icons/joypad"]
|
||||
margin_top = 180.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 236.0
|
||||
icon = ExtResource( 6 )
|
||||
|
||||
[node name="4" type="Button" parent="icons/joypad"]
|
||||
margin_top = 240.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 296.0
|
||||
icon = ExtResource( 7 )
|
||||
|
||||
[node name="5" type="Button" parent="icons/joypad"]
|
||||
margin_top = 300.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 356.0
|
||||
icon = ExtResource( 8 )
|
||||
|
||||
[node name="6" type="Button" parent="icons/joypad"]
|
||||
margin_top = 360.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 416.0
|
||||
icon = ExtResource( 9 )
|
||||
|
||||
[node name="7" type="Button" parent="icons/joypad"]
|
||||
margin_top = 420.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 476.0
|
||||
icon = ExtResource( 10 )
|
||||
|
||||
[node name="8" type="Button" parent="icons/joypad"]
|
||||
margin_top = 480.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 536.0
|
||||
icon = ExtResource( 11 )
|
||||
|
||||
[node name="9" type="Button" parent="icons/joypad"]
|
||||
margin_top = 540.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 596.0
|
||||
icon = ExtResource( 12 )
|
||||
|
||||
[node name="10" type="Button" parent="icons/joypad"]
|
||||
margin_top = 600.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 656.0
|
||||
icon = ExtResource( 13 )
|
||||
|
||||
[node name="11" type="Button" parent="icons/joypad"]
|
||||
margin_top = 660.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 716.0
|
||||
icon = ExtResource( 14 )
|
||||
|
||||
[node name="12" type="Button" parent="icons/joypad"]
|
||||
margin_top = 720.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 776.0
|
||||
icon = ExtResource( 15 )
|
||||
|
||||
[node name="13" type="Button" parent="icons/joypad"]
|
||||
margin_top = 780.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 836.0
|
||||
icon = ExtResource( 16 )
|
||||
|
||||
[node name="14" type="Button" parent="icons/joypad"]
|
||||
margin_top = 840.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 896.0
|
||||
icon = ExtResource( 17 )
|
||||
|
||||
[node name="15" type="Button" parent="icons/joypad"]
|
||||
margin_top = 900.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 956.0
|
||||
icon = ExtResource( 18 )
|
||||
|
||||
[node name="other" type="Button" parent="icons/joypad"]
|
||||
margin_top = 960.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 1016.0
|
||||
icon = ExtResource( 19 )
|
||||
|
||||
[node name="key_dialog" type="ConfirmationDialog" parent="."]
|
||||
margin_left = 57.9108
|
||||
margin_top = 57.5398
|
||||
margin_right = 367.911
|
||||
margin_bottom = 216.54
|
||||
popup_exclusive = true
|
||||
window_title = ""
|
||||
|
||||
[node name="action_button" type="Button" parent="key_dialog"]
|
||||
margin_left = 8.0
|
||||
margin_top = 8.0
|
||||
margin_right = 302.0
|
||||
margin_bottom = 123.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 12
|
||||
size_flags_vertical = 12
|
||||
flat = true
|
||||
clip_text = true
|
||||
align = 0
|
||||
@@ -0,0 +1,279 @@
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://scripts/menus/settings_menu.gd" type="Script" id=2]
|
||||
[ext_resource path="res://scenes/menus/BaseMenu.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://scenes/menus/SettingsPlayerMenu.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://scenes/menus/SettingsControlsMenu.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://assets/icons/checkmark.png" type="Texture" id=6]
|
||||
[ext_resource path="res://assets/icons/save.png" type="Texture" id=7]
|
||||
|
||||
[node name="settings_menu" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 1.45612
|
||||
margin_top = 1.45612
|
||||
margin_right = 1.45605
|
||||
margin_bottom = 1.45612
|
||||
theme = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="menu" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
[node name="back" parent="menu" index="0"]
|
||||
focus_neighbour_top = NodePath("../tabs/game")
|
||||
focus_neighbour_right = NodePath("../HBoxContainer/apply")
|
||||
|
||||
[node name="tabs" type="TabContainer" parent="menu"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -464.5
|
||||
margin_top = -223.5
|
||||
margin_right = 459.5
|
||||
margin_bottom = 177.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
focus_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
tab_align = 0
|
||||
|
||||
[node name="game" type="Tabs" parent="menu/tabs"]
|
||||
editor/display_folded = true
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 4.0
|
||||
margin_top = 45.0
|
||||
margin_right = -4.0
|
||||
margin_bottom = -4.0
|
||||
focus_neighbour_right = NodePath("../controls")
|
||||
focus_neighbour_bottom = NodePath("GridContainer/settings_player/VBoxContainer/name")
|
||||
focus_mode = 2
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="menu/tabs/game"]
|
||||
margin_left = 9.0
|
||||
margin_top = 10.0
|
||||
margin_right = 416.0
|
||||
margin_bottom = 200.0
|
||||
|
||||
[node name="settings_player" parent="menu/tabs/game/GridContainer" instance=ExtResource( 4 )]
|
||||
margin_left = 0.0
|
||||
margin_top = 0.0
|
||||
margin_right = 407.0
|
||||
margin_bottom = 146.0
|
||||
|
||||
[node name="name_label" parent="menu/tabs/game/GridContainer/settings_player/VBoxContainer" index="0"]
|
||||
margin_right = 407.0
|
||||
margin_bottom = 27.0
|
||||
|
||||
[node name="name" parent="menu/tabs/game/GridContainer/settings_player/VBoxContainer" index="1"]
|
||||
margin_top = 31.0
|
||||
margin_right = 407.0
|
||||
margin_bottom = 68.0
|
||||
focus_neighbour_top = NodePath("../../../..")
|
||||
focus_neighbour_bottom = NodePath("../color")
|
||||
|
||||
[node name="color_label" parent="menu/tabs/game/GridContainer/settings_player/VBoxContainer" index="2"]
|
||||
margin_top = 72.0
|
||||
margin_right = 407.0
|
||||
margin_bottom = 99.0
|
||||
|
||||
[node name="color" parent="menu/tabs/game/GridContainer/settings_player/VBoxContainer" index="3"]
|
||||
margin_top = 103.0
|
||||
margin_right = 407.0
|
||||
margin_bottom = 136.0
|
||||
focus_neighbour_top = NodePath("../name")
|
||||
focus_neighbour_bottom = NodePath("../../../bots")
|
||||
|
||||
[node name="bots" type="CheckButton" parent="menu/tabs/game/GridContainer"]
|
||||
margin_top = 150.0
|
||||
margin_right = 143.0
|
||||
margin_bottom = 190.0
|
||||
focus_neighbour_top = NodePath("../settings_player/VBoxContainer/color")
|
||||
focus_neighbour_bottom = NodePath("../../../../HBoxContainer/apply")
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
text = "Bots"
|
||||
|
||||
[node name="controls" type="Tabs" parent="menu/tabs"]
|
||||
editor/display_folded = true
|
||||
visible = false
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 4.0
|
||||
margin_top = 45.0
|
||||
margin_right = -4.0
|
||||
margin_bottom = -4.0
|
||||
focus_neighbour_left = NodePath("../game")
|
||||
focus_neighbour_right = NodePath("../graphics")
|
||||
focus_mode = 2
|
||||
|
||||
[node name="settings_controls" parent="menu/tabs/controls" instance=ExtResource( 5 )]
|
||||
|
||||
[node name="empty" parent="menu/tabs/controls/settings_controls/ScrollContainer/grid" index="0"]
|
||||
margin_bottom = 27.0
|
||||
|
||||
[node name="keyboard_label" parent="menu/tabs/controls/settings_controls/ScrollContainer/grid" index="1"]
|
||||
margin_bottom = 27.0
|
||||
|
||||
[node name="joypad_label" parent="menu/tabs/controls/settings_controls/ScrollContainer/grid" index="2"]
|
||||
margin_bottom = 27.0
|
||||
|
||||
[node name="action_button" parent="menu/tabs/controls/settings_controls/key_dialog" index="3"]
|
||||
margin_right = 302.0
|
||||
margin_bottom = 110.0
|
||||
|
||||
[node name="graphics" type="Tabs" parent="menu/tabs"]
|
||||
visible = false
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 4.0
|
||||
margin_top = 45.0
|
||||
margin_right = -4.0
|
||||
margin_bottom = -4.0
|
||||
focus_neighbour_left = NodePath("../controls")
|
||||
focus_neighbour_right = NodePath("../system")
|
||||
focus_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="menu/tabs/graphics"]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
|
||||
[node name="resolution" type="OptionButton" parent="menu/tabs/graphics/VBoxContainer"]
|
||||
margin_right = 248.0
|
||||
margin_bottom = 33.0
|
||||
|
||||
[node name="fullscreen" type="CheckButton" parent="menu/tabs/graphics/VBoxContainer"]
|
||||
margin_top = 37.0
|
||||
margin_right = 248.0
|
||||
margin_bottom = 77.0
|
||||
pressed = true
|
||||
text = "FULLSCREEN"
|
||||
|
||||
[node name="light" type="CheckButton" parent="menu/tabs/graphics/VBoxContainer"]
|
||||
margin_top = 81.0
|
||||
margin_right = 248.0
|
||||
margin_bottom = 121.0
|
||||
text = "LIGHT"
|
||||
|
||||
[node name="shadows" type="CheckButton" parent="menu/tabs/graphics/VBoxContainer"]
|
||||
margin_top = 125.0
|
||||
margin_right = 248.0
|
||||
margin_bottom = 165.0
|
||||
disabled = true
|
||||
text = "SHADOWS"
|
||||
|
||||
[node name="system" type="Tabs" parent="menu/tabs"]
|
||||
editor/display_folded = true
|
||||
visible = false
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 4.0
|
||||
margin_top = 45.0
|
||||
margin_right = -4.0
|
||||
margin_bottom = -4.0
|
||||
focus_neighbour_left = NodePath("../graphics")
|
||||
focus_mode = 2
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="menu/tabs/system"]
|
||||
margin_left = 12.0
|
||||
margin_top = 8.0
|
||||
margin_right = 907.0
|
||||
margin_bottom = 124.0
|
||||
columns = 2
|
||||
|
||||
[node name="locale_label" type="Label" parent="menu/tabs/system/GridContainer"]
|
||||
margin_right = 88.0
|
||||
margin_bottom = 14.0
|
||||
text = "LOCALE"
|
||||
valign = 1
|
||||
|
||||
[node name="locales" type="ItemList" parent="menu/tabs/system/GridContainer"]
|
||||
margin_left = 92.0
|
||||
margin_right = 895.0
|
||||
margin_bottom = 14.0
|
||||
size_flags_horizontal = 3
|
||||
auto_height = true
|
||||
|
||||
[node name="server_addr_label" type="Label" parent="menu/tabs/system/GridContainer"]
|
||||
margin_top = 23.0
|
||||
margin_right = 88.0
|
||||
margin_bottom = 37.0
|
||||
text = "SERVER_ADDR"
|
||||
valign = 1
|
||||
|
||||
[node name="server_addr" type="LineEdit" parent="menu/tabs/system/GridContainer"]
|
||||
margin_left = 92.0
|
||||
margin_top = 18.0
|
||||
margin_right = 895.0
|
||||
margin_bottom = 42.0
|
||||
|
||||
[node name="api_addr_label" type="Label" parent="menu/tabs/system/GridContainer"]
|
||||
margin_top = 51.0
|
||||
margin_right = 88.0
|
||||
margin_bottom = 65.0
|
||||
text = "API_ADDR"
|
||||
valign = 1
|
||||
|
||||
[node name="api_addr" type="LineEdit" parent="menu/tabs/system/GridContainer"]
|
||||
margin_left = 92.0
|
||||
margin_top = 46.0
|
||||
margin_right = 895.0
|
||||
margin_bottom = 70.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="menu"]
|
||||
editor/display_folded = true
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -286.0
|
||||
margin_top = -56.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 8
|
||||
alignment = 2
|
||||
|
||||
[node name="apply" type="Button" parent="menu/HBoxContainer"]
|
||||
margin_right = 150.0
|
||||
margin_bottom = 56.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
focus_neighbour_left = NodePath("../../back")
|
||||
focus_neighbour_top = NodePath("../../tabs/game")
|
||||
focus_neighbour_right = NodePath("../save")
|
||||
size_flags_horizontal = 10
|
||||
size_flags_vertical = 10
|
||||
text = "APPLY"
|
||||
icon = ExtResource( 6 )
|
||||
flat = true
|
||||
align = 0
|
||||
|
||||
[node name="save" type="Button" parent="menu/HBoxContainer"]
|
||||
margin_left = 154.0
|
||||
margin_right = 286.0
|
||||
margin_bottom = 56.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
focus_neighbour_left = NodePath("../apply")
|
||||
focus_neighbour_top = NodePath("../../tabs/game")
|
||||
size_flags_horizontal = 10
|
||||
size_flags_vertical = 10
|
||||
text = "SAVE"
|
||||
icon = ExtResource( 7 )
|
||||
flat = true
|
||||
align = 0
|
||||
[connection signal="toggled" from="menu/tabs/graphics/VBoxContainer/light" to="." method="_on_light_toggled"]
|
||||
[connection signal="item_selected" from="menu/tabs/system/GridContainer/locales" to="." method="_on_locales_item_selected"]
|
||||
[connection signal="tree_exiting" from="menu/tabs/system/GridContainer/locales" to="." method="_on_locales_tree_exiting"]
|
||||
[connection signal="pressed" from="menu/HBoxContainer/apply" to="." method="_on_apply_pressed"]
|
||||
[connection signal="pressed" from="menu/HBoxContainer/save" to="." method="_on_save_pressed"]
|
||||
|
||||
[editable path="menu"]
|
||||
|
||||
[editable path="menu/tabs/game/GridContainer/settings_player"]
|
||||
|
||||
[editable path="menu/tabs/controls/settings_controls"]
|
||||
@@ -0,0 +1,40 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/menus/settings_player_menu.gd" type="Script" id=1]
|
||||
|
||||
|
||||
[node name="settings_player_menu" type="Control"]
|
||||
margin_left = 513.0
|
||||
margin_top = 23.0
|
||||
margin_right = 878.0
|
||||
margin_bottom = 116.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="name_label" type="Label" parent="VBoxContainer"]
|
||||
margin_right = 365.0
|
||||
margin_bottom = 14.0
|
||||
text = "PLAYER_NAME"
|
||||
|
||||
[node name="name" type="LineEdit" parent="VBoxContainer"]
|
||||
margin_top = 18.0
|
||||
margin_right = 365.0
|
||||
margin_bottom = 42.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="color_label" type="Label" parent="VBoxContainer"]
|
||||
margin_top = 46.0
|
||||
margin_right = 365.0
|
||||
margin_bottom = 60.0
|
||||
text = "PLAYER_COLOR"
|
||||
|
||||
[node name="color" type="ColorPickerButton" parent="VBoxContainer"]
|
||||
margin_top = 64.0
|
||||
margin_right = 365.0
|
||||
margin_bottom = 84.0
|
||||
size_flags_horizontal = 3
|
||||
@@ -0,0 +1,47 @@
|
||||
[gd_scene format=2]
|
||||
|
||||
[node name="GridContainer" type="GridContainer"]
|
||||
margin_left = 12.0
|
||||
margin_top = 8.0
|
||||
margin_right = 907.0
|
||||
margin_bottom = 124.0
|
||||
columns = 2
|
||||
|
||||
[node name="locale_label" type="Label" parent="."]
|
||||
margin_right = 88.0
|
||||
margin_bottom = 14.0
|
||||
text = "LOCALE"
|
||||
valign = 1
|
||||
|
||||
[node name="locales" type="ItemList" parent="."]
|
||||
margin_left = 92.0
|
||||
margin_right = 895.0
|
||||
margin_bottom = 14.0
|
||||
size_flags_horizontal = 3
|
||||
auto_height = true
|
||||
|
||||
[node name="server_addr_label" type="Label" parent="."]
|
||||
margin_top = 23.0
|
||||
margin_right = 88.0
|
||||
margin_bottom = 37.0
|
||||
text = "SERVER_ADDR"
|
||||
valign = 1
|
||||
|
||||
[node name="server_addr" type="LineEdit" parent="."]
|
||||
margin_left = 92.0
|
||||
margin_top = 18.0
|
||||
margin_right = 895.0
|
||||
margin_bottom = 42.0
|
||||
|
||||
[node name="api_addr_label" type="Label" parent="."]
|
||||
margin_top = 51.0
|
||||
margin_right = 88.0
|
||||
margin_bottom = 65.0
|
||||
text = "API_ADDR"
|
||||
valign = 1
|
||||
|
||||
[node name="api_addr" type="LineEdit" parent="."]
|
||||
margin_left = 92.0
|
||||
margin_top = 46.0
|
||||
margin_right = 895.0
|
||||
margin_bottom = 70.0
|
||||
Reference in New Issue
Block a user