shuffle sync works, chat boxes work, initial hand draw works, players cant share a username
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://x8fd0k3qhn1x"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://x8fd0k3qhn1x"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://crk6m37iy1itk" path="res://Assets/table.png" id="1_gchuv"]
|
||||
[ext_resource type="Script" path="res://Scripts/game.gd" id="1_ne3d3"]
|
||||
[ext_resource type="Script" path="res://Scripts/chat.gd" id="4_dww8o"]
|
||||
[ext_resource type="PackedScene" uid="uid://y2i3u6n1oowh" path="res://Scenes/deck.tscn" id="4_ugbip"]
|
||||
|
||||
[node name="Table" type="Node2D" node_paths=PackedStringArray("worker_deck", "client_deck", "worker_discard", "client_discard", "seat1", "seat2", "seat3", "seat4")]
|
||||
@ -47,22 +46,3 @@ position = Vector2(-1341, -737)
|
||||
position = Vector2(1313, -747)
|
||||
|
||||
[node name="Players" type="Node2D" parent="."]
|
||||
|
||||
[node name="LobbyCamera" type="Camera2D" parent="."]
|
||||
zoom = Vector2(0.225, 0.225)
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="LobbyCamera"]
|
||||
offset_left = -2563.0
|
||||
offset_top = 687.0
|
||||
offset_right = -1417.0
|
||||
offset_bottom = 1259.0
|
||||
theme_override_font_sizes/normal_font_size = 50
|
||||
scroll_following = true
|
||||
script = ExtResource("4_dww8o")
|
||||
|
||||
[node name="LineEdit" type="LineEdit" parent="LobbyCamera"]
|
||||
offset_left = -2547.0
|
||||
offset_top = 1276.0
|
||||
offset_right = -1421.0
|
||||
offset_bottom = 1421.0
|
||||
theme_override_font_sizes/font_size = 50
|
||||
|
@ -3,74 +3,91 @@
|
||||
[ext_resource type="Script" path="res://Scripts/PlayerStateMachine/human_controller.gd" id="1_4thxs"]
|
||||
[ext_resource type="Theme" uid="uid://d26ldkm1br1bo" path="res://UI_Theme.tres" id="2_ja0q8"]
|
||||
|
||||
[node name="HumanPlayer" type="Node2D"]
|
||||
[node name="HumanPlayer" type="Node2D" node_paths=PackedStringArray("hand_position")]
|
||||
script = ExtResource("1_4thxs")
|
||||
hand_position = NodePath("Node2D")
|
||||
|
||||
[node name="Node2D" type="Node2D" parent="."]
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
visible = false
|
||||
zoom = Vector2(0.4, 0.4)
|
||||
zoom = Vector2(0.501, 0.501)
|
||||
|
||||
[node name="UI" type="Control" parent="."]
|
||||
visible = false
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="UI" type="Control" parent="CanvasLayer"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("2_ja0q8")
|
||||
|
||||
[node name="Cash" type="Label" parent="UI"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = -561.0
|
||||
offset_top = -27.0
|
||||
offset_right = -521.0
|
||||
offset_bottom = -1.0
|
||||
text = "$100"
|
||||
[node name="Cash" type="Label" parent="CanvasLayer/UI"]
|
||||
layout_mode = 2
|
||||
offset_top = 312.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 335.0
|
||||
|
||||
[node name="Profit" type="Label" parent="UI"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = -521.0
|
||||
offset_top = -27.0
|
||||
offset_right = -481.0
|
||||
offset_bottom = -1.0
|
||||
[node name="Profit" type="Label" parent="CanvasLayer/UI"]
|
||||
layout_mode = 2
|
||||
offset_top = 311.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 337.0
|
||||
theme_override_colors/font_color = Color(0, 0.870588, 0, 1)
|
||||
text = "+23
|
||||
text = "
|
||||
"
|
||||
|
||||
[node name="Loss" type="Label" parent="UI"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = -491.0
|
||||
offset_top = -27.0
|
||||
offset_right = -451.0
|
||||
offset_bottom = -1.0
|
||||
[node name="Loss" type="Label" parent="CanvasLayer/UI"]
|
||||
layout_mode = 2
|
||||
offset_top = 312.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 335.0
|
||||
theme_override_colors/font_color = Color(0.909804, 0, 0, 1)
|
||||
text = "-38"
|
||||
|
||||
[node name="Phase" type="Label" parent="UI"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = -113.0
|
||||
offset_top = -311.0
|
||||
offset_right = 103.0
|
||||
offset_bottom = -285.0
|
||||
text = "{Management / Shift} Phase"
|
||||
[node name="Phase" type="Label" parent="CanvasLayer/UI"]
|
||||
layout_mode = 2
|
||||
offset_top = 312.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 335.0
|
||||
|
||||
[node name="LobbyReadyButton" type="Button" parent="UI"]
|
||||
layout_mode = 0
|
||||
offset_left = -26.0
|
||||
offset_top = -313.0
|
||||
offset_right = 30.0
|
||||
offset_bottom = -282.0
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/UI"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -42.5
|
||||
offset_top = 21.0
|
||||
offset_right = 42.5
|
||||
offset_bottom = 31.0
|
||||
grow_horizontal = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="LobbyReadyButton" type="Button" parent="CanvasLayer/UI/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Ready"
|
||||
|
||||
[node name="LobbyReadyLabel" type="Label" parent="UI"]
|
||||
layout_mode = 0
|
||||
offset_left = 39.0
|
||||
offset_top = -309.0
|
||||
offset_right = 79.0
|
||||
offset_bottom = -283.0
|
||||
text = "0/4"
|
||||
[node name="LobbyReadyLabel" type="Label" parent="CanvasLayer/UI/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "0/1"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="pressed" from="UI/LobbyReadyButton" to="." method="_on_lobby_ready_button_pressed"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/UI"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -178.0
|
||||
offset_right = 254.0
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="CanvasLayer/UI/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="LineEdit" type="LineEdit" parent="CanvasLayer/UI/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[connection signal="pressed" from="CanvasLayer/UI/HBoxContainer/LobbyReadyButton" to="." method="_on_lobby_ready_button_pressed"]
|
||||
[connection signal="text_submitted" from="CanvasLayer/UI/VBoxContainer/LineEdit" to="." method="_on_line_edit_text_submitted"]
|
||||
|
Reference in New Issue
Block a user