forked from Nekojimi/JackIt
108 lines
3.8 KiB
Plaintext
108 lines
3.8 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://bh8rlvqu8hqg4"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/test_game_manager.gd" id="1_64lr4"]
|
|
[ext_resource type="Theme" uid="uid://c7yliu4oaeteg" path="res://control_theme.tres" id="1_ftsvc"]
|
|
[ext_resource type="Script" path="res://scripts/prompt.gd" id="2_4k770"]
|
|
[ext_resource type="Script" path="res://scripts/players.gd" id="2_vi7mu"]
|
|
[ext_resource type="Script" path="res://scripts/proxy_delegate.gd" id="4_6u1mq"]
|
|
[ext_resource type="PackedScene" uid="uid://i0ul8rvwoy7a" path="res://objects/test/test_bot_controls.tscn" id="6_5frxy"]
|
|
[ext_resource type="Script" path="res://scripts/game_state.gd" id="7_mwujn"]
|
|
|
|
[sub_resource type="Resource" id="Resource_f751x"]
|
|
script = ExtResource("2_4k770")
|
|
text = "Choose who to vote to execute:"
|
|
explaination = ""
|
|
type = 5
|
|
options = Array[String]([])
|
|
interruptable = false
|
|
|
|
[sub_resource type="Resource" id="Resource_wm7rl"]
|
|
script = ExtResource("2_4k770")
|
|
text = "Choose a night action to use:"
|
|
explaination = ""
|
|
type = 3
|
|
options = Array[String]([])
|
|
interruptable = false
|
|
|
|
[node name="TestScene" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme = ExtResource("1_ftsvc")
|
|
|
|
[node name="GameState" type="Node" parent="."]
|
|
script = ExtResource("7_mwujn")
|
|
|
|
[node name="Players" type="Node" parent="GameState"]
|
|
script = ExtResource("2_vi7mu")
|
|
bot_count = 0
|
|
bot_test_mode = true
|
|
|
|
[node name="TestGameManager" type="Node" parent="."]
|
|
script = ExtResource("1_64lr4")
|
|
prompt_force_vote = SubResource("Resource_f751x")
|
|
prompt_choose_night_action = SubResource("Resource_wm7rl")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Menu" type="HBoxContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="RandomiseTeamsButton" type="Button" parent="VBoxContainer/Menu"]
|
|
layout_mode = 2
|
|
text = "Random Teams"
|
|
|
|
[node name="RandomiseRolesButton" type="Button" parent="VBoxContainer/Menu"]
|
|
layout_mode = 2
|
|
text = "Random Roles"
|
|
|
|
[node name="PlayerCountSpinBox" type="SpinBox" parent="VBoxContainer/Menu"]
|
|
layout_mode = 2
|
|
min_value = 1.0
|
|
value = 1.0
|
|
|
|
[node name="SimulateButton" type="Button" parent="VBoxContainer/Menu"]
|
|
layout_mode = 2
|
|
text = "Simulate!"
|
|
|
|
[node name="SimulateButton3" type="Button" parent="VBoxContainer/Menu"]
|
|
layout_mode = 2
|
|
text = "Simulate x100"
|
|
|
|
[node name="SimulateButton2" type="Button" parent="VBoxContainer/Menu"]
|
|
layout_mode = 2
|
|
text = "One Phase"
|
|
|
|
[node name="WinCountLabel" type="Label" parent="VBoxContainer/Menu"]
|
|
layout_mode = 2
|
|
text = "Town: 0 - Werewolves: 0 - Draws: 0"
|
|
|
|
[node name="HFlowContainer" type="HFlowContainer" parent="VBoxContainer" node_paths=PackedStringArray("model")]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
script = ExtResource("4_6u1mq")
|
|
delegate_scene = ExtResource("6_5frxy")
|
|
model = NodePath("../../GameState/Players")
|
|
metadata/_edit_use_anchors_ = true
|
|
|
|
[node name="LogLabel" type="RichTextLabel" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
scroll_following = true
|
|
|
|
[connection signal="pressed" from="VBoxContainer/Menu/RandomiseTeamsButton" to="TestGameManager" method="distribute_teams"]
|
|
[connection signal="pressed" from="VBoxContainer/Menu/RandomiseRolesButton" to="TestGameManager" method="distribute_roles"]
|
|
[connection signal="value_changed" from="VBoxContainer/Menu/PlayerCountSpinBox" to="TestGameManager" method="set_player_count"]
|
|
[connection signal="pressed" from="VBoxContainer/Menu/SimulateButton" to="TestGameManager" method="start_simulating"]
|
|
[connection signal="pressed" from="VBoxContainer/Menu/SimulateButton3" to="TestGameManager" method="simulate_repeatedly" binds= [100]]
|
|
[connection signal="pressed" from="VBoxContainer/Menu/SimulateButton2" to="TestGameManager" method="next_phase"]
|