public void Open_ConnectingScreen(ClientType type) { Logo.Disable(); imgteste.Disable(); debugText.Disable(); VersionText.Disable(); DarkcomsoftCopy.Disable(); PlaySingleButtom.Disable(); PlayMultiButtom.Disable(); QuitButtom.Disable(); connectionBackgorund.Enable(); connectionTextInfo.Enable(); switch (type) { case ClientType.SinglePlayer: connectionTextInfo.SetText("Starting SinglePlayer Server..."); break; case ClientType.Multiplayer: connectionTextInfo.SetText("Connecting To Server..."); break; } }
public void Disable() { Background.Disable(); DisconnectButtom.Disable(); CharListBack.Disable(); PlayButtom.Disable(); DeleteButtom.Disable(); }
private void CreateLoadingScreen() { connectionBackgorund = new GUIImage(new System.Drawing.Rectangle(0, 0, 0, 0), UIDock.ScreenSizeRatio); connectionBackgorund.TextureName = "BackGround"; connectionBackgorund.NoInteractable(); connectionBackgorund.Disable(); connectionTextInfo = new GUILable("Null Connection Screen Info", new System.Drawing.Rectangle(0, 0, 200, 20), UIDock.Cennter); connectionTextInfo.SetColor(Color4.White); connectionTextInfo.SetTextAling(Font.TextAling.Center); connectionTextInfo.ShowBackGround = false; connectionTextInfo.Disable(); }
public void Close_ConnectingScreen(string error) { connectionTextInfo.SetText("ERROR " + error); connectionBackgorund.Disable(); connectionTextInfo.Disable(); Logo.Enable(); imgteste.Enable(); debugText.Enable(); VersionText.Enable(); DarkcomsoftCopy.Enable(); PlaySingleButtom.Enable(); PlayMultiButtom.Enable(); QuitButtom.Enable(); }