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); }
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; }; }