feat: Start of bracket screen, main menu connect screen done, connection fixes

This commit is contained in:
2025-12-03 18:55:20 -05:00
Unverified
parent 857e172a5f
commit 50dc7bdc1e
10 changed files with 263 additions and 25 deletions

View File

@@ -0,0 +1,23 @@
using Godot;
using System;
public partial class ConnectButtonUI : Button
{
[Export] public TextEdit addressUI;
[Export] public Label errorLabel;
[Export] public PackedScene nextScene;
public override void _Pressed()
{
if (Connection.Instance.Connect(addressUI.Text))
{
GD.Print("Success!");
GetTree().ChangeSceneToPacked(nextScene);
}
else
{
errorLabel.Text = "Couldn't connect to server!";
}
base._Pressed();
}
}