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 GUIMainMenu(Client cli)
        {
            _Client = cli;

            System.Random rand = new Random();

            imgteste             = new GUIImage(new System.Drawing.Rectangle(0, 0, 0, 0), UIDock.ScreenSizeRatio);
            imgteste.TextureName = "BackGround";
            imgteste.NoInteractable();
            imgteste.SetBackColors(new Color4(102, 70, 36, 255), Color4.White, Color4.White, Color4.White);
            imgteste.SetInteractColor(new Color4(102, 70, 36, 255));

            Logo             = new GUIImage(new System.Drawing.Rectangle(0, 135, 350, 50), UIDock.Cennter);
            Logo.TextureName = "VaKLogoYellow";
            Logo.SetBackColors(Color4.White, Color4.White, Color4.White, Color4.White);
            Logo.NoInteractable();
            Logo.SetInteractColor(Color4.White);

            PlaySingleButtom = new GUIButtom("SinglePlayer", new System.Drawing.Rectangle(0, 55, 200, 50), UIDock.Cennter);
            PlaySingleButtom.SetColor(Color4.White);
            PlaySingleButtom.SetBackColors(Color4.White, Color4.Gray, Color4.Gray, Color4.White);
            PlaySingleButtom.TextureName = "Buttom";
            PlaySingleButtom.OnClick    += PlayButtomClick;

            PlayMultiButtom = new GUIButtom("MultiPlayer", new System.Drawing.Rectangle(0, 0, 200, 50), UIDock.Cennter);
            PlayMultiButtom.SetColor(Color4.White);
            PlayMultiButtom.TextureName = "Buttom";
            PlayMultiButtom.OnClick    += PlayMButtomClick;

            QuitButtom = new GUIButtom("Quit", new System.Drawing.Rectangle(0, -55, 200, 50), UIDock.Cennter);
            QuitButtom.SetColor(Color4.White);
            QuitButtom.TextureName = "Buttom";
            QuitButtom.OnClick    += QuitButtomClick;

            VersionText = new GUILable(GlobalData.AppName + " " + GlobalData.Version, new System.Drawing.Rectangle(5, 5, 200, 20), UIDock.TopLeft);
            VersionText.SetColor(Color4.White);
            VersionText.SetTextAling(Font.TextAling.Left);
            VersionText.ShowBackGround = false;

            debugText = new GUILable("", new System.Drawing.Rectangle(5, 30, 200, 20), UIDock.TopLeft);
            debugText.SetColor(Color4.White);
            debugText.SetTextAling(Font.TextAling.Left);
            debugText.ShowBackGround = false;

            DarkcomsoftCopy = new GUILable("Copyright(c) 2020 Darkcomsoft - All rights reserved.", new System.Drawing.Rectangle(5, 5, 200, 20), UIDock.BottomLeft);
            DarkcomsoftCopy.SetColor(Color4.White);
            DarkcomsoftCopy.SetTextAling(Font.TextAling.Left);
            DarkcomsoftCopy.ShowBackGround = false;

            CreateLoadingScreen();
        }
        public PrepareGUI(GameUI gameUI)
        {
            charGuiItems = new List <CharGuiItem>();

            _gameUI = gameUI;

            Background = new GUIImage(new System.Drawing.Rectangle(0, 0, 0, 0), UIDock.ScreenSizeRatio);
            Background.SetBackColors(Color4.YellowGreen, Color4.White, Color4.White, Color4.White);
            Background.TextureName = "BackGround";
            Background.SetInteractColor(Color4.White);
            Background.NoInteractable();

            CharListBack             = new GUIPanel(new System.Drawing.Rectangle(0, 55, 528, 528), UIDock.CenterBottom);
            CharListBack.TextureName = "Panel01";

            DisconnectButtom = new GUIButtom("Disconnect", new System.Drawing.Rectangle(200, 5, 200, 50), UIDock.CenterBottom);
            DisconnectButtom.SetTextAling(Font.TextAling.Center);
            DisconnectButtom.SetColor(Color4.White);
            DisconnectButtom.SetBackColors(Color4.White, Color4.DarkGray, Color4.Gray, Color4.White);
            DisconnectButtom.TextureName = "Buttom";
            DisconnectButtom.OnClick    += DisconnectButtomClick;


            PlayButtom = new GUIButtom("Play", new System.Drawing.Rectangle(-200, 5, 200, 50), UIDock.CenterBottom);
            PlayButtom.SetTextAling(Font.TextAling.Center);
            PlayButtom.SetColor(Color4.White);
            PlayButtom.SetBackColors(Color4.White, Color4.DarkGray, Color4.Gray, Color4.White);
            PlayButtom.TextureName = "Buttom";
            PlayButtom.NoInteractable();
            PlayButtom.OnClick += OnPlayClick;

            DeleteButtom = new GUIButtom("Delete", new System.Drawing.Rectangle(0, 5, 200, 50), UIDock.CenterBottom);
            DeleteButtom.SetTextAling(Font.TextAling.Center);
            DeleteButtom.SetColor(Color4.White);
            DeleteButtom.SetBackColors(Color4.White, Color4.DarkGray, Color4.Gray, Color4.White);
            DeleteButtom.TextureName = "Buttom";
            DeleteButtom.NoInteractable();
            DeleteButtom.OnClick += OnDeleteButtomClick;
        }