Implemented Pillbug/Mosquito actions. Implemented pre-game settings. TODO: Game settings + bug testing
This commit is contained in:
parent
397082f966
commit
2343638749
15 changed files with 477 additions and 70 deletions
93
Game.tscn
93
Game.tscn
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=24 format=3 uid="uid://bx0bbrwdr0h40"]
|
||||
[gd_scene load_steps=26 format=3 uid="uid://bx0bbrwdr0h40"]
|
||||
|
||||
[ext_resource type="Script" path="res://Game.gd" id="1_dgt1j"]
|
||||
[ext_resource type="Script" path="res://CameraPivot.gd" id="2_71xp1"]
|
||||
|
|
@ -15,6 +15,7 @@
|
|||
[ext_resource type="Script" 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" path="res://UI/ActionMoveMenu.gd" id="15_gc6p8"]
|
||||
[ext_resource type="Script" path="res://UI/GameSettings.gd" id="16_uww8u"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_cu5ir"]
|
||||
material = ExtResource("5_u4p4p")
|
||||
|
|
@ -56,6 +57,9 @@ texture = SubResource("GradientTexture2D_tjcjh")
|
|||
axis_stretch_vertical = 2
|
||||
modulate_color = Color(1, 1, 1, 0.639216)
|
||||
|
||||
[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")
|
||||
|
||||
|
|
@ -532,6 +536,88 @@ layout_mode = 2
|
|||
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
|
||||
item_count = 3
|
||||
selected = 0
|
||||
allow_reselect = true
|
||||
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"]
|
||||
|
|
@ -541,3 +627,8 @@ text = "Cancel"
|
|||
[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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue