Пример #1
0
        private static void InitialFill(RainbowDash.Menu menu)
        {
            var debugSection = menu.Section("Debug");

            debugSection.Item("Toggle Debug Info", () =>
                              IsDebugInfoVisible = !IsDebugInfoVisible
                              );

            debugSection.Item("Enable Splash Screen", () => {
                The.AppData.EnableSplashScreen = true;
                The.AppData.Save();
            }, () => !The.AppData.EnableSplashScreen);

            debugSection.Item("Disable Splash Screen", () => {
                The.AppData.EnableSplashScreen = false;
                The.AppData.Save();
            }, () => The.AppData.EnableSplashScreen);
        }
Пример #2
0
        public static void ShowMenu()
        {
            if (currentMenu != null)
            {
                return;
            }

            var menu    = new RainbowDash.Menu(The.World, Layers.CheatsMenu);
            var section = menu.Section();

            InitialFill(menu);
            The.DialogManager.Top.FillDebugMenuItems(menu);

            menu.Show();
            currentMenu  = menu;
            menu.Hidden += () => {
                currentMenu = null;
            };
        }
Пример #3
0
 public virtual void FillDebugMenuItems(RainbowDash.Menu menu)
 {
 }