private void InitLangMenu() { langMenuController.SetMenuName("Languages"); foreach (string lang in ObjectManager.CurrentGEM.AvailableLangs) { langMenuController.AddButton(lang, delegate { ChangeLang(lang); }); } //langMenuController.AddBackButton(); langMenuController.SetActive(false); }
private void InitEscMenu() { escapeMenuController.SetMenuName(LabelUtility.Instance.GetLabel(LabelNames.MENU)); if (ObjectManager.CurrentGEM.GameProperties.IsMenuSaveAvailable) { escapeMenuController.AddButton(LabelUtility.Instance.GetLabel(LabelNames.SAVE), delegate { OpenSaverMenu(); }); } escapeMenuController.AddButton(LabelUtility.Instance.GetLabel(LabelNames.LOAD), savedGameLoader.OpenLoadMenu); escapeMenuController.AddButton(LabelUtility.Instance.GetLabel(LabelNames.EXIT), GameMMExit); escapeMenuController.AddBackButton(LabelUtility.Instance.GetLabel(LabelNames.BACK)); escapeMenuController.SetActive(false); }