From 5904d9710dabf3064158848e50b3a9016dd6ffdb Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Thu, 4 Dec 2025 11:20:51 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20"Cyclic=20references=20are=20not=20suppo?= =?UTF-8?q?rted=20as=20you=20just=20discovered"=20=20=F0=9F=AB=A0?= =?UTF-8?q?=F0=9F=94=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scenes/main_menu.tscn | 4 +--- scripts/BoardScreen.cs | 20 ++++++++++---------- scripts/BracketScene.cs | 4 ++-- scripts/ConnectButtonUI.cs | 4 ++-- 4 files changed, 15 insertions(+), 17 deletions(-) diff --git a/scenes/main_menu.tscn b/scenes/main_menu.tscn index 0b3d822..95ed999 100644 --- a/scenes/main_menu.tscn +++ b/scenes/main_menu.tscn @@ -1,8 +1,7 @@ -[gd_scene load_steps=4 format=3 uid="uid://dcx5nvs0pa7me"] +[gd_scene load_steps=3 format=3 uid="uid://dcx5nvs0pa7me"] [ext_resource type="Script" uid="uid://bk22f71oximjk" path="res://scripts/AddressUI.cs" id="1_l6cm7"] [ext_resource type="Script" uid="uid://cpjbiqn26khck" path="res://scripts/ConnectButtonUI.cs" id="2_ekxnf"] -[ext_resource type="PackedScene" uid="uid://rl33x81cxlh0" path="res://scenes/bracket_view.tscn" id="3_bqqt6"] [node name="Control" type="Control"] layout_mode = 3 @@ -45,7 +44,6 @@ text = "Connect" script = ExtResource("2_ekxnf") AddressUi = NodePath("../Address") ErrorLabel = NodePath("../Label") -NextScene = ExtResource("3_bqqt6") [node name="Label" type="Label" parent="."] layout_mode = 1 diff --git a/scripts/BoardScreen.cs b/scripts/BoardScreen.cs index e784f07..a495bc3 100644 --- a/scripts/BoardScreen.cs +++ b/scripts/BoardScreen.cs @@ -4,11 +4,11 @@ using System.Collections.Generic; public partial class BoardScreen : Node2D { - [Export] public PackedScene BracketScene; [Export] public BaseButton BackButton; private const string RED_CHIP_PATH = "res://scenes/red_chip.tscn"; private const string YELLOW_CHIP_PATH = "res://scenes/yellow_chip.tscn"; + private const string BRACKET_SCENE_PATH = "res://scenes/bracket_screen.tscn"; private const int CHIP_SCALE = 3; private const int CHIP_SIZE = 24; private const int CHIP_PADDING = 2; @@ -150,14 +150,14 @@ public partial class BoardScreen : Node2D { private void TransitionToBracket() { - GetTree().ChangeSceneToPacked(BracketScene); + GetTree().ChangeSceneToFile(BRACKET_SCENE_PATH); } // Called every frame. 'delta' is the elapsed time since the previous frame. public override void _Process(double delta) { /* if(p1 != null) { - Label username = player1Card.GetNode