public void QuitApplication() { GlobalUI.ShowPrompt(LocalizationDataId.UI_AreYouSure, () => { Debug.Log("Application Quit"); Application.Quit(); }, () => { }); }
public void QuitApplication() { GlobalUI.ShowPrompt(LocalizationDataId.UI_AreYouSure, () => { Debug.Log("Application Quit"); Application.Quit(); }, () => { }, KeeperMode.LearningNoSubtitles); }
public void OnBtnShareData() { AppManager.I.AppSettingsManager.ToggleShareAnalytics(); AnalyticsCheckIcon.Set(AppManager.I.AppSettings.ShareAnalyticsEnabled); if (AppManager.I.AppSettings.ShareAnalyticsEnabled) { GlobalUI.ShowPrompt(LocalizationDataId.UI_Prompt_ShareData); } }
public void OnlineAnalyticsRequest() { GlobalUI.ShowPrompt(LocalizationDataId.UI_PromptOnlineAnalytics, () => { AppManager.I.AppSettingsManager.EnableShareAnalytics(true); Close(); }, () => { AppManager.I.AppSettingsManager.EnableShareAnalytics(false); Close(); }); }
private void HandleDeleteConfirmationRequested() { showPurchasePanelAlwaysAvailableTween.PlayBackwards(); confirmationPanelUI.SetupForDeletion(); ShopDecorationsManager.I.ResetSlotHighlights(); GlobalUI.ShowPrompt(LocalizationDataId.UI_AreYouSure, ShopDecorationsManager.I.ConfirmDeletion, ShopDecorationsManager.I.CancelDeletion, KeeperMode.LearningNoSubtitles); }
public void Prompt_Show(bool yesOnly) { if (yesOnly) { GlobalUI.ShowPrompt("لعربية", "", () => Debug.Log("YES")); } else { GlobalUI.ShowPrompt("لعربية", "", () => Debug.Log("YES"), () => Debug.Log("NO")); } }
public void OnCreateDemoPlayer() { if (AppManager.I.PlayerProfileManager.IsDemoUserExisting()) { GlobalUI.ShowPrompt(Database.LocalizationDataId.ReservedArea_DemoUserAlreadyExists); } else { GlobalUI.ShowPrompt(Database.LocalizationDataId.UI_AreYouSure, DoCreateDemoPlayer, DoNothing); } }
/// <summary> /// exports all databases found in /// </summary> public void OnExportDatabasesJoined() { string errorString = ""; if (AppManager.I.DB.ExportPlayersJoinedDb(out errorString)) { string dbPath = DBService.GetDatabaseFilePath(AppConfig.GetJoinedDatabaseFilename(), AppConfig.DbJoinedFolder); GlobalUI.ShowPrompt("", "The joined DB is here:\n" + dbPath); } else { GlobalUI.ShowPrompt("", "Could not export the joined database.\n"); } }
public void OnOpenInstallInstructions() { if (AppManager.I.SpecificEdition.Edition == AppEditions.LearnEnglish_Ceibal) { var pdfViewerPrefab = Resources.Load("Pdf/CeibalPDFViewer") as GameObject; var pdfViewer = Instantiate(pdfViewerPrefab); pdfViewer.transform.SetParent(GameObject.Find("[GlobalUI]").transform, false); } else { GlobalUI.ShowPrompt(LocalizationDataId.UI_Prompt_AndroidInstallPDF); OpenPDF(AppConfig.PdfAndroidInstall); } }
public void OnExportSelectPlayerProfile() { if (AppManager.I.DB.ExportPlayerDb(SelectedPlayerId)) { string dbPath; if (Application.platform == RuntimePlatform.IPhonePlayer) { dbPath = string.Format(@"{0}/{1}", AppConfig.DbExportFolder, AppConfig.GetPlayerDatabaseFilename(SelectedPlayerId)); GlobalUI.ShowPrompt("", "Get the DB from iTunes app:\n" + dbPath); } else { // Android or Desktop dbPath = string.Format(@"{0}/{1}/{2}", Application.persistentDataPath, AppConfig.DbExportFolder, AppConfig.GetPlayerDatabaseFilename(SelectedPlayerId)); GlobalUI.ShowPrompt("", "The DB is here:\n" + dbPath); } } else { GlobalUI.ShowPrompt("", "Could not export the database.\n"); } }
public void OnOpenInstallInstructions() { GlobalUI.ShowPrompt(LocalizationDataId.UI_Prompt_AndroidInstallPDF); OpenPDF(AppConfig.PdfAndroidInstall); }
public void Prompt_Show() { GlobalUI.ShowPrompt(true, "لعربية"); }
public void BtnOpenPhotoGallery() { GlobalUI.ShowPrompt(LocalizationDataId.AnturaSpace_Photo_Gallery); }
public void OnOpenRateApp() { GlobalUI.ShowPrompt(LocalizationDataId.UI_Prompt_rate, DoOpenRateApp, DoNothing); }
public void OnDeleteSelectPlayerProfile() { GlobalUI.ShowPrompt(Database.LocalizationDataId.UI_AreYouSure, DoDeleteSelectPlayerProfile, DoNothing); }
public void OnOpenSupportForm() { GlobalUI.ShowPrompt(Database.LocalizationDataId.UI_Prompt_bugreport, DoOpenSupportForm, DoNothing); }
public void OnDeleteSelectPlayerProfile() { GlobalUI.ShowPrompt(Database.LocalizationDataId.UI_AreYouSure, DoDeleteSelectPlayerProfile, DoNothing, Keeper.KeeperMode.LearningNoSubtitles); }