late Sunday update: netcode changes, bot improvements, bot development
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
[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
|
||||
@@ -24,44 +23,67 @@ 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
|
||||
margin_left = -217.0
|
||||
margin_top = -53.0
|
||||
margin_right = 218.0
|
||||
margin_bottom = 94.0
|
||||
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="VBoxContainer" type="VBoxContainer" parent="menu"]
|
||||
margin_left = 12.0
|
||||
margin_top = 11.0
|
||||
margin_right = 423.0
|
||||
margin_bottom = 92.0
|
||||
|
||||
[node name="port_label" type="Label" parent="menu/HBoxContainer"]
|
||||
margin_top = 6.0
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="menu/VBoxContainer"]
|
||||
margin_right = 411.0
|
||||
margin_bottom = 37.0
|
||||
|
||||
[node name="port_label" type="Label" parent="menu/VBoxContainer/HBoxContainer"]
|
||||
margin_top = 5.0
|
||||
margin_right = 65.0
|
||||
margin_bottom = 33.0
|
||||
margin_bottom = 32.0
|
||||
text = "PORT"
|
||||
|
||||
[node name="port" type="SpinBox" parent="menu/HBoxContainer"]
|
||||
[node name="port" type="SpinBox" parent="menu/VBoxContainer/HBoxContainer"]
|
||||
margin_left = 69.0
|
||||
margin_right = 266.0
|
||||
margin_bottom = 40.0
|
||||
focus_neighbour_right = NodePath("../bots")
|
||||
focus_neighbour_bottom = NodePath("../../back")
|
||||
margin_right = 411.0
|
||||
margin_bottom = 37.0
|
||||
focus_neighbour_bottom = NodePath("../../HBoxContainer2/bots")
|
||||
focus_mode = 2
|
||||
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
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="menu/VBoxContainer"]
|
||||
margin_top = 41.0
|
||||
margin_right = 411.0
|
||||
margin_bottom = 81.0
|
||||
|
||||
[node name="bots" type="CheckButton" parent="menu/VBoxContainer/HBoxContainer2"]
|
||||
margin_right = 143.0
|
||||
margin_bottom = 40.0
|
||||
focus_neighbour_left = NodePath("../port")
|
||||
focus_neighbour_bottom = NodePath("../../host")
|
||||
focus_neighbour_top = NodePath("../../HBoxContainer/port")
|
||||
focus_neighbour_right = NodePath("../bot_difficulty")
|
||||
focus_neighbour_bottom = NodePath("../../../back")
|
||||
text = "BOTS"
|
||||
|
||||
[node name="bot_difficulty" type="HSlider" parent="menu/VBoxContainer/HBoxContainer2"]
|
||||
margin_left = 147.0
|
||||
margin_right = 411.0
|
||||
margin_bottom = 40.0
|
||||
focus_neighbour_left = NodePath("../bots")
|
||||
focus_neighbour_top = NodePath("../../HBoxContainer/port")
|
||||
focus_neighbour_bottom = NodePath("../../../host")
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
max_value = 1.0
|
||||
step = 0.1
|
||||
tick_count = 11
|
||||
ticks_on_borders = true
|
||||
|
||||
[node name="host" type="Button" parent="menu"]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
@@ -73,7 +95,7 @@ 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_top = NodePath("../VBoxContainer/HBoxContainer2/bot_difficulty")
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "HOST"
|
||||
icon = ExtResource( 4 )
|
||||
@@ -85,11 +107,12 @@ 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_top = NodePath("../VBoxContainer/HBoxContainer2/bots")
|
||||
focus_neighbour_right = NodePath("../host")
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "BACK"
|
||||
icon = ExtResource( 5 )
|
||||
flat = true
|
||||
[connection signal="toggled" from="menu/VBoxContainer/HBoxContainer2/bots" to="." method="_on_bots_toggled"]
|
||||
[connection signal="pressed" from="menu/host" to="." method="_on_host_pressed"]
|
||||
[connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
[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
|
||||
@@ -70,6 +69,7 @@ margin_right = 407.0
|
||||
margin_bottom = 78.0
|
||||
focus_neighbour_top = NodePath("../ip")
|
||||
focus_neighbour_bottom = NodePath("../../join")
|
||||
focus_mode = 2
|
||||
max_value = 65535.0
|
||||
value = 8128.0
|
||||
align = 2
|
||||
|
||||
@@ -23,9 +23,9 @@ anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -217.5
|
||||
margin_top = -130.5
|
||||
margin_top = -136.5
|
||||
margin_right = 217.5
|
||||
margin_bottom = 130.5
|
||||
margin_bottom = 136.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
@@ -33,13 +33,13 @@ grow_vertical = 2
|
||||
margin_left = 19.0
|
||||
margin_top = 21.0
|
||||
margin_right = 418.0
|
||||
margin_bottom = 197.0
|
||||
margin_bottom = 210.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
|
||||
margin_bottom = 145.0
|
||||
|
||||
[node name="name_label" parent="menu/VBoxContainer/player_settings/VBoxContainer" index="0"]
|
||||
margin_right = 399.0
|
||||
@@ -61,19 +61,38 @@ margin_top = 103.0
|
||||
margin_right = 399.0
|
||||
margin_bottom = 136.0
|
||||
focus_neighbour_top = NodePath("../name")
|
||||
focus_neighbour_bottom = NodePath("../../../bots")
|
||||
focus_neighbour_bottom = NodePath("../../../HBoxContainer/bots")
|
||||
|
||||
[node name="bots" type="CheckButton" parent="menu/VBoxContainer"]
|
||||
margin_top = 136.0
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="menu/VBoxContainer"]
|
||||
margin_top = 149.0
|
||||
margin_right = 399.0
|
||||
margin_bottom = 189.0
|
||||
|
||||
[node name="bots" type="CheckButton" parent="menu/VBoxContainer/HBoxContainer"]
|
||||
margin_right = 143.0
|
||||
margin_bottom = 176.0
|
||||
focus_neighbour_top = NodePath("../player_settings/VBoxContainer/color")
|
||||
focus_neighbour_bottom = NodePath("../../start")
|
||||
margin_bottom = 40.0
|
||||
focus_neighbour_top = NodePath("../../player_settings/VBoxContainer/color")
|
||||
focus_neighbour_right = NodePath("../bot_difficulty")
|
||||
focus_neighbour_bottom = NodePath("../../../back")
|
||||
size_flags_horizontal = 0
|
||||
pressed = true
|
||||
text = "BOTS"
|
||||
flat = true
|
||||
|
||||
[node name="bot_difficulty" type="HSlider" parent="menu/VBoxContainer/HBoxContainer"]
|
||||
margin_left = 147.0
|
||||
margin_right = 399.0
|
||||
margin_bottom = 40.0
|
||||
focus_neighbour_left = NodePath("../bots")
|
||||
focus_neighbour_top = NodePath("../../player_settings/VBoxContainer/color")
|
||||
focus_neighbour_bottom = NodePath("../../../start")
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
max_value = 1.0
|
||||
step = 0.1
|
||||
tick_count = 11
|
||||
ticks_on_borders = true
|
||||
|
||||
[node name="start" type="Button" parent="menu"]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
@@ -84,7 +103,7 @@ 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")
|
||||
focus_neighbour_top = NodePath("../VBoxContainer/HBoxContainer/bot_difficulty")
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
text = "START_GAME"
|
||||
icon = ExtResource( 5 )
|
||||
@@ -96,12 +115,13 @@ 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_top = NodePath("../VBoxContainer/HBoxContainer/bots")
|
||||
focus_neighbour_right = NodePath("../start")
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
text = "BACK"
|
||||
icon = ExtResource( 6 )
|
||||
flat = true
|
||||
[connection signal="toggled" from="menu/VBoxContainer/HBoxContainer/bots" to="." method="_on_bots_toggled"]
|
||||
[connection signal="pressed" from="menu/start" to="." method="_on_start_pressed"]
|
||||
[connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
[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
|
||||
@@ -80,13 +79,14 @@ 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="version" type="Label" parent="."]
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = -27.0
|
||||
margin_right = 40.0
|
||||
text = "v.0.0.3"
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
[node name="info" type="Button" parent="."]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
@@ -95,8 +95,21 @@ 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"]
|
||||
|
||||
[node name="info_popup" type="WindowDialog" parent="."]
|
||||
margin_left = 805.0
|
||||
margin_top = 407.5
|
||||
margin_right = 853.0
|
||||
margin_bottom = 447.5
|
||||
|
||||
[node name="error_dialog" type="AcceptDialog" parent="."]
|
||||
margin_right = 324.0
|
||||
margin_bottom = 84.0
|
||||
window_title = "ALERT"
|
||||
dialog_text = "Server disconnected!"
|
||||
[connection signal="pressed" from="menu/VBoxContainer/multiplayer" to="." method="_on_online_pressed"]
|
||||
[connection signal="pressed" from="menu/VBoxContainer/multiplayer" to="." method="_on_multiplayer_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"]
|
||||
[connection signal="pressed" from="info" to="." method="_on_info_pressed"]
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
[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
|
||||
@@ -57,13 +56,27 @@ size_flags_horizontal = 3
|
||||
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")
|
||||
focus_neighbour_right = NodePath("../bot_difficulty")
|
||||
focus_neighbour_bottom = NodePath("../../back")
|
||||
size_flags_horizontal = 0
|
||||
text = "BOTS"
|
||||
|
||||
[node name="bot_difficulty" type="HSlider" parent="menu/GridContainer"]
|
||||
margin_left = 166.0
|
||||
margin_top = 41.0
|
||||
margin_right = 572.0
|
||||
margin_bottom = 81.0
|
||||
focus_neighbour_left = NodePath("../bots")
|
||||
focus_neighbour_top = NodePath("../name")
|
||||
focus_neighbour_bottom = NodePath("../../create")
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
max_value = 1.0
|
||||
step = 0.1
|
||||
tick_count = 11
|
||||
ticks_on_borders = true
|
||||
|
||||
[node name="create" type="Button" parent="menu"]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
@@ -76,8 +89,7 @@ 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")
|
||||
focus_neighbour_top = NodePath("../GridContainer/bot_difficulty")
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "CREATE_GAME"
|
||||
icon = ExtResource( 4 )
|
||||
@@ -96,5 +108,6 @@ text = "Back"
|
||||
icon = ExtResource( 5 )
|
||||
flat = true
|
||||
[connection signal="text_changed" from="menu/GridContainer/name" to="." method="_on_name_text_changed"]
|
||||
[connection signal="toggled" from="menu/GridContainer/bots" to="." method="_on_bots_toggled"]
|
||||
[connection signal="pressed" from="menu/create" to="." method="_on_create_pressed"]
|
||||
[connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
[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"]
|
||||
[node name="settings_controls_menu" type="Tabs"]
|
||||
margin_left = 12.0
|
||||
margin_top = 8.0
|
||||
margin_right = 858.0
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/menus/settings_game_menu.gd" type="Script" id=1]
|
||||
[ext_resource path="res://scenes/menus/SettingsPlayerMenu.tscn" type="PackedScene" id=2]
|
||||
|
||||
[node name="settings_game_menu" type="Tabs"]
|
||||
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
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="."]
|
||||
margin_left = 9.0
|
||||
margin_top = 10.0
|
||||
margin_right = 416.0
|
||||
margin_bottom = 202.0
|
||||
|
||||
[node name="settings_player" parent="GridContainer" instance=ExtResource( 2 )]
|
||||
margin_left = 0.0
|
||||
margin_top = 0.0
|
||||
margin_right = 407.0
|
||||
margin_bottom = 148.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="GridContainer"]
|
||||
margin_top = 152.0
|
||||
margin_right = 407.0
|
||||
margin_bottom = 192.0
|
||||
|
||||
[node name="bots" type="CheckButton" parent="GridContainer/HBoxContainer"]
|
||||
margin_right = 109.0
|
||||
margin_bottom = 40.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="bot_difficulty" type="HSlider" parent="GridContainer/HBoxContainer"]
|
||||
margin_left = 113.0
|
||||
margin_right = 407.0
|
||||
margin_bottom = 40.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
max_value = 1.0
|
||||
step = 0.1
|
||||
tick_count = 11
|
||||
ticks_on_borders = true
|
||||
@@ -0,0 +1,44 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/menus/settings_graphics_menu.gd" type="Script" id=1]
|
||||
|
||||
[node name="settings_graphics_menu" type="Tabs"]
|
||||
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
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
|
||||
[node name="resolution" type="OptionButton" parent="VBoxContainer"]
|
||||
margin_right = 192.0
|
||||
margin_bottom = 20.0
|
||||
|
||||
[node name="fullscreen" type="CheckButton" parent="VBoxContainer"]
|
||||
margin_top = 24.0
|
||||
margin_right = 192.0
|
||||
margin_bottom = 64.0
|
||||
pressed = true
|
||||
text = "FULLSCREEN"
|
||||
|
||||
[node name="light" type="CheckButton" parent="VBoxContainer"]
|
||||
margin_top = 68.0
|
||||
margin_right = 192.0
|
||||
margin_bottom = 108.0
|
||||
text = "LIGHT"
|
||||
|
||||
[node name="shadows" type="CheckButton" parent="VBoxContainer"]
|
||||
margin_top = 112.0
|
||||
margin_right = 192.0
|
||||
margin_bottom = 152.0
|
||||
disabled = true
|
||||
text = "SHADOWS"
|
||||
[connection signal="toggled" from="VBoxContainer/light" to="." method="_on_light_toggled"]
|
||||
+12
-184
@@ -1,12 +1,14 @@
|
||||
[gd_scene load_steps=8 format=2]
|
||||
[gd_scene load_steps=10 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/SettingsGameMenu.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]
|
||||
[ext_resource path="res://scenes/menus/SettingsGraphicsMenu.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://scenes/menus/SettingsSystemMenu.tscn" type="PackedScene" id=7]
|
||||
[ext_resource path="res://assets/icons/checkmark.png" type="Texture" id=8]
|
||||
[ext_resource path="res://assets/icons/save.png" type="Texture" id=9]
|
||||
|
||||
[node name="settings_menu" type="Control"]
|
||||
anchor_right = 1.0
|
||||
@@ -40,65 +42,9 @@ 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="game" parent="menu/tabs" instance=ExtResource( 4 )]
|
||||
|
||||
[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
|
||||
[node name="controls" parent="menu/tabs" instance=ExtResource( 5 )]
|
||||
visible = false
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
@@ -106,125 +52,14 @@ 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"]
|
||||
[node name="graphics" parent="menu/tabs" instance=ExtResource( 6 )]
|
||||
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
|
||||
[node name="system" parent="menu/tabs" instance=ExtResource( 7 )]
|
||||
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
|
||||
@@ -248,7 +83,7 @@ focus_neighbour_right = NodePath("../save")
|
||||
size_flags_horizontal = 10
|
||||
size_flags_vertical = 10
|
||||
text = "APPLY"
|
||||
icon = ExtResource( 6 )
|
||||
icon = ExtResource( 8 )
|
||||
flat = true
|
||||
align = 0
|
||||
|
||||
@@ -263,17 +98,10 @@ focus_neighbour_top = NodePath("../../tabs/game")
|
||||
size_flags_horizontal = 10
|
||||
size_flags_vertical = 10
|
||||
text = "SAVE"
|
||||
icon = ExtResource( 7 )
|
||||
icon = ExtResource( 9 )
|
||||
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"]
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
[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
|
||||
|
||||
@@ -1,47 +1,62 @@
|
||||
[gd_scene format=2]
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[node name="GridContainer" type="GridContainer"]
|
||||
[ext_resource path="res://scripts/menus/settings_system_menu.gd" type="Script" id=1]
|
||||
|
||||
[node name="system_settings_menu" type="Tabs"]
|
||||
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
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="."]
|
||||
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="."]
|
||||
[node name="locale_label" type="Label" parent="GridContainer"]
|
||||
margin_right = 88.0
|
||||
margin_bottom = 14.0
|
||||
text = "LOCALE"
|
||||
valign = 1
|
||||
|
||||
[node name="locales" type="ItemList" parent="."]
|
||||
[node name="locales" type="ItemList" parent="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="."]
|
||||
[node name="server_addr_label" type="Label" parent="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="."]
|
||||
[node name="server_addr" type="LineEdit" parent="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="."]
|
||||
[node name="api_addr_label" type="Label" parent="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="."]
|
||||
[node name="api_addr" type="LineEdit" parent="GridContainer"]
|
||||
margin_left = 92.0
|
||||
margin_top = 46.0
|
||||
margin_right = 895.0
|
||||
margin_bottom = 70.0
|
||||
[connection signal="tree_exiting" from="." to="." method="_on_system_settings_menu_tree_exiting"]
|
||||
[connection signal="item_selected" from="GridContainer/locales" to="." method="_on_locales_item_selected"]
|
||||
|
||||
Reference in New Issue
Block a user