Exemple #1
0
        public void ConfirmSettings()
        {
            var prevSettings = GameSettings.Default.Clone();

            ApplySettings(GetNewSettings());
            var popup = new SettingsApplier()
            {
                PreviousSettings = prevSettings,
                State            = this,
                Text             = "Do you want to keep these settings? They will be reverted after 10 seconds...",
                CancelText       = ""
            };

            GuiRoot.ShowModalPopup(popup);
            GuiRoot.RegisterForUpdate(popup);
        }