Пример #1
0
        public void OnResetSavedData()
        {
            ConfirmationMenu menu = Manager.GetMenu <ConfirmationMenu>();

            if (menu != null)
            {
                // Display confirmation dialog
                menu.DefaultToYes = false;
                menu.Show(CheckResetSavedDataConfirmation);

                // Indicate button is clicked
                Manager.ButtonClick.Play();
            }
        }
        public void OnResetDataClicked()
        {
            // Make sure the button isn't locked yet
            if (IsListeningToEvents == true)
            {
                ConfirmationMenu menu = Manager.GetMenu <ConfirmationMenu>();
                if (menu != null)
                {
                    // Display confirmation dialog
                    menu.DefaultToYes = false;
                    menu.UpdateDialog(this, resetDataMessage);
                    menu.Show(CheckResetSavedDataConfirmation);
                }

                // Indicate this button was clicked
                CurrentDefaultUi = resetDataButton.Component;
            }
        }