public static Localize ( string key ) : string | ||
key | string | |
Результат | string |
public static void OnSaveCompleted(bool success) { if (!success) { LocalizedMessageBox.Show(Localizer.Localize("ERROR_SAVE_FAILED"), Localizer.Localize("ERROR"), Localizer.Localize("Generic", "GENERIC_OK"), null, null, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1); } if (EditorDocument.m_saveCompletedCallback != null) { EditorDocument.m_saveCompletedCallback(success); } }
public static void OnLoadCompleted(bool success) { if (!success) { LocalizedMessageBox.Show(Localizer.Localize("ERROR_LOAD_FAILED"), Localizer.Localize("ERROR"), Localizer.Localize("Generic", "GENERIC_OK"), null, null, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1); MainForm.Instance.ClearMapPath(); } if (EditorDocument.m_loadCompletedCallback != null) { EditorDocument.m_loadCompletedCallback(success); } }
public static void Localize(MenuBarItem item) { string text = Localizer.Localize(item.Text); if (text == null) { item.Visible = false; return; } item.Text = text; foreach (MenuButtonItem item2 in item.Items) { Localizer.Localize(item2); } }
public static void EnterIngame(string gameMode) { if (!Binding.FCE_Editor_ValidateIngame()) { LocalizedMessageBox.Show(MainForm.Instance, Localizer.LocalizeCommon("MSG_DESC_INGAME_INVALID_OBJECTS"), Localizer.Localize("WARNING"), Localizer.Localize("Generic", "GENERIC_OK"), null, null, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); } MainForm.Instance.EnterIngame(); Binding.FCE_Editor_EnterIngame(gameMode); }