示例#1
0
        public override void Update()
        {
            orig_Update();

            if (newGameLevelSetPicker != null && selected && fileSelect.Selected && fileSelect.Focused &&
                !StartingGame && tween == null && inputDelay <= 0f && !StartingGame && !deleting)
            {
                // currently highlighted option is the level set picker, call its Update() method to handle Left and Right presses.
                newGameLevelSetPicker.Update(buttons[buttonIndex] == newGameLevelSetPicker);
            }
        }
示例#2
0
        public override void Update()
        {
            orig_Update();

            if (newGameLevelSetPicker != null && selected && fileSelect.Selected && fileSelect.Focused &&
                !StartingGame && tween == null && inputDelay <= 0f && !StartingGame && !deleting)
            {
                // currently highlighted option is the level set picker, call its Update() method to handle Left and Right presses.
                newGameLevelSetPicker.Update(buttons[buttonIndex] == newGameLevelSetPicker);

                if (MInput.Keyboard.Check(Keys.LeftControl) && MInput.Keyboard.Pressed(Keys.S))
                {
                    // Ctrl+S: change the default starting level set to the currently selected one.
                    CoreModule.Settings.DefaultStartingLevelSet = newGameLevelSetPicker.NewGameLevelSet;
                    CoreModule.Instance.SaveSettings();
                    Audio.Play("event:/new_content/ui/rename_entry_accept_locked");
                }
            }
        }