Пример #1
0
        public override void OnRender(int id)
        {
            var style = new GUIStyle(GUI.skin.box);

            if (GUILayout.Button(CustomColorHTML("red", "Annoy All"), style))
            {
                GeneralUtils.AnnoyAll();
            }

            if (GUILayout.Button(CustomColorHTML("#90ee90", "Delete Portals"), style))
            {
                GeneralUtils.DeleteAllPortals();
            }

            if (GUILayout.Button(CustomColorHTML("white", "Utils"), style))
            {
                Enabled = false;
                GeneralUtils.UIHelper.UIMenu[1].Enabled = true; //UI Menu
            }

            if (GUILayout.Button(CustomColorHTML("white", "Settings"), style))
            {
                Enabled = false;
                GeneralUtils.UIHelper.UIMenu[2].Enabled = true; //Settings Menu
            }

            if (GUILayout.Button(CustomColorHTML("white", "Players"), style))
            {
                Enabled = false;
                GeneralUtils.UIHelper.UIMenu[3].Enabled = true; //Players Menu
            }

            if (GUILayout.Button(CustomColorHTML("white", "Lobby"), style))
            {
                Enabled = false;
                GeneralUtils.UIHelper.UIMenu[5].Enabled = true; //Lobby Menu
            }

            if (GUILayout.Button(CustomColorHTML("white", "Fun"), style))
            {
                Enabled = false;
                GeneralUtils.UIHelper.UIMenu[6].Enabled = true; //Fun Menu
            }
        }
Пример #2
0
        public ButtonMenu() : base("ShortcutMenu", 5, 2, "Coffin", "See what's inside", Color.red, Color.white, Color.red, Color.cyan)
        {
            new QMSingleButton(this, 1, 0, "Discord", delegate()
            {
                Process.Start("https://yaekiths-projects.xyz/api/discord.php");
            }, "Come join us!", Color.red, Color.white);

            new QMSingleButton(this, 1, 1, "Delete Portals", delegate()
            {
                GeneralUtils.DeleteAllPortals();
            }, "Delete all portals existent", Color.red, Color.white);

            new QMSingleButton(this, 1, 2, "Annoy All", delegate()
            {
                GeneralUtils.AnnoyAll();
            }, "Annoy everyone", Color.red, Color.white);

            new QMToggleButton(this, 3, 2, "Show SubUI", delegate()
            {
                UnityEngine.Object.DontDestroyOnLoad(GeneralUtils.obj);
                GeneralUtils.UIHelper = GeneralUtils.obj.AddComponent <MainUIHelper>();
                GeneralUtils.UIHelper.Setup();
                GeneralUtils.ShouldShowUI = true;
            }, "Hide SubUI", delegate()
            {
                var UI = GeneralUtils.obj.GetComponent <MainUIHelper>();
                UnityEngine.GameObject.Destroy(UI);
                GeneralUtils.ShouldShowUI = false;
            }, "Show/Hide the SubUI", Color.red, Color.white);

            UtilsMenu    = new UtilsVRMenu(this);
            FunMenu      = new FunVRMenu(this);
            SettingsMenu = new SettingsVRMenu(this);
            LobbyMenu    = new LobbyVRMenu(this);
            new QMSingleButton(this, 3, 1, "Credits", delegate
            {
                GeneralUtils.Notify("Credits:\nYaekith - Main Client Developer & Creator");
                Resources.FindObjectsOfTypeAll <VRCUiManager>()[0].CloseUi();
            }, "Show who made this client", Color.black, Color.white);
        }