Swarm/Game.tscn
2025-02-26 23:27:07 +01:00

749 lines
27 KiB
Text

[gd_scene load_steps=32 format=3 uid="uid://bx0bbrwdr0h40"]
[ext_resource type="Script" uid="uid://cu2lheqsdppkp" path="res://Game.gd" id="1_dgt1j"]
[ext_resource type="Script" uid="uid://dkiy6njslvsud" path="res://CameraPivot.gd" id="2_71xp1"]
[ext_resource type="Script" uid="uid://3bcjk4gegklv" path="res://HexGrid3D/HexGrid3D.gd" id="2_suxca"]
[ext_resource type="Script" uid="uid://dpnbbkfuama6p" path="res://GameEndChecker.gd" id="2_ufkw3"]
[ext_resource type="Material" uid="uid://dv2oo7hlc5nyy" path="res://Testbed/Table.tres" id="5_u4p4p"]
[ext_resource type="Script" uid="uid://dc6l065gaaifu" path="res://WebLightChecker.gd" id="6_41m5i"]
[ext_resource type="Script" uid="uid://dyikyqxr4bflg" path="res://UI/BuildMenu.gd" id="7_1oc55"]
[ext_resource type="Script" uid="uid://ehiq0b0tlcgu" path="res://WorldEnvSettings.gd" id="7_w8wx1"]
[ext_resource type="Script" uid="uid://cm0d6ct61nn30" path="res://Table.gd" id="8_ys5y3"]
[ext_resource type="Texture2D" uid="uid://d2i5vboeyq8qx" path="res://UI/hex_white.svg" id="11_cl0he"]
[ext_resource type="Script" uid="uid://yev2hctcnbt4" path="res://GameOverMenu.gd" id="11_ffmss"]
[ext_resource type="Script" uid="uid://b14cpuqs6g86t" path="res://MenuButtons.gd" id="11_urihv"]
[ext_resource type="Script" uid="uid://cwmuu385b53nw" path="res://TurnTexture.gd" id="12_kjwp8"]
[ext_resource type="Script" uid="uid://damrrrph3vfwm" path="res://UI/InputInfo.gd" id="13_6sp26"]
[ext_resource type="Script" uid="uid://go64dt8gl8gy" path="res://addons/awesome_input_icons/classes/InputIconTextureRect.gd" id="13_mbmni"]
[ext_resource type="Texture2D" uid="uid://20wqrthwoqr0" path="res://addons/awesome_input_icons/assets/keyboard and mouse vector/mouse_move.svg" id="14_t8b21"]
[ext_resource type="Script" uid="uid://1qbrnymtbat1" path="res://UI/ActionMoveMenu.gd" id="15_gc6p8"]
[ext_resource type="Script" uid="uid://cmx00rywwt47c" path="res://DrawInfo.gd" id="16_enu5g"]
[ext_resource type="Script" uid="uid://dv3e8l0ecyyke" path="res://UI/GameSettings.gd" id="16_uww8u"]
[ext_resource type="Shader" uid="uid://dlplsrexke1rc" path="res://Testbed/FilmGrain.gdshader" id="20_7ywci"]
[sub_resource type="PlaneMesh" id="PlaneMesh_cu5ir"]
material = ExtResource("5_u4p4p")
size = Vector2(50, 50)
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_dv0dt"]
[sub_resource type="Sky" id="Sky_v4pi7"]
sky_material = SubResource("ProceduralSkyMaterial_dv0dt")
[sub_resource type="Environment" id="Environment_xoohw"]
background_mode = 1
sky = SubResource("Sky_v4pi7")
ambient_light_source = 2
ambient_light_color = Color(0.337255, 0.337255, 0.337255, 1)
tonemap_mode = 1
ssao_enabled = true
fog_light_color = Color(0, 0, 0, 1)
fog_density = 0.3
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_41x5h"]
dof_blur_far_distance = 15.0
dof_blur_far_transition = 10.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_haxul"]
shader = ExtResource("20_7ywci")
shader_parameter/grain_amount = 0.11
shader_parameter/grain_size = 1.0
shader_parameter/animate = true
[sub_resource type="Gradient" id="Gradient_pctcs"]
interpolation_mode = 2
offsets = PackedFloat32Array(0, 0.839465)
colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 0)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_tjcjh"]
gradient = SubResource("Gradient_pctcs")
width = 1
height = 256
fill_from = Vector2(1, 1)
fill_to = Vector2(1, 0.1)
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_sfja1"]
texture = SubResource("GradientTexture2D_tjcjh")
axis_stretch_vertical = 2
modulate_color = Color(1, 1, 1, 0.639216)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_74vw4"]
bg_color = Color(0, 0, 0, 0.341176)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_51vcp"]
bg_color = Color(0.345098, 0.345098, 0.345098, 1)
[node name="Game" type="Node3D"]
script = ExtResource("1_dgt1j")
[node name="CameraPivot" type="Node3D" parent="."]
script = ExtResource("2_71xp1")
[node name="AzimuthPivot" type="Node3D" parent="CameraPivot"]
transform = Transform3D(1, 0, 0, 0, 0.642788, 0.766045, 0, -0.766045, 0.642788, 0, 0, 0)
[node name="SpringArm3D" type="SpringArm3D" parent="CameraPivot/AzimuthPivot"]
collision_mask = 0
spring_length = 7.0
[node name="Camera" type="Camera3D" parent="CameraPivot/AzimuthPivot/SpringArm3D"]
current = true
[node name="GameEndChecker" type="Node" parent="."]
script = ExtResource("2_ufkw3")
[node name="HexGrid" type="Node3D" parent="."]
script = ExtResource("2_suxca")
[node name="PlacementVisualizer" type="Node3D" parent="HexGrid"]
[node name="Tiles" type="Node3D" parent="HexGrid"]
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("PlaneMesh_cu5ir")
script = ExtResource("8_ys5y3")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_xoohw")
camera_attributes = SubResource("CameraAttributesPractical_41x5h")
script = ExtResource("7_w8wx1")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.843961, -0.46784, 0.262404, -0.0775016, 0.377705, 0.922677, -0.530777, -0.79904, 0.28251, 0.262159, 3.27869, -0.104568)
shadow_enabled = true
script = ExtResource("6_41m5i")
[node name="ColorRect" type="ColorRect" parent="."]
visible = false
material = SubResource("ShaderMaterial_haxul")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="BuildMenu" type="Control" parent="."]
layout_mode = 3
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 0
mouse_filter = 2
script = ExtResource("7_1oc55")
[node name="PanelContainer" type="PanelContainer" parent="BuildMenu"]
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBoxTexture_sfja1")
[node name="MarginContainer" type="MarginContainer" parent="BuildMenu/PanelContainer"]
layout_mode = 2
mouse_filter = 2
theme_override_constants/margin_left = 15
theme_override_constants/margin_top = 15
theme_override_constants/margin_right = 15
theme_override_constants/margin_bottom = 15
[node name="VBoxContainer" type="VBoxContainer" parent="BuildMenu/PanelContainer/MarginContainer"]
layout_mode = 2
mouse_filter = 2
[node name="HBoxContainer" type="HBoxContainer" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
mouse_filter = 2
[node name="Label" type="Label" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_vertical = 0
text = "You"
[node name="PanelContainer" type="PanelContainer" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
self_modulate = Color(1, 1, 1, 0)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 0
mouse_filter = 2
[node name="Label2" type="Label" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_vertical = 0
text = "Opponent"
horizontal_alignment = 2
[node name="HBoxContainer2" type="HBoxContainer" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
mouse_filter = 2
alignment = 1
[node name="LocalPlayerInsects" type="HBoxContainer" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
layout_mode = 2
mouse_filter = 0
[node name="PanelContainer2" type="PanelContainer" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
modulate = Color(1, 1, 1, 0)
layout_mode = 2
size_flags_horizontal = 3
mouse_filter = 2
[node name="Control" type="Control" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
mouse_filter = 2
[node name="Control" type="Control" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/Control"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -64.0
offset_bottom = -64.0
grow_horizontal = 2
grow_vertical = 2
[node name="Control2" type="Control" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/Control/Control"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.1, 0.1)
mouse_filter = 2
script = ExtResource("12_kjwp8")
[node name="TextureRect" type="TextureRect" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2/Control/Control/Control2"]
texture_filter = 6
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -256.0
offset_top = -256.0
offset_right = 256.0
offset_bottom = 256.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("11_cl0he")
[node name="PanelContainer" type="PanelContainer" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
modulate = Color(1, 1, 1, 0)
layout_mode = 2
size_flags_horizontal = 3
mouse_filter = 2
[node name="RemotePlayerInsects" type="HBoxContainer" parent="BuildMenu/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
layout_mode = 2
mouse_filter = 0
[node name="CurrentTurnDisplay" type="Control" parent="."]
layout_mode = 3
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_top = 50.0
offset_bottom = 50.0
grow_horizontal = 2
size_flags_horizontal = 4
size_flags_vertical = 0
mouse_filter = 2
[node name="InputInfo" type="Control" parent="."]
layout_mode = 3
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -40.0
offset_bottom = 40.0
grow_horizontal = 0
size_flags_horizontal = 8
size_flags_vertical = 0
script = ExtResource("13_6sp26")
[node name="PanelContainer" type="PanelContainer" parent="InputInfo"]
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -121.0
offset_bottom = 77.0
grow_horizontal = 0
[node name="MarginContainer" type="MarginContainer" parent="InputInfo/PanelContainer"]
layout_mode = 2
theme_override_constants/margin_left = 15
theme_override_constants/margin_top = 15
theme_override_constants/margin_right = 15
theme_override_constants/margin_bottom = 15
[node name="VBoxContainer" type="VBoxContainer" parent="InputInfo/PanelContainer/MarginContainer"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="InputIconTextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
expand_mode = 3
script = ExtResource("13_mbmni")
action_name = &"camera_up"
[node name="InputIconTextureRect2" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
expand_mode = 3
script = ExtResource("13_mbmni")
action_name = &"camera_left"
[node name="InputIconTextureRect3" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
expand_mode = 3
script = ExtResource("13_mbmni")
action_name = &"camera_down"
[node name="InputIconTextureRect4" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
expand_mode = 3
script = ExtResource("13_mbmni")
action_name = &"camera_right"
[node name="Label" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 20
text = "Move camera"
horizontal_alignment = 2
[node name="HBoxContainer2" type="HBoxContainer" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="InputIconTextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
expand_mode = 3
script = ExtResource("13_mbmni")
action_name = &"rotate_camera"
[node name="Label2" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
layout_mode = 2
theme_override_font_sizes/font_size = 20
text = "+"
[node name="TextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
texture = ExtResource("14_t8b21")
expand_mode = 3
[node name="Label" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 20
text = "Rotate camera"
horizontal_alignment = 2
[node name="HBoxContainer3" type="HBoxContainer" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="InputIconTextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer3"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
expand_mode = 3
script = ExtResource("13_mbmni")
action_name = &"zoom_camera_in"
[node name="InputIconTextureRect2" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer3"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
expand_mode = 3
script = ExtResource("13_mbmni")
action_name = &"zoom_camera_out"
[node name="Label" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer3"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 20
text = "Zoom camera"
horizontal_alignment = 2
[node name="HSeparator" type="HSeparator" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="HBoxContainer4" type="HBoxContainer" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="InputIconTextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer4"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
expand_mode = 3
script = ExtResource("13_mbmni")
action_name = &"select_tile"
[node name="Label" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer4"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 20
text = "Select Tile"
horizontal_alignment = 2
[node name="HBoxContainer5" type="HBoxContainer" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="InputIconTextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer5"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
expand_mode = 3
script = ExtResource("13_mbmni")
action_name = &"deselect_tile"
[node name="Label" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer5"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 20
text = "Cancel selection"
horizontal_alignment = 2
[node name="HSeparator2" type="HSeparator" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="HBoxContainer6" type="HBoxContainer" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="InputIconTextureRect" type="TextureRect" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer6"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
expand_mode = 3
script = ExtResource("13_mbmni")
action_name = &"toggle_controls"
[node name="Label" type="Label" parent="InputInfo/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer6"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 20
text = "Show/Hide controls"
horizontal_alignment = 2
[node name="MenuButtons" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
script = ExtResource("11_urihv")
[node name="VBoxContainer" type="VBoxContainer" parent="MenuButtons"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="MenuButton" type="Button" parent="MenuButtons/VBoxContainer"]
layout_mode = 2
text = "Menu"
[node name="PassRoundButton" type="Button" parent="MenuButtons/VBoxContainer"]
layout_mode = 2
text = "Pass"
[node name="SurrenderButton" type="Button" parent="MenuButtons/VBoxContainer"]
layout_mode = 2
text = "Surrender"
[node name="OfferDrawButton" type="Button" parent="MenuButtons/VBoxContainer"]
layout_mode = 2
text = "Offer Draw"
[node name="RulesButton" type="Button" parent="MenuButtons/VBoxContainer"]
layout_mode = 2
text = "Rules"
[node name="DrawInfo" type="Control" parent="."]
visible = false
layout_mode = 3
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("16_enu5g")
[node name="PanelContainer2" type="PanelContainer" parent="DrawInfo"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -620.0
offset_top = -340.0
offset_right = 620.0
offset_bottom = 340.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_74vw4")
[node name="PanelContainer" type="PanelContainer" parent="DrawInfo"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
[node name="MarginContainer" type="MarginContainer" parent="DrawInfo/PanelContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_constants/margin_left = 15
theme_override_constants/margin_top = 15
theme_override_constants/margin_right = 15
theme_override_constants/margin_bottom = 15
[node name="OfferReceived" type="VBoxContainer" parent="DrawInfo/PanelContainer/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="Label" type="Label" parent="DrawInfo/PanelContainer/MarginContainer/OfferReceived"]
layout_mode = 2
text = "Your opponent wants to
call the game a draw.
Accept?
"
[node name="HBoxContainer" type="HBoxContainer" parent="DrawInfo/PanelContainer/MarginContainer/OfferReceived"]
layout_mode = 2
[node name="YesButton" type="Button" parent="DrawInfo/PanelContainer/MarginContainer/OfferReceived/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "YES"
[node name="NoButton" type="Button" parent="DrawInfo/PanelContainer/MarginContainer/OfferReceived/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "NO"
[node name="OfferSent" type="VBoxContainer" parent="DrawInfo/PanelContainer/MarginContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="DrawInfo/PanelContainer/MarginContainer/OfferSent"]
layout_mode = 2
text = "Draw offer sent.
Waiting for opponents decision..."
[node name="GameOverMenu" type="CanvasLayer" parent="."]
visible = false
script = ExtResource("11_ffmss")
[node name="Control" type="Control" parent="GameOverMenu"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="PanelContainer" type="PanelContainer" parent="GameOverMenu/Control"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="GameOverMenu/Control/PanelContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="Label" type="Label" parent="GameOverMenu/Control/PanelContainer/VBoxContainer"]
layout_mode = 2
text = "#WINNER#"
horizontal_alignment = 1
[node name="Button" type="Button" parent="GameOverMenu/Control/PanelContainer/VBoxContainer"]
layout_mode = 2
text = "Back to menu"
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="ActionMoveMenu" type="Control" parent="CanvasLayer"]
visible = false
layout_mode = 3
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
script = ExtResource("15_gc6p8")
[node name="PanelContainer" type="PanelContainer" parent="CanvasLayer/ActionMoveMenu"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/ActionMoveMenu/PanelContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_constants/margin_left = 15
theme_override_constants/margin_top = 15
theme_override_constants/margin_right = 15
theme_override_constants/margin_bottom = 15
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/ActionMoveMenu/PanelContainer/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="MoveButton" type="Button" parent="CanvasLayer/ActionMoveMenu/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Use action of #Name"
[node name="ActionButton" type="Button" parent="CanvasLayer/ActionMoveMenu/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Move as #Name"
[node name="HSeparator" type="HSeparator" parent="CanvasLayer/ActionMoveMenu/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="CancelButton" type="Button" parent="CanvasLayer/ActionMoveMenu/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Cancel"
[node name="GameSettings" type="CanvasLayer" parent="."]
[node name="GameSettings" type="Control" parent="GameSettings"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("16_uww8u")
[node name="PanelContainer" type="PanelContainer" parent="GameSettings/GameSettings"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_51vcp")
[node name="VBoxContainer" type="VBoxContainer" parent="GameSettings/GameSettings/PanelContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="HBoxContainer" type="HBoxContainer" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer"]
layout_mode = 2
[node name="HostColorLabel" type="Label" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "Host color"
[node name="HostColorOption" type="OptionButton" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
selected = 0
allow_reselect = true
item_count = 3
popup/item_0/text = "White"
popup/item_0/id = 0
popup/item_1/text = "Black"
popup/item_1/id = 1
popup/item_2/text = "Random"
popup/item_2/id = 2
[node name="HBoxContainer2" type="HBoxContainer" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer"]
layout_mode = 2
[node name="HostColorLabel" type="Label" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer/HBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 3
text = "Use Ladybug expansion?"
[node name="LadybugCheckbutton" type="CheckButton" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer/HBoxContainer2"]
layout_mode = 2
[node name="HBoxContainer3" type="HBoxContainer" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer"]
layout_mode = 2
[node name="HostColorLabel" type="Label" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer/HBoxContainer3"]
layout_mode = 2
size_flags_horizontal = 3
text = "Use Mosquito expansion?"
[node name="MosquitoCheckbutton" type="CheckButton" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer/HBoxContainer3"]
layout_mode = 2
[node name="HBoxContainer4" type="HBoxContainer" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer"]
layout_mode = 2
[node name="HostColorLabel" type="Label" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer/HBoxContainer4"]
layout_mode = 2
size_flags_horizontal = 3
text = "Use Pillbug expansion?"
[node name="PillbugCheckbutton" type="CheckButton" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer/HBoxContainer4"]
layout_mode = 2
[node name="StartGameButton" type="Button" parent="GameSettings/GameSettings/PanelContainer/VBoxContainer"]
layout_mode = 2
text = "Start"
[connection signal="pressed" from="MenuButtons/VBoxContainer/MenuButton" to="MenuButtons" method="_on_menu_button_pressed"]
[connection signal="pressed" from="MenuButtons/VBoxContainer/PassRoundButton" to="MenuButtons" method="_on_pass_round_button_pressed"]
[connection signal="pressed" from="MenuButtons/VBoxContainer/SurrenderButton" to="MenuButtons" method="_on_surrender_button_pressed"]
[connection signal="pressed" from="MenuButtons/VBoxContainer/OfferDrawButton" to="MenuButtons" method="_on_offer_draw_button_pressed"]
[connection signal="pressed" from="MenuButtons/VBoxContainer/RulesButton" to="MenuButtons" method="_on_rules_button_pressed"]
[connection signal="pressed" from="DrawInfo/PanelContainer/MarginContainer/OfferReceived/HBoxContainer/YesButton" to="DrawInfo" method="_on_yes_button_pressed"]
[connection signal="pressed" from="DrawInfo/PanelContainer/MarginContainer/OfferReceived/HBoxContainer/NoButton" to="DrawInfo" method="_on_no_button_pressed"]
[connection signal="pressed" from="GameOverMenu/Control/PanelContainer/VBoxContainer/Button" to="GameOverMenu" method="_on_button_pressed"]
[connection signal="pressed" from="CanvasLayer/ActionMoveMenu/PanelContainer/MarginContainer/VBoxContainer/MoveButton" to="CanvasLayer/ActionMoveMenu" method="_on_move_button_pressed"]
[connection signal="pressed" from="CanvasLayer/ActionMoveMenu/PanelContainer/MarginContainer/VBoxContainer/ActionButton" to="CanvasLayer/ActionMoveMenu" method="_on_action_button_pressed"]
[connection signal="pressed" from="CanvasLayer/ActionMoveMenu/PanelContainer/MarginContainer/VBoxContainer/CancelButton" to="CanvasLayer/ActionMoveMenu" method="_on_cancel_button_pressed"]
[connection signal="item_selected" from="GameSettings/GameSettings/PanelContainer/VBoxContainer/HBoxContainer/HostColorOption" to="GameSettings/GameSettings" method="_on_host_color_option_item_selected"]
[connection signal="toggled" from="GameSettings/GameSettings/PanelContainer/VBoxContainer/HBoxContainer2/LadybugCheckbutton" to="GameSettings/GameSettings" method="_on_ladybug_checkbutton_toggled"]
[connection signal="toggled" from="GameSettings/GameSettings/PanelContainer/VBoxContainer/HBoxContainer3/MosquitoCheckbutton" to="GameSettings/GameSettings" method="_on_mosquito_checkbutton_toggled"]
[connection signal="toggled" from="GameSettings/GameSettings/PanelContainer/VBoxContainer/HBoxContainer4/PillbugCheckbutton" to="GameSettings/GameSettings" method="_on_pillbug_checkbutton_toggled"]
[connection signal="pressed" from="GameSettings/GameSettings/PanelContainer/VBoxContainer/StartGameButton" to="GameSettings/GameSettings" method="_on_start_game_button_pressed"]