2019-07-28 13:32:28 +02:00
|
|
|
[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
|
2019-08-07 20:29:46 +02:00
|
|
|
margin_top = -136.5
|
2019-07-28 13:32:28 +02:00
|
|
|
margin_right = 217.5
|
2019-08-07 20:29:46 +02:00
|
|
|
margin_bottom = 136.5
|
2019-07-28 13:32:28 +02:00
|
|
|
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
|
2019-08-07 20:29:46 +02:00
|
|
|
margin_bottom = 210.0
|
2019-07-28 13:32:28 +02:00
|
|
|
|
|
|
|
[node name="player_settings" parent="menu/VBoxContainer" instance=ExtResource( 3 )]
|
|
|
|
margin_left = 0.0
|
|
|
|
margin_top = 0.0
|
|
|
|
margin_right = 399.0
|
2019-08-07 20:29:46 +02:00
|
|
|
margin_bottom = 145.0
|
2019-07-28 13:32:28 +02:00
|
|
|
|
|
|
|
[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")
|
2019-08-07 20:29:46 +02:00
|
|
|
focus_neighbour_bottom = NodePath("../../../HBoxContainer/bots")
|
2019-07-28 13:32:28 +02:00
|
|
|
|
2019-08-07 20:29:46 +02:00
|
|
|
[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"]
|
2019-07-28 13:32:28 +02:00
|
|
|
margin_right = 143.0
|
2019-08-07 20:29:46 +02:00
|
|
|
margin_bottom = 40.0
|
|
|
|
focus_neighbour_top = NodePath("../../player_settings/VBoxContainer/color")
|
|
|
|
focus_neighbour_right = NodePath("../bot_difficulty")
|
|
|
|
focus_neighbour_bottom = NodePath("../../../back")
|
2019-07-28 13:32:28 +02:00
|
|
|
size_flags_horizontal = 0
|
|
|
|
pressed = true
|
|
|
|
text = "BOTS"
|
|
|
|
flat = true
|
|
|
|
|
2019-08-07 20:29:46 +02:00
|
|
|
[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
|
|
|
|
|
2019-07-28 13:32:28 +02:00
|
|
|
[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")
|
2019-08-07 20:29:46 +02:00
|
|
|
focus_neighbour_top = NodePath("../VBoxContainer/HBoxContainer/bot_difficulty")
|
2019-07-28 13:32:28 +02:00
|
|
|
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 )
|
2019-08-07 20:29:46 +02:00
|
|
|
focus_neighbour_top = NodePath("../VBoxContainer/HBoxContainer/bots")
|
2019-07-28 13:32:28 +02:00
|
|
|
focus_neighbour_right = NodePath("../start")
|
|
|
|
custom_fonts/font = ExtResource( 4 )
|
|
|
|
text = "BACK"
|
|
|
|
icon = ExtResource( 6 )
|
|
|
|
flat = true
|
2019-08-07 20:29:46 +02:00
|
|
|
[connection signal="toggled" from="menu/VBoxContainer/HBoxContainer/bots" to="." method="_on_bots_toggled"]
|
2019-07-28 13:32:28 +02:00
|
|
|
[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"]
|