Esempio n. 1
0
        public void MenuFunct(int id)
        {
            GUILayout.BeginHorizontal();


            #region menu bar
            //Menu Bar vertical section
            GUILayout.BeginVertical();

            if (GUILayout.Button("<size=20>Player</size>", GUILayout.Width(200), GUILayout.Height(40)))
            {
                ContentId = 3;
            }

            GUILayout.Space(7f);

            if (GUILayout.Button("<size=20>Aim</size>", GUILayout.Width(200), GUILayout.Height(40)))
            {
                ContentId = 1;
            }

            GUILayout.Space(7f);

            if (GUILayout.Button("<size=20>Visuals</size>", GUILayout.Width(200), GUILayout.Height(40)))
            {
                ContentId = 2;
            }

            GUILayout.Space(7f);

            if (GUILayout.Button("<size=20>Server</size>", GUILayout.Width(200), GUILayout.Height(40)))
            {
                ContentId = 4;
            }

            GUILayout.Space(7f);

            if (GUILayout.Button("<size=20>Item Filter</size>", GUILayout.Width(200), GUILayout.Height(40)))
            {
                ContentId = 5;
            }

            GUILayout.Space(7f);

            if (GUILayout.Button("<size=20>Keybinds</size>", GUILayout.Width(200), GUILayout.Height(40)))
            {
                ContentId = 6;
            }

            GUILayout.EndVertical();

            GUILayout.Space(10f);

            #endregion



            GUI.depth = 1; //Cursor Fix

            //Menu Content section
            GUILayout.BeginVertical();
            switch (ContentId)
            {
            case 1:
                mAim.ContentGUI();
                break;

            case 2:
                mVisuals.ContentGUI();
                break;

            case 3:
                mPlayer.ContentGUI();
                break;

            case 5:
                mItems.ContentGUI();
                break;

            case 6:
                mKeybinds.ContentGUI();
                break;

            case 4:
                mServer.ContentGUI();
                break;
            }
            GUILayout.EndVertical();



            GUILayout.EndHorizontal();
        }