feat: theming pass, reworked connection flow...
- bracket view theming (pending rework) - some light refactoring - TOURNAMENT:CANCEL command (pending server side implementation) - logic for waiting for last moves in games to wait for chip to drop - transition back to main menu on disconnects, disconnect tolerance
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
[gd_scene load_steps=16 format=3 uid="uid://m542qwlp7hl7"]
|
||||
[gd_scene load_steps=17 format=3 uid="uid://m542qwlp7hl7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dg5jt0o0r0v3r" path="res://scripts/BoardScreen.cs" id="1_b3w8x"]
|
||||
[ext_resource type="AudioStream" uid="uid://crxjuk1vyq331" path="res://assets/sfx/game_end.ogg" id="2_kseed"]
|
||||
[ext_resource type="Texture2D" uid="uid://dlx02qat7j6lf" path="res://assets/sprites/AssetTileset.png" id="3_1tlhv"]
|
||||
[ext_resource type="Theme" uid="uid://bbgxacei1vwba" path="res://assets/theme.tres" id="3_3louw"]
|
||||
[ext_resource type="FontFile" uid="uid://c3jmev24lo6ci" path="res://assets/fonts/PixelOperator8.ttf" id="3_rjcmr"]
|
||||
[ext_resource type="Texture2D" uid="uid://ckmfi0cjgxgyk" path="res://assets/sprites/RedChip.png" id="4_1hrcj"]
|
||||
[ext_resource type="Texture2D" uid="uid://qy30emdgrk7o" path="res://assets/sprites/YellowChip.png" id="5_i2o8i"]
|
||||
@@ -36,6 +37,7 @@ region = Rect2(112, 32, 16, 16)
|
||||
[node name="BoardScreen" type="Node2D"]
|
||||
script = ExtResource("1_b3w8x")
|
||||
endingSfx = ExtResource("2_kseed")
|
||||
theme = ExtResource("3_3louw")
|
||||
|
||||
[node name="Floor Collider" type="StaticBody2D" parent="."]
|
||||
position = Vector2(0, 200)
|
||||
|
||||
@@ -1,10 +1,22 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://rl33x81cxlh0"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://rl33x81cxlh0"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://bbgxacei1vwba" path="res://assets/theme.tres" id="1_as653"]
|
||||
[ext_resource type="Script" uid="uid://dm25u0a2lqk2x" path="res://scripts/BracketScene.cs" id="1_dvj3m"]
|
||||
[ext_resource type="Texture2D" uid="uid://da13ksuf4vkqe" path="res://assets/sprites/observe.png" id="2_mbqc8"]
|
||||
[ext_resource type="Texture2D" uid="uid://stk7umv2ppss" path="res://assets/sprites/cancel.png" id="3_as653"]
|
||||
[ext_resource type="Script" uid="uid://1y72woiynf31" path="res://scripts/AdminControls.cs" id="4_mbqc8"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_wu84c"]
|
||||
colors = PackedColorArray(0, 0.07058824, 0.101960786, 1, 0.39215687, 0.39215687, 0.39215687, 1)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_as653"]
|
||||
gradient = SubResource("Gradient_wu84c")
|
||||
width = 1024
|
||||
height = 1024
|
||||
fill_from = Vector2(0.5, 1)
|
||||
fill_to = Vector2(0.5, 0)
|
||||
metadata/_snap_enabled = true
|
||||
|
||||
[node name="BracketView" type="Control" node_paths=PackedStringArray("Players", "Matches")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@@ -12,12 +24,24 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_as653")
|
||||
script = ExtResource("1_dvj3m")
|
||||
Players = NodePath("HBoxContainer/PlayerList")
|
||||
Matches = NodePath("HBoxContainer/MatchList")
|
||||
WatchButton = ExtResource("2_mbqc8")
|
||||
TerminateKickButton = ExtResource("3_as653")
|
||||
|
||||
[node name="Background" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -152.0
|
||||
offset_bottom = 152.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture2D_as653")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
custom_minimum_size = Vector2(0, 36)
|
||||
layout_mode = 1
|
||||
@@ -26,7 +50,7 @@ anchor_right = 1.0
|
||||
grow_horizontal = 2
|
||||
color = Color(0.13319641, 0.13319641, 0.13319638, 1)
|
||||
|
||||
[node name="AdminControls" type="HBoxContainer" parent="ColorRect" node_paths=PackedStringArray("BecomeAdmin", "StartTournament", "Label", "Timeout")]
|
||||
[node name="AdminControls" type="HBoxContainer" parent="ColorRect" node_paths=PackedStringArray("BecomeAdmin", "StartTournament", "CancelTournament", "Label", "Timeout")]
|
||||
custom_minimum_size = Vector2(0, 36)
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
@@ -36,6 +60,7 @@ grow_horizontal = 2
|
||||
script = ExtResource("4_mbqc8")
|
||||
BecomeAdmin = NodePath("BecomeAdmin")
|
||||
StartTournament = NodePath("StartTournament")
|
||||
CancelTournament = NodePath("CancelTournament")
|
||||
Label = NodePath("Label")
|
||||
Timeout = NodePath("HSlider")
|
||||
|
||||
@@ -47,6 +72,10 @@ text = "Become Admin"
|
||||
layout_mode = 2
|
||||
text = "Start Tournament"
|
||||
|
||||
[node name="CancelTournament" type="Button" parent="ColorRect/AdminControls"]
|
||||
layout_mode = 2
|
||||
text = "Cancel Tournament"
|
||||
|
||||
[node name="Label" type="Label" parent="ColorRect/AdminControls"]
|
||||
layout_mode = 2
|
||||
text = "Wait To Move: 5.0s "
|
||||
|
||||
@@ -1,10 +1,33 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cr8fi0e4r88s8"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cr8fi0e4r88s8"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cct663hb47yka" path="res://scenes/create_join_room.tscn" id="1_yqjtg"]
|
||||
[ext_resource type="PackedScene" uid="uid://m542qwlp7hl7" path="res://scenes/board_screen.tscn" id="2_lnu2h"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_wu84c"]
|
||||
colors = PackedColorArray(0, 0.07058824, 0.101960786, 1, 0.39215687, 0.39215687, 0.39215687, 1)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_yqjtg"]
|
||||
gradient = SubResource("Gradient_wu84c")
|
||||
width = 1024
|
||||
height = 1024
|
||||
fill_from = Vector2(0.5, 1)
|
||||
fill_to = Vector2(0.5, 0)
|
||||
metadata/_snap_enabled = true
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
|
||||
[node name="Background" type="TextureRect" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -659.0
|
||||
offset_top = -558.0
|
||||
offset_right = 619.0
|
||||
offset_bottom = 466.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture2D_yqjtg")
|
||||
|
||||
[node name="GameManager" type="Node" parent="."]
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
@@ -1,7 +1,20 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dcx5nvs0pa7me"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dcx5nvs0pa7me"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bk22f71oximjk" path="res://scripts/AddressUI.cs" id="1_l6cm7"]
|
||||
[ext_resource type="Theme" uid="uid://bbgxacei1vwba" path="res://assets/theme.tres" id="1_wu84c"]
|
||||
[ext_resource type="Script" uid="uid://cpjbiqn26khck" path="res://scripts/ConnectButtonUI.cs" id="2_ekxnf"]
|
||||
[ext_resource type="Texture2D" uid="uid://uritd4ygetrk" path="res://assets/sprites/rpi.png" id="3_bqqt6"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_wu84c"]
|
||||
colors = PackedColorArray(0, 0.07058824, 0.101960786, 1, 0.39215687, 0.39215687, 0.39215687, 1)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_yqjtg"]
|
||||
gradient = SubResource("Gradient_wu84c")
|
||||
width = 1024
|
||||
height = 1024
|
||||
fill_from = Vector2(0.5, 1)
|
||||
fill_to = Vector2(0.5, 0)
|
||||
metadata/_snap_enabled = true
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -11,6 +24,63 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Background" 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("GradientTexture2D_yqjtg")
|
||||
|
||||
[node name="RPI Minds and Machines" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -193.5
|
||||
offset_top = 128.0
|
||||
offset_right = 193.5
|
||||
offset_bottom = 152.0
|
||||
grow_horizontal = 2
|
||||
theme = ExtResource("1_wu84c")
|
||||
theme_type_variation = &"HeaderMedium"
|
||||
text = "RPI Minds & Machines"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Connect" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -100.0
|
||||
offset_top = 200.0
|
||||
offset_right = 68.00122
|
||||
offset_bottom = 229.0
|
||||
grow_horizontal = 2
|
||||
theme = ExtResource("1_wu84c")
|
||||
theme_type_variation = &"HeaderLarge"
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 16
|
||||
text = "Connect"
|
||||
|
||||
[node name="4" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = 78.0
|
||||
offset_top = 200.0
|
||||
offset_right = 118.00116
|
||||
offset_bottom = 229.0
|
||||
grow_horizontal = 2
|
||||
theme = ExtResource("1_wu84c")
|
||||
theme_type_variation = &"HeaderLarge"
|
||||
theme_override_colors/font_color = Color(1, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 16
|
||||
text = "4"
|
||||
|
||||
[node name="Address" type="TextEdit" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
@@ -24,10 +94,13 @@ offset_right = 250.0
|
||||
offset_bottom = 20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_wu84c")
|
||||
placeholder_text = "Server Address"
|
||||
emoji_menu_enabled = false
|
||||
scroll_smooth = true
|
||||
script = ExtResource("1_l6cm7")
|
||||
|
||||
[node name="Button" type="Button" parent="." node_paths=PackedStringArray("AddressUi", "ErrorLabel")]
|
||||
[node name="Button" type="Button" parent="." node_paths=PackedStringArray("AddressField", "ErrorLabel")]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
@@ -40,9 +113,10 @@ offset_right = 250.0
|
||||
offset_bottom = 67.25
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_wu84c")
|
||||
text = "Connect"
|
||||
script = ExtResource("2_ekxnf")
|
||||
AddressUi = NodePath("../Address")
|
||||
AddressField = NodePath("../Address")
|
||||
ErrorLabel = NodePath("../Label")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
@@ -58,4 +132,17 @@ offset_right = 68.5
|
||||
offset_bottom = 98.149994
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_wu84c")
|
||||
theme_override_colors/font_color = Color(1, 0, 0, 1)
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 5.0
|
||||
offset_top = -69.0
|
||||
offset_right = 69.0
|
||||
offset_bottom = -5.0
|
||||
grow_vertical = 0
|
||||
texture = ExtResource("3_bqqt6")
|
||||
|
||||
Reference in New Issue
Block a user