private static void CreateNormalOptions(TextMenu menu, bool inGame)
 {
     normalOptions = new List <TextMenu.Item> {
         new TextMenu.OnOff("Show Hitboxes", Settings.ShowHitboxes).Change(b => Settings.ShowHitboxes = b),
         new TextMenu.OnOff("Simplified Graphics", Settings.SimplifiedGraphics).Change(b => Settings.SimplifiedGraphics = b),
         new TextMenu.OnOff("Center Camera", Settings.CenterCamera).Change(b => Settings.CenterCamera = b),
         new TextMenu.OnOff("Launch Studio At Boot", Settings.LaunchStudioAtBoot).Change(b => Settings.LaunchStudioAtBoot  = b),
         new TextMenu.OnOff("Disable Achievements", Settings.DisableAchievements).Change(b => Settings.DisableAchievements = b),
     };
     if (!inGame)
     {
         normalOptions.Add(HitboxColor.CreateEntityHitboxColorButton(menu, inGame));
         normalOptions.Add(HitboxColor.CreateTriggerHitboxColorButton(menu, inGame));
     }
 }
        private static void CreateOptions(EverestModule everestModule, TextMenu menu, bool inGame)
        {
            options = new List <TextMenu.Item> {
                new TextMenuExt.SubMenu("Show Hitboxes".ToDialogText(), false).Apply(subMenu => {
                    showHitboxesSubmenu = subMenu;
                    subMenu.Add(new TextMenu.OnOff("Enabled".ToDialogText(), Settings.ShowHitboxes).Change(value => Settings.ShowHitboxes = value));
                    subMenu.Add(new TextMenu.Option <ActualCollideHitboxTypes>("Actual Collide Hitboxes".ToDialogText()).Apply(option => {
                        Array enumValues = Enum.GetValues(typeof(ActualCollideHitboxTypes));
                        foreach (ActualCollideHitboxTypes value in enumValues)
                        {
                            option.Add(value.ToString().SpacedPascalCase().ToDialogText(), value, value.Equals(Settings.ShowActualCollideHitboxes));
                        }

                        option.Change(value => Settings.ShowActualCollideHitboxes = value);
                    }));
                    subMenu.Add(new TextMenu.OnOff("Hide Trigger Hitboxes".ToDialogText(), Settings.HideTriggerHitboxes).Change(value =>
                                                                                                                                Settings.HideTriggerHitboxes = value));
                    subMenu.Add(new TextMenu.OnOff("Simplified Hitboxes".ToDialogText(), Settings.SimplifiedHitboxes).Change(value =>
                                                                                                                             Settings.SimplifiedHitboxes = value));
                    subMenu.Add(HitboxColor.CreateEntityHitboxColorButton(menu, inGame));
                    subMenu.Add(HitboxColor.CreateTriggerHitboxColorButton(menu, inGame));
                    subMenu.Add(HitboxColor.CreateSolidTilesHitboxColorButton(menu, inGame));
                }),

                SimplifiedGraphicsFeature.CreateSimplifiedGraphicsOption(),

                new TextMenuExt.SubMenu("Relaunch Required".ToDialogText(), false).Apply(subMenu => {
                    subMenu.Add(new TextMenu.OnOff("Launch Studio At Boot".ToDialogText(), Settings.LaunchStudioAtBoot).Change(value =>
                                                                                                                               Settings.LaunchStudioAtBoot = value));
                    subMenu.Add(new TextMenu.OnOff("Auto Extract New Studio".ToDialogText(), Settings.AutoExtractNewStudio).Change(value =>
                                                                                                                                   Settings.AutoExtractNewStudio = value));
                    subMenu.Add(new TextMenu.OnOff("Unix RTC".ToDialogText(), Settings.UnixRtc).Change(value => Settings.UnixRtc = value));
                }),

                new TextMenuExt.SubMenu("More Options".ToDialogText(), false).Apply(subMenu => {
                    subMenu.Add(new TextMenu.OnOff("Center Camera".ToDialogText(), Settings.CenterCamera).Change(value =>
                                                                                                                 Settings.CenterCamera = value));
                    subMenu.Add(new TextMenu.OnOff("Round Position".ToDialogText(), Settings.RoundPosition).Change(value =>
                                                                                                                   Settings.RoundPosition = value));
                    subMenu.Add(new TextMenu.Option <InfoPositions>("Info HUD".ToDialogText()).Apply(option => {
                        Array enumValues = Enum.GetValues(typeof(InfoPositions));
                        foreach (InfoPositions value in enumValues)
                        {
                            option.Add(value.ToString().SpacedPascalCase(), value, value.Equals(Settings.InfoHud));
                        }

                        option.Change(value => Settings.InfoHud = value);
                    }));
                    subMenu.Add(new TextMenu.OnOff("Pause After Load State".ToDialogText(), Settings.PauseAfterLoadState).Change(value =>
                                                                                                                                 Settings.PauseAfterLoadState = value));
                    subMenu.Add(new TextMenu.OnOff("Restore Settings".ToDialogText(), Settings.RestoreSettings).Change(value =>
                                                                                                                       Settings.RestoreSettings = value));
                    subMenu.Add(
                        new TextMenu.OnOff("Disable Achievements".ToDialogText(), Settings.DisableAchievements).Change(value =>
                                                                                                                       Settings.DisableAchievements = value));
                    subMenu.Add(new TextMenu.OnOff("Mod 9D Lighting".ToDialogText(), Settings.Mod9DLighting).Change(value =>
                                                                                                                    Settings.Mod9DLighting = value));
                }),
                new TextMenu.Button(Dialog.Clean("options_keyconfig")).Pressed(() => {
                    menu.Focused = false;
                    Entity keyboardConfig;
                    if (CreateKeyboardConfigUi != null)
                    {
                        keyboardConfig = CreateKeyboardConfigUi.Invoke(everestModule, new object[] { menu }) as Entity;
                    }
                    else
                    {
                        keyboardConfig = new ModuleSettingsKeyboardConfigUI(everestModule)
                        {
                            OnClose = () => menu.Focused = true
                        };
                    }

                    Engine.Scene.Add(keyboardConfig);
                    Engine.Scene.OnEndOfFrame += () => Engine.Scene.Entities.UpdateLists();
                }).Apply(item => keyConfigButton = item)
            };
        }