コード例 #1
0
        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;
            }
        }
コード例 #2
0
        public void Disable()
        {
            Background.Disable();
            DisconnectButtom.Disable();

            CharListBack.Disable();
            PlayButtom.Disable();
            DeleteButtom.Disable();
        }
コード例 #3
0
        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();
        }
コード例 #4
0
        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();
        }