[gd_scene load_steps=31 format=3 uid="uid://yxovhqsiiibj"] [ext_resource type="Script" path="res://scripts/client.gd" id="1_aru0x"] [ext_resource type="Theme" uid="uid://c7yliu4oaeteg" path="res://control_theme.tres" id="1_ir4rr"] [ext_resource type="Script" path="res://scripts/prompt_manager.gd" id="2_mgq1w"] [ext_resource type="Script" path="res://scripts/client_manager.gd" id="3_rhaws"] [ext_resource type="Script" path="res://scripts/prompt.gd" id="4_hv4an"] [ext_resource type="PackedScene" uid="uid://b33iajedup33k" path="res://objects/multi_choice_button.tscn" id="4_ugyc5"] [ext_resource type="PackedScene" uid="uid://ciwipjf7njfiy" path="res://objects/submit_button.tscn" id="5_p4j2g"] [ext_resource type="PackedScene" uid="uid://bqx674xqyfnsu" path="res://objects/team_card.tscn" id="6_fj8m4"] [ext_resource type="PackedScene" uid="uid://6vsjsby4cdpn" path="res://objects/role_card.tscn" id="6_sq4fo"] [ext_resource type="Resource" uid="uid://bw4w27dq7njkb" path="res://roles/jailer.tres" id="7_h7mru"] [ext_resource type="Script" path="res://scripts/game_state.gd" id="11_2ba0e"] [ext_resource type="Script" path="res://scripts/players.gd" id="12_6w5iq"] [ext_resource type="PackedScene" uid="uid://6usutv4q0fsj" path="res://objects/wolf_player.tscn" id="13_8hb5j"] [ext_resource type="Script" path="res://scripts/chat.gd" id="14_iex0a"] [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_j3yqe"] [sub_resource type="Resource" id="Resource_u6kfd"] script = ExtResource("4_hv4an") text = "Select a night action to use:" explaination = "" type = 3 options = Array[String]([]) interruptable = false [sub_resource type="Resource" id="Resource_c8qm6"] script = ExtResource("4_hv4an") text = "You have no night actions to use." explaination = "(The button is just there to disguise your role if someone sees your screen.)" type = 6 options = Array[String]([]) interruptable = false [sub_resource type="Resource" id="Resource_i8mvv"] script = ExtResource("4_hv4an") text = "You aren't in any secret chats." explaination = "(The button is just there to disguise your role if someone sees your screen.)" type = 6 options = Array[String]([]) interruptable = false [sub_resource type="Resource" id="Resource_bt1a0"] script = ExtResource("4_hv4an") text = "This is your team:" explaination = "" type = 7 options = Array[String]([]) interruptable = false [sub_resource type="Resource" id="Resource_rtqin"] script = ExtResource("4_hv4an") text = "This is your role:" explaination = "" type = 8 options = Array[String]([]) interruptable = false [sub_resource type="Gradient" id="Gradient_bx15q"] colors = PackedColorArray(0.763336, 0.449219, 1, 1, 1, 0.605469, 0.873627, 1) [sub_resource type="GradientTexture1D" id="GradientTexture1D_svfn0"] gradient = SubResource("Gradient_bx15q") [sub_resource type="LabelSettings" id="LabelSettings_ultef"] font_size = 96 font_color = Color(0, 0, 0, 1) [sub_resource type="LabelSettings" id="LabelSettings_sjkxe"] font_color = Color(0, 0, 0, 1) [sub_resource type="LabelSettings" id="LabelSettings_0icxx"] font_color = Color(0, 0, 0, 1) [sub_resource type="LabelSettings" id="LabelSettings_e2q0f"] font_size = 48 font_color = Color(1, 1, 0.360784, 0.843137) outline_size = 3 outline_color = Color(1, 0, 0, 0.623529) [sub_resource type="Animation" id="Animation_e2q0f"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Main Content Area/PromptManager/RoleCard/Label:modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Color(1, 1, 1, 1)] } [sub_resource type="Animation" id="Animation_h7mru"] resource_name = "label_blink" length = 0.5 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Main Content Area/PromptManager/RoleCard/Label:modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.5), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_qcyul"] _data = { "RESET": SubResource("Animation_e2q0f"), "label_blink": SubResource("Animation_h7mru") } [sub_resource type="LabelSettings" id="LabelSettings_60057"] [node name="Scene" 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_ir4rr") script = ExtResource("1_aru0x") auto_setup = true [node name="GameState" type="Node" parent="."] script = ExtResource("11_2ba0e") [node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="GameState"] replication_config = SubResource("SceneReplicationConfig_j3yqe") [node name="Players" type="Node" parent="GameState"] script = ExtResource("12_6w5iq") player_scene = ExtResource("13_8hb5j") [node name="ClientManager" type="Node" parent="."] script = ExtResource("3_rhaws") prompt_select_night_action = SubResource("Resource_u6kfd") prompt_no_night_actions = SubResource("Resource_c8qm6") prompt_no_secret_chats = SubResource("Resource_i8mvv") prompt_view_team = SubResource("Resource_bt1a0") prompt_view_role = SubResource("Resource_rtqin") [node name="TextureRect" type="TextureRect" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 texture = SubResource("GradientTexture1D_svfn0") [node name="Label" type="Label" parent="."] visible = false layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -161.5 offset_top = -133.5 offset_right = 161.5 offset_bottom = 133.5 grow_horizontal = 2 grow_vertical = 2 text = "I'm a CLIENT" label_settings = SubResource("LabelSettings_ultef") horizontal_alignment = 1 vertical_alignment = 1 [node name="Label2" type="Label" parent="."] visible = false layout_mode = 1 anchors_preset = 7 anchor_left = 0.5 anchor_top = 1.0 anchor_right = 0.5 anchor_bottom = 1.0 offset_left = -85.0 offset_top = -109.0 offset_right = 89.0 offset_bottom = -86.0 grow_horizontal = 2 grow_vertical = 0 text = "Connecting to server..." label_settings = SubResource("LabelSettings_sjkxe") horizontal_alignment = 1 vertical_alignment = 1 [node name="ServerIPLabel" type="Label" parent="."] visible = false layout_mode = 1 anchors_preset = 7 anchor_left = 0.5 anchor_top = 1.0 anchor_right = 0.5 anchor_bottom = 1.0 offset_left = -85.0 offset_top = -132.0 offset_right = 89.0 offset_bottom = -109.0 grow_horizontal = 2 grow_vertical = 0 text = "Server IP: 123.545.454.66" label_settings = SubResource("LabelSettings_sjkxe") horizontal_alignment = 1 vertical_alignment = 1 [node name="HBoxContainer" type="HBoxContainer" parent="."] layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -205.0 offset_top = -31.0 grow_horizontal = 0 grow_vertical = 0 [node name="LineEdit" type="LineEdit" parent="HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 placeholder_text = "type here..." max_length = 128 clear_button_enabled = true [node name="Button" type="Button" parent="HBoxContainer"] layout_mode = 2 text = "Send" [node name="VBoxContainer2" type="VBoxContainer" parent="."] layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -205.0 offset_top = -187.0 offset_bottom = -33.0 grow_horizontal = 0 grow_vertical = 0 alignment = 2 [node name="Label2" type="Label" parent="VBoxContainer2"] layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 8 text = "Cloudy: im gay lol Kite: omg me too " label_settings = SubResource("LabelSettings_0icxx") vertical_alignment = 2 [node name="Main Content Area" type="VBoxContainer" parent="."] layout_mode = 1 anchors_preset = -1 anchor_left = 0.106 anchor_top = 0.05 anchor_right = 0.95 anchor_bottom = 0.95 grow_horizontal = 2 grow_vertical = 2 alignment = 2 [node name="PromptManager" type="VBoxContainer" parent="Main Content Area"] visible = false layout_mode = 2 size_flags_vertical = 3 script = ExtResource("2_mgq1w") [node name="PromptLabel" type="RichTextLabel" parent="Main Content Area/PromptManager"] layout_mode = 2 theme_override_colors/font_outline_color = Color(0, 0, 0, 0.556863) theme_override_constants/outline_size = 3 theme_override_font_sizes/normal_font_size = 32 bbcode_enabled = true text = "[center]Damn ya ass [shake level=40]fat[/shake]. what's your [rainbow]pronouns[/rainbow][/center] " fit_content = true visible_characters_behavior = 1 [node name="MultichoiceButtons" type="VBoxContainer" parent="Main Content Area/PromptManager"] layout_mode = 2 [node name="Button" parent="Main Content Area/PromptManager/MultichoiceButtons" instance=ExtResource("4_ugyc5")] layout_mode = 2 [node name="Button2" type="Button" parent="Main Content Area/PromptManager/MultichoiceButtons"] layout_mode = 2 text = "she/her" [node name="Button3" type="Button" parent="Main Content Area/PromptManager/MultichoiceButtons"] layout_mode = 2 text = "they/them" [node name="LineEdit" type="LineEdit" parent="Main Content Area/PromptManager"] layout_mode = 2 [node name="LongTextEdit" type="TextEdit" parent="Main Content Area/PromptManager"] custom_minimum_size = Vector2(0, 96) layout_mode = 2 placeholder_text = "Type Here..." [node name="TeamCard" parent="Main Content Area/PromptManager" instance=ExtResource("6_fj8m4")] visible = false layout_mode = 2 [node name="RoleCard" parent="Main Content Area/PromptManager" instance=ExtResource("6_sq4fo")] layout_mode = 2 role = ExtResource("7_h7mru") [node name="Label" type="Label" parent="Main Content Area/PromptManager/RoleCard"] visible = false layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -181.5 offset_top = -33.5 offset_right = 181.5 offset_bottom = 33.5 grow_horizontal = 2 grow_vertical = 2 text = "Press to Reveal!" label_settings = SubResource("LabelSettings_e2q0f") horizontal_alignment = 1 vertical_alignment = 1 [node name="AnimationPlayer2" type="AnimationPlayer" parent="Main Content Area/PromptManager/RoleCard/Label"] root_node = NodePath("../../../../..") libraries = { "": SubResource("AnimationLibrary_qcyul") } [node name="SubmitButton" parent="Main Content Area/PromptManager" instance=ExtResource("5_p4j2g")] layout_mode = 2 text = "OK" [node name="TTSBox" type="VBoxContainer" parent="Main Content Area"] visible = false layout_mode = 2 [node name="QuickButtonGrid" type="GridContainer" parent="Main Content Area/TTSBox"] layout_mode = 2 columns = 4 [node name="Button" type="Button" parent="Main Content Area/TTSBox/QuickButtonGrid"] layout_mode = 2 size_flags_horizontal = 3 text = "Yes!" [node name="Button2" type="Button" parent="Main Content Area/TTSBox/QuickButtonGrid"] layout_mode = 2 size_flags_horizontal = 3 text = "No!" [node name="Button3" type="Button" parent="Main Content Area/TTSBox/QuickButtonGrid"] layout_mode = 2 size_flags_horizontal = 3 text = "Yay!" [node name="Button4" type="Button" parent="Main Content Area/TTSBox/QuickButtonGrid"] layout_mode = 2 size_flags_horizontal = 3 text = "Oh no!" [node name="Button5" type="Button" parent="Main Content Area/TTSBox/QuickButtonGrid"] layout_mode = 2 size_flags_horizontal = 3 text = "Noises!" [node name="Button6" type="Button" parent="Main Content Area/TTSBox/QuickButtonGrid"] layout_mode = 2 size_flags_horizontal = 3 text = "Button!" [node name="Button7" type="Button" parent="Main Content Area/TTSBox/QuickButtonGrid"] layout_mode = 2 size_flags_horizontal = 3 text = "Liar!" [node name="Button8" type="Button" parent="Main Content Area/TTSBox/QuickButtonGrid"] layout_mode = 2 size_flags_horizontal = 3 text = "Swear!" [node name="HBoxContainer" type="HBoxContainer" parent="Main Content Area/TTSBox"] layout_mode = 2 [node name="LineEdit" type="LineEdit" parent="Main Content Area/TTSBox/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 3 placeholder_text = "Type to speak..." [node name="Button" type="Button" parent="Main Content Area/TTSBox/HBoxContainer"] layout_mode = 2 text = "Speak!" [node name="Encyclopedia" type="Control" parent="Main Content Area"] layout_mode = 2 size_flags_vertical = 3 [node name="Index" type="RichTextLabel" parent="Main Content Area/Encyclopedia"] visible = false layout_mode = 2 offset_right = 1080.0 offset_bottom = 1152.0 size_flags_horizontal = 3 size_flags_vertical = 3 bbcode_enabled = true text = "[b]Roles by Category:[/b] [ul] [color=white][url=roles/vanilla]Vanilla Roles[/url][/color] [color=crimson][url=roles/killing]Roles that Kill[/url][/color] [color=royal_blue][url=roles/killing]Investigative Roles[/url][/color] [color=sea_green][url=roles/killing]Manipulative Roles[/url][/color] [color=gold][url=roles/killing]Protective Roles[/url][/color] [color=dim_gray][url=roles/killing]Negative Roles[/url][/color] [/ul] [b]Roles by Team:[/b] [ul] [color=blue][url=roles/vanilla]Town[/url][/color] [color=red][url=roles/killing]Werewolves[/url][/color] [url=roles/killing]Either [color=blue]Town[/color] or [color=red]Werewolves[/color][/url] [color=dark_green][url=roles/killing]Outcasts[/url][/color] [/ul]" [node name="Role List" type="RichTextLabel" parent="Main Content Area/Encyclopedia"] visible = false layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 bbcode_enabled = true text = "[ul] [url=role/townie]Townie[/url] [/ul]" [node name="ActionButtons" type="VBoxContainer" parent="."] layout_mode = 1 anchors_preset = 9 anchor_bottom = 1.0 grow_vertical = 2 alignment = 1 [node name="VoteButton" type="Button" parent="ActionButtons"] layout_mode = 2 size_flags_vertical = 0 text = "Vote to Execute" [node name="ViewTeamButton" type="Button" parent="ActionButtons"] visible = false layout_mode = 2 size_flags_vertical = 0 text = "View Team" [node name="ViewRoleButton" type="Button" parent="ActionButtons"] visible = false layout_mode = 2 size_flags_vertical = 0 text = "View Role" [node name="ScoreboardButton" type="Button" parent="ActionButtons"] visible = false layout_mode = 2 size_flags_vertical = 0 text = "View Players" [node name="WerewolfChatButton" type="Button" parent="ActionButtons"] visible = false layout_mode = 2 size_flags_vertical = 0 text = "Secret Chat" [node name="NightActionsButton" type="Button" parent="ActionButtons"] visible = false layout_mode = 2 size_flags_vertical = 0 text = "Night Actions" [node name="EncyclopediaButton" type="Button" parent="ActionButtons"] layout_mode = 2 size_flags_vertical = 0 text = "Encyclopedia" [node name="Label3" type="Label" parent="."] modulate = Color(1, 1, 1, 0.188235) layout_mode = 1 anchors_preset = 2 anchor_top = 1.0 anchor_bottom = 1.0 offset_top = -47.3334 offset_right = 46.0 grow_vertical = 0 rotation = -1.5708 text = "gyugy " label_settings = SubResource("LabelSettings_60057") [node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="."] _spawnable_scenes = PackedStringArray("res://objects/wolf_player.tscn") spawn_path = NodePath("../GameState/Players") [node name="Chat" type="Node" parent="."] script = ExtResource("14_iex0a") [connection signal="local_player_created" from="." to="ClientManager" method="set_player"] [connection signal="local_player_created" from="." to="Main Content Area/PromptManager" method="set_player"] [connection signal="text_submitted" from="HBoxContainer/LineEdit" to="HBoxContainer/LineEdit" method="clear"] [connection signal="text_submitted" from="Main Content Area/PromptManager/LineEdit" to="Main Content Area/PromptManager" method="submit_result"] [connection signal="pressed" from="Main Content Area/PromptManager/SubmitButton" to="Main Content Area/PromptManager" method="submit_button_pressed"] [connection signal="pressed" from="ActionButtons/ViewTeamButton" to="ClientManager" method="_on_view_team_button_pressed"] [connection signal="pressed" from="ActionButtons/ViewRoleButton" to="ClientManager" method="_on_view_role_button_pressed"] [connection signal="pressed" from="ActionButtons/WerewolfChatButton" to="ClientManager" method="_on_werewolf_chat_button_pressed"] [connection signal="pressed" from="ActionButtons/NightActionsButton" to="ClientManager" method="_on_night_actions_button_pressed"]