public override void Update() { if (m_windowModeButton.IsClicked) { SettingsManager.WindowMode = (WindowMode)((int)(SettingsManager.WindowMode + 1) % EnumUtils.GetEnumValues(typeof(WindowMode)).Count); } if (m_languageButton.IsClicked) { DialogsManager.ShowDialog(null, new MessageDialog(LanguageControl.Get(fName, 1), LanguageControl.Get(fName, 2), LanguageControl.Get("Usual", "yes"), LanguageControl.Get("Usual", "no"), delegate(MessageDialogButton button) { if (button == MessageDialogButton.Button1) { ModsManager.modSettings.languageType = (LanguageControl.LanguageType)((int)(ModsManager.modSettings.languageType + 1) % EnumUtils.GetEnumValues(typeof(LanguageControl.LanguageType)).Count); ModsManager.SaveSettings(); System.Environment.Exit(0); } })); } if (m_uiSizeButton.IsClicked) { SettingsManager.GuiSize = (GuiSize)((int)(SettingsManager.GuiSize + 1) % EnumUtils.GetEnumValues(typeof(GuiSize)).Count); } if (m_upsideDownButton.IsClicked) { SettingsManager.UpsideDownLayout = !SettingsManager.UpsideDownLayout; } if (m_hideMoveLookPadsButton.IsClicked) { SettingsManager.HideMoveLookPads = !SettingsManager.HideMoveLookPads; } if (m_showGuiInScreenshotsButton.IsClicked) { SettingsManager.ShowGuiInScreenshots = !SettingsManager.ShowGuiInScreenshots; } if (m_showLogoInScreenshotsButton.IsClicked) { SettingsManager.ShowLogoInScreenshots = !SettingsManager.ShowLogoInScreenshots; } if (m_screenshotSizeButton.IsClicked) { SettingsManager.ScreenshotSize = (ScreenshotSize)((int)(SettingsManager.ScreenshotSize + 1) % EnumUtils.GetEnumValues(typeof(ScreenshotSize)).Count); } if (m_communityContentModeButton.IsClicked) { SettingsManager.CommunityContentMode = (CommunityContentMode)((int)(SettingsManager.CommunityContentMode + 1) % EnumUtils.GetEnumValues(typeof(CommunityContentMode)).Count); } m_windowModeButton.Text = LanguageControl.Get("WindowMode", SettingsManager.WindowMode.ToString()); m_uiSizeButton.Text = LanguageControl.Get("GuiSize", SettingsManager.GuiSize.ToString()); m_languageButton.Text = LanguageControl.LName(); m_upsideDownButton.Text = (SettingsManager.UpsideDownLayout ? LanguageControl.Get("Usual", "yes") : LanguageControl.Get("Usual", "no")); m_hideMoveLookPadsButton.Text = (SettingsManager.HideMoveLookPads ? LanguageControl.Get("Usual", "yes") : LanguageControl.Get("Usual", "no")); m_showGuiInScreenshotsButton.Text = (SettingsManager.ShowGuiInScreenshots ? LanguageControl.Get("Usual", "yes") : LanguageControl.Get("Usual", "no")); m_showLogoInScreenshotsButton.Text = (SettingsManager.ShowLogoInScreenshots ? LanguageControl.Get("Usual", "yes") : LanguageControl.Get("Usual", "no")); m_screenshotSizeButton.Text = LanguageControl.Get("ScreenshotSize", SettingsManager.ScreenshotSize.ToString()); m_communityContentModeButton.Text = LanguageControl.Get("CommunityContentMode", SettingsManager.CommunityContentMode.ToString()); if (base.Input.Back || base.Input.Cancel || Children.Find <ButtonWidget>("TopBar.Back").IsClicked) { ScreensManager.SwitchScreen(ScreensManager.PreviousScreen); } }