Merge branch 'dev' into my-eyes-the-fixes-do-nothing

This commit is contained in:
Mister_Nebula 2021-11-13 19:10:30 +00:00
commit 457c824375

View File

@ -1,4 +1,5 @@
using QSB.Player; using QSB.Player;
using System.Linq;
using UnityEngine; using UnityEngine;
using UnityEngine.Networking; using UnityEngine.Networking;
using UnityEngine.UI; using UnityEngine.UI;
@ -155,7 +156,7 @@ namespace QSB.Menus
private void Connect() private void Connect()
{ {
QSBNetworkManager.Instance.networkAddress = (PopupMenu as PopupInputMenu).GetInputText(); QSBNetworkManager.Instance.networkAddress = string.Concat((PopupMenu as PopupInputMenu).GetInputText().Where(c => !char.IsWhiteSpace(c)));
QSBNetworkManager.Instance.StartClient(); QSBNetworkManager.Instance.StartClient();
DisconnectButton.transform.GetChild(0).GetChild(1).GetComponent<Text>().text = "CONNECTING... (STOP)"; DisconnectButton.transform.GetChild(0).GetChild(1).GetComponent<Text>().text = "CONNECTING... (STOP)";
DisconnectButton.gameObject.SetActive(true); DisconnectButton.gameObject.SetActive(true);