void DoChanges() { MyTextsWrapper.ActualLanguage = (MyLanguagesEnum)m_languageCombobox.GetSelectedKey(); MyDialoguesWrapper.ActualLanguage = (MyLanguagesEnum)m_languageCombobox.GetSelectedKey(); MyMissions.ReloadTexts(); MyGuiObjectBuilderHelpers.ReloadTexts(); MyGuiManager.RecreateControls(); MyHudNotification.ReloadTexts(); foreach (var entity in MinerWars.AppCode.Game.Entities.MyEntities.GetEntities()) { entity.UpdateHudMarker(true); var cont = entity as MinerWars.AppCode.Game.Entities.MyPrefabContainer; if (cont != null) { foreach (var prefab in cont.GetPrefabs()) { prefab.UpdateHudMarker(true); } } } MySubtitles.Enabled = m_subtitlesCheckbox.Checked; MyConfig.Notifications = m_notificationsCheckbox.Checked; MyConfig.Save(); }