Esempio n. 1
0
        private void ResetFileButtons()
        {
            _dialogOpen = false;
            _eraseButton.Enable();

            _file0Button.ResetEventHandlers();
            _file1Button.ResetEventHandlers();
            _file2Button.ResetEventHandlers();

            _file0Button.OnSelected += RaiseLoadGameEvent;
            _file1Button.OnSelected += RaiseLoadGameEvent;
            _file2Button.OnSelected += RaiseLoadGameEvent;
            _file0Button.Args        = new StartOrLoadEventArgs(0);
            _file1Button.Args        = new StartOrLoadEventArgs(1);
            _file2Button.Args        = new StartOrLoadEventArgs(2);

            HighlightFileBasedOnIndex();
        }
Esempio n. 2
0
        public override void EnterMenu(MenuPageNames name, PreferenceData data)
        {
            UnhideAllButtons();
            UpdateWithPreferenceData(data);

            _backButton.Enable();
            _eraseButton.Enable();

            HighlightFileBasedOnIndex();

            if (name == MenuPageNames.Start)
            {
                _previousMenuArgs = new SwitchPageEventArgs(MenuPageNames.Start, _name);
                _backButton.Args  = _previousMenuArgs;
                ResetFileButtons();
            }
            else
            {
                _previousMenuArgs = new SwitchPageEventArgs(MenuPageNames.ExitMenu, _name);
                _backButton.Args  = _previousMenuArgs;
            }
        }