init public repo

This commit is contained in:
Lurkars
2019-07-23 19:49:04 +02:00
commit d6a3a59d2d
446 changed files with 185897 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=1]
[ext_resource path="res://assets/icons/return.png" type="Texture" id=2]
[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
[node name="back" type="Button" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
margin_top = -56.0
margin_right = 132.0
custom_fonts/font = ExtResource( 1 )
text = "BACK"
icon = ExtResource( 2 )
flat = true
+95
View File
@@ -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.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="GridContainer" type="GridContainer" parent="menu"]
margin_left = 16.0
margin_top = 12.0
margin_right = 429.0
margin_bottom = 52.0
columns = 3
[node name="port_label" type="Label" parent="menu/GridContainer"]
margin_top = 6.0
margin_right = 65.0
margin_bottom = 33.0
text = "PORT"
[node name="port" type="SpinBox" parent="menu/GridContainer"]
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/GridContainer"]
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"]
+106
View File
@@ -0,0 +1,106 @@
[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.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"]
+69
View File
@@ -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.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="GridContainer" type="GridContainer" parent="menu"]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="resume" type="Button" parent="menu/GridContainer"]
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/GridContainer"]
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/GridContainer"]
margin_top = 136.0
margin_right = 310.0
margin_bottom = 200.0
focus_neighbour_top = NodePath("../settings")
focus_neighbour_bottom = NodePath(".")
size_flags_horizontal = 3
size_flags_vertical = 3
text = "END_GAME"
icon = ExtResource( 5 )
flat = true
[connection signal="pressed" from="menu/GridContainer/resume" to="." method="_on_resume_pressed"]
[connection signal="pressed" from="menu/GridContainer/settings" to="." method="_on_settings_pressed"]
[connection signal="pressed" from="menu/GridContainer/end" to="." method="_on_end_pressed"]
+147
View File
@@ -0,0 +1,147 @@
[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.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="GridContainer" parent="menu"]
margin_left = 14.0
margin_top = 12.0
margin_right = 940.0
margin_bottom = 52.0
columns = 2
[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"]
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 )]
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"]
+108
View File
@@ -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="GridContainer" type="GridContainer" parent="menu"]
margin_left = 19.0
margin_top = 21.0
margin_right = 418.0
margin_bottom = 197.0
[node name="player_settings" parent="menu/GridContainer" 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/GridContainer/player_settings/GridContainer" index="0"]
margin_right = 399.0
margin_bottom = 27.0
[node name="name" parent="menu/GridContainer/player_settings/GridContainer" 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/GridContainer/player_settings/GridContainer" index="2"]
margin_top = 72.0
margin_right = 399.0
margin_bottom = 99.0
[node name="color" parent="menu/GridContainer/player_settings/GridContainer" 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/GridContainer"]
margin_top = 136.0
margin_right = 143.0
margin_bottom = 176.0
focus_neighbour_top = NodePath("../player_settings/GridContainer/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("../GridContainer/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("../GridContainer/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/GridContainer/player_settings"]
+90
View File
@@ -0,0 +1,90 @@
[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/main.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]
[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="GridContainer" type="GridContainer" parent="menu"]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="multiplayer" type="Button" parent="menu/GridContainer"]
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/GridContainer"]
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/GridContainer"]
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/GridContainer"]
margin_top = 201.0
margin_right = 310.0
margin_bottom = 264.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!"
[connection signal="pressed" from="menu/GridContainer/multiplayer" to="." method="_on_multiplayer_pressed"]
[connection signal="pressed" from="menu/GridContainer/multiplayer" to="." method="_on_online_pressed"]
[connection signal="pressed" from="menu/GridContainer/practice" to="." method="_on_practice_pressed"]
[connection signal="pressed" from="menu/GridContainer/settings" to="." method="_on_settings_pressed"]
[connection signal="pressed" from="menu/GridContainer/quit" to="." method="_on_quit_pressed"]
+159
View File
@@ -0,0 +1,159 @@
[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.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="top_bar" type="GridContainer" parent="menu"]
anchor_right = 1.0
margin_bottom = 56.0
columns = 3
[node name="direct_host" type="Button" parent="menu/top_bar"]
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/top_bar"]
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/top_bar"]
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="GridContainer" 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
columns = 3
[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/top_bar/direct_host" to="." method="_on_direct_host_pressed"]
[connection signal="pressed" from="menu/top_bar/direct_join" to="." method="_on_direct_join_pressed"]
[connection signal="toggled" from="menu/top_bar/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"]
+99
View File
@@ -0,0 +1,99 @@
[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.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 = -217.5
margin_top = -68.5
margin_right = 217.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 = 427.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 = 415.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"]
+189
View File
@@ -0,0 +1,189 @@
[gd_scene load_steps=20 format=2]
[ext_resource path="res://scripts/menus/settings_controls.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="key_dialog" type="ConfirmationDialog" parent="."]
margin_left = 18.0
margin_top = 16.0
margin_right = 311.0
margin_bottom = 100.0
popup_exclusive = true
window_title = ""
dialog_text = "Press any key..."
[node name="ScrollContainer" type="ScrollContainer" parent="."]
editor/display_folded = true
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="."]
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 )
+156
View File
@@ -0,0 +1,156 @@
[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/settings.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/save.png" type="Texture" id=6]
[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="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
size_flags_horizontal = 3
size_flags_vertical = 3
tab_align = 0
[node name="game" type="Tabs" parent="menu/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
[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/GridContainer" index="0"]
margin_right = 407.0
margin_bottom = 27.0
[node name="name" parent="menu/tabs/game/GridContainer/settings_player/GridContainer" index="1"]
margin_top = 31.0
margin_right = 407.0
margin_bottom = 68.0
[node name="color_label" parent="menu/tabs/game/GridContainer/settings_player/GridContainer" index="2"]
margin_top = 72.0
margin_right = 407.0
margin_bottom = 99.0
[node name="color" parent="menu/tabs/game/GridContainer/settings_player/GridContainer" index="3"]
margin_top = 103.0
margin_right = 407.0
margin_bottom = 136.0
[node name="bots" type="CheckButton" parent="menu/tabs/game/GridContainer"]
margin_top = 150.0
margin_right = 143.0
margin_bottom = 190.0
size_flags_horizontal = 0
size_flags_vertical = 0
text = "Bots"
[node name="controls" 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
[node name="settings_controls" parent="menu/tabs/controls" instance=ExtResource( 5 )]
[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
[node name="system" 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
[node name="GridContainer" type="GridContainer" parent="menu/tabs/system"]
margin_left = 12.0
margin_top = 8.0
margin_right = 476.0
margin_bottom = 124.0
columns = 2
[node name="locale_label" type="Label" parent="menu/tabs/system/GridContainer"]
margin_right = 102.0
margin_bottom = 27.0
text = "LOCALE"
valign = 1
[node name="locales" type="ItemList" parent="menu/tabs/system/GridContainer"]
margin_left = 106.0
margin_right = 464.0
margin_bottom = 27.0
size_flags_horizontal = 3
auto_height = true
[node name="save" type="Button" parent="menu"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -147.0
margin_top = -56.0
grow_horizontal = 0
grow_vertical = 0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "SAVE"
icon = ExtResource( 6 )
flat = true
[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="visibility_changed" from="menu/tabs/system/GridContainer/locales" to="." method="_init_locales"]
[connection signal="pressed" from="menu/save" to="." method="_on_save_pressed"]
[editable path="menu"]
[editable path="menu/tabs/game/GridContainer/settings_player"]
[editable path="menu/tabs/controls/settings_controls"]
+39
View File
@@ -0,0 +1,39 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://scripts/menus/settings_player.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="GridContainer" type="GridContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="name_label" type="Label" parent="GridContainer"]
margin_right = 365.0
margin_bottom = 14.0
text = "PLAYER_NAME"
[node name="name" type="LineEdit" parent="GridContainer"]
margin_top = 18.0
margin_right = 365.0
margin_bottom = 42.0
size_flags_horizontal = 3
[node name="color_label" type="Label" parent="GridContainer"]
margin_top = 46.0
margin_right = 365.0
margin_bottom = 60.0
text = "PLAYER_COLOR"
[node name="color" type="ColorPickerButton" parent="GridContainer"]
margin_top = 64.0
margin_right = 365.0
margin_bottom = 84.0
size_flags_horizontal = 3