2020-05-09 12:45:05 +02:00
|
|
|
[gd_scene load_steps=4 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://Scenes/Matchmaking/Game/Camera_controller/Camera_controller.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://Scenes/Matchmaking/Game/Game_manager.gd" type="Script" id=3]
|
|
|
|
[ext_resource path="res://Scenes/Matchmaking/Game/Mouse_controller/Mouse_controller.gd" type="Script" id=4]
|
|
|
|
|
|
|
|
[node name="Game_manager" type="Spatial"]
|
|
|
|
script = ExtResource( 3 )
|
|
|
|
|
|
|
|
[node name="End_game_panel" type="Control" parent="."]
|
|
|
|
visible = false
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="End_game_panel"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_left = 1.22772
|
|
|
|
margin_right = 1.22778
|
|
|
|
color = Color( 0.156863, 0.611765, 0.160784, 0.392157 )
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="End_game_panel"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -223.5
|
|
|
|
margin_top = -89.0
|
|
|
|
margin_right = 223.5
|
|
|
|
margin_bottom = 89.0
|
|
|
|
text = "You lose"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="ColorRect2" type="ColorRect" parent="End_game_panel/Label"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
color = Color( 0, 1, 1, 0.235294 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Back_to_lobby_button" type="Button" parent="End_game_panel"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -183.0
|
|
|
|
margin_top = 135.815
|
|
|
|
margin_right = 183.0
|
|
|
|
margin_bottom = 313.815
|
|
|
|
text = "Back to lobby"
|
|
|
|
|
|
|
|
[node name="GUI" type="Control" parent="."]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
mouse_filter = 2
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Player_info" type="Control" parent="GUI"]
|
2021-01-30 09:44:49 +01:00
|
|
|
anchor_left = 1.0
|
|
|
|
anchor_right = 1.0
|
|
|
|
margin_left = -260.0
|
|
|
|
margin_bottom = 215.0
|
2020-05-09 12:45:05 +02:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="GUI/Player_info"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
color = Color( 0.831373, 0, 0, 0.137255 )
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="GUI/Player_info"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GUI/Player_info/VBoxContainer"]
|
|
|
|
margin_right = 260.0
|
|
|
|
margin_bottom = 14.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 1
|
|
|
|
text = "Oponents left:"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
|
|
|
|
[node name="Player_list" type="VBoxContainer" parent="GUI/Player_info/VBoxContainer"]
|
|
|
|
margin_top = 18.0
|
|
|
|
margin_right = 260.0
|
2021-01-30 09:44:49 +01:00
|
|
|
margin_bottom = 215.0
|
2020-05-09 12:45:05 +02:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Player_name_panel" type="Control" parent="GUI"]
|
|
|
|
margin_right = 306.0
|
|
|
|
margin_bottom = 40.0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="GUI/Player_name_panel"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Player_name_info_laabel" type="Label" parent="GUI/Player_name_panel/HBoxContainer"]
|
|
|
|
margin_right = 47.0
|
|
|
|
margin_bottom = 40.0
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "Player: "
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Player_name" type="Label" parent="GUI/Player_name_panel/HBoxContainer"]
|
|
|
|
margin_left = 51.0
|
|
|
|
margin_right = 306.0
|
|
|
|
margin_bottom = 40.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "Bob"
|
|
|
|
valign = 1
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Top_panel" type="Control" parent="GUI"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
margin_left = -960.0
|
|
|
|
margin_right = 960.0
|
|
|
|
margin_bottom = 50.0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Top_panel_container" type="HBoxContainer" parent="GUI/Top_panel"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
size_flags_horizontal = 0
|
|
|
|
size_flags_vertical = 0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Player_label" type="Label" parent="GUI/Top_panel/Top_panel_container"]
|
|
|
|
margin_right = 958.0
|
|
|
|
margin_bottom = 50.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "Turn of:"
|
|
|
|
align = 2
|
|
|
|
valign = 1
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": true
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Player_indicator" type="Label" parent="GUI/Top_panel/Top_panel_container"]
|
|
|
|
margin_left = 962.0
|
|
|
|
margin_right = 1920.0
|
|
|
|
margin_bottom = 50.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "Player 1"
|
|
|
|
valign = 1
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": true
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Bottom_left_panel" type="Control" parent="GUI"]
|
2021-01-30 09:44:49 +01:00
|
|
|
anchor_top = 1.0
|
2020-05-09 12:45:05 +02:00
|
|
|
anchor_bottom = 1.0
|
2021-01-30 09:44:49 +01:00
|
|
|
margin_top = -79.9999
|
|
|
|
margin_right = 420.0
|
2020-05-09 12:45:05 +02:00
|
|
|
__meta__ = {
|
2021-01-30 09:44:49 +01:00
|
|
|
"_edit_use_anchors_": false
|
2020-05-09 12:45:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="GUI/Bottom_left_panel"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Next_turn_button" type="Button" parent="GUI/Bottom_left_panel/VBoxContainer"]
|
|
|
|
visible = false
|
|
|
|
margin_right = 447.0
|
|
|
|
margin_bottom = 39.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
disabled = true
|
|
|
|
text = "Next turn"
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="GUI/Bottom_left_panel/VBoxContainer"]
|
2021-01-30 09:44:49 +01:00
|
|
|
margin_right = 420.0
|
|
|
|
margin_bottom = 79.0
|
2020-05-09 12:45:05 +02:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="Turn_label" type="Label" parent="GUI/Bottom_left_panel/VBoxContainer/HBoxContainer"]
|
2021-01-30 09:44:49 +01:00
|
|
|
margin_right = 208.0
|
|
|
|
margin_bottom = 79.0
|
2020-05-09 12:45:05 +02:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 7
|
|
|
|
text = "Turn:"
|
|
|
|
align = 2
|
|
|
|
valign = 1
|
|
|
|
|
|
|
|
[node name="Turn_indicator" type="Label" parent="GUI/Bottom_left_panel/VBoxContainer/HBoxContainer"]
|
2021-01-30 09:44:49 +01:00
|
|
|
margin_left = 212.0
|
|
|
|
margin_right = 420.0
|
|
|
|
margin_bottom = 79.0
|
2020-05-09 12:45:05 +02:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "1"
|
|
|
|
valign = 1
|
|
|
|
|
2021-01-30 09:44:49 +01:00
|
|
|
[node name="Bottom_right_panel2" type="Control" parent="GUI"]
|
|
|
|
anchor_left = 1.0
|
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_left = -420.0
|
|
|
|
margin_top = -79.9999
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="GUI/Bottom_right_panel2"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="GUI/Bottom_right_panel2/VBoxContainer"]
|
|
|
|
margin_right = 420.0
|
|
|
|
margin_bottom = 79.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="Blocker_power_up" type="Button" parent="GUI/Bottom_right_panel2/VBoxContainer/HBoxContainer"]
|
|
|
|
margin_right = 208.0
|
|
|
|
margin_bottom = 79.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "Blocker"
|
|
|
|
|
|
|
|
[node name="Reuse_Power_up" type="Button" parent="GUI/Bottom_right_panel2/VBoxContainer/HBoxContainer"]
|
|
|
|
margin_left = 212.0
|
|
|
|
margin_right = 420.0
|
|
|
|
margin_bottom = 79.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "Reuse Hexes"
|
|
|
|
|
|
|
|
[node name="Power_up_3" type="Button" parent="GUI/Bottom_right_panel2/VBoxContainer/HBoxContainer"]
|
|
|
|
visible = false
|
|
|
|
margin_left = 282.0
|
|
|
|
margin_right = 420.0
|
|
|
|
margin_bottom = 79.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
2020-05-09 12:45:05 +02:00
|
|
|
[node name="Menu_panel" type="Control" parent="."]
|
|
|
|
visible = false
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -382.5
|
|
|
|
margin_top = -186.0
|
|
|
|
margin_right = 382.5
|
|
|
|
margin_bottom = 186.0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Background" type="ColorRect" parent="Menu_panel"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
color = Color( 0.235294, 0.219608, 0.301961, 1 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Surrender_button" type="Button" parent="Menu_panel"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -112.5
|
|
|
|
margin_top = -77.5851
|
|
|
|
margin_right = 112.5
|
|
|
|
margin_bottom = -23.5851
|
|
|
|
text = "Surrender"
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Close" type="Button" parent="Menu_panel"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -112.5
|
|
|
|
margin_top = 35.5883
|
|
|
|
margin_right = 112.5
|
|
|
|
margin_bottom = 89.5883
|
|
|
|
text = "Close"
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Camera_base" type="Spatial" parent="."]
|
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
|
|
|
[node name="Camera" type="Camera" parent="Camera_base"]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 0.422618, 0.906308, 0, -0.906308, 0.422618, 12, 12, 12 )
|
|
|
|
|
|
|
|
[node name="Mouse_controller" type="Spatial" parent="."]
|
|
|
|
script = ExtResource( 4 )
|
|
|
|
[connection signal="tree_exited" from="." to="." method="_on_Game_manager_tree_exited"]
|
|
|
|
[connection signal="pressed" from="End_game_panel/Back_to_lobby_button" to="." method="_on_Back_to_lobby_button_pressed"]
|
|
|
|
[connection signal="pressed" from="GUI/Bottom_left_panel/VBoxContainer/Next_turn_button" to="." method="_on_Next_turn_button_pressed"]
|
2021-01-30 09:44:49 +01:00
|
|
|
[connection signal="pressed" from="GUI/Bottom_right_panel2/VBoxContainer/HBoxContainer/Blocker_power_up" to="." method="_on_Blocker_power_up_pressed"]
|
|
|
|
[connection signal="pressed" from="GUI/Bottom_right_panel2/VBoxContainer/HBoxContainer/Reuse_Power_up" to="." method="_on_Reuse_Power_up_pressed"]
|
2020-05-09 12:45:05 +02:00
|
|
|
[connection signal="pressed" from="Menu_panel/Surrender_button" to="." method="_on_Surrender_button_pressed"]
|
|
|
|
[connection signal="pressed" from="Menu_panel/Close" to="." method="_on_Close_pressed"]
|