예제 #1
0
 public void QuitApplication()
 {
     GlobalUI.ShowPrompt(LocalizationDataId.UI_AreYouSure, () => {
         Debug.Log("Application Quit");
         Application.Quit();
     }, () => {
     });
 }
예제 #2
0
 public void QuitApplication()
 {
     GlobalUI.ShowPrompt(LocalizationDataId.UI_AreYouSure, () => {
         Debug.Log("Application Quit");
         Application.Quit();
     }, () => {
     }, KeeperMode.LearningNoSubtitles);
 }
예제 #3
0
        public void OnBtnShareData()
        {
            AppManager.I.AppSettingsManager.ToggleShareAnalytics();
            AnalyticsCheckIcon.Set(AppManager.I.AppSettings.ShareAnalyticsEnabled);

            if (AppManager.I.AppSettings.ShareAnalyticsEnabled)
            {
                GlobalUI.ShowPrompt(LocalizationDataId.UI_Prompt_ShareData);
            }
        }
예제 #4
0
 public void OnlineAnalyticsRequest()
 {
     GlobalUI.ShowPrompt(LocalizationDataId.UI_PromptOnlineAnalytics, () => {
         AppManager.I.AppSettingsManager.EnableShareAnalytics(true);
         Close();
     }, () => {
         AppManager.I.AppSettingsManager.EnableShareAnalytics(false);
         Close();
     });
 }
예제 #5
0
        private void HandleDeleteConfirmationRequested()
        {
            showPurchasePanelAlwaysAvailableTween.PlayBackwards();

            confirmationPanelUI.SetupForDeletion();

            ShopDecorationsManager.I.ResetSlotHighlights();

            GlobalUI.ShowPrompt(LocalizationDataId.UI_AreYouSure, ShopDecorationsManager.I.ConfirmDeletion, ShopDecorationsManager.I.CancelDeletion, KeeperMode.LearningNoSubtitles);
        }
예제 #6
0
 public void Prompt_Show(bool yesOnly)
 {
     if (yesOnly)
     {
         GlobalUI.ShowPrompt("لعربية", "", () => Debug.Log("YES"));
     }
     else
     {
         GlobalUI.ShowPrompt("لعربية", "", () => Debug.Log("YES"), () => Debug.Log("NO"));
     }
 }
예제 #7
0
 public void OnCreateDemoPlayer()
 {
     if (AppManager.I.PlayerProfileManager.IsDemoUserExisting())
     {
         GlobalUI.ShowPrompt(Database.LocalizationDataId.ReservedArea_DemoUserAlreadyExists);
     }
     else
     {
         GlobalUI.ShowPrompt(Database.LocalizationDataId.UI_AreYouSure, DoCreateDemoPlayer, DoNothing);
     }
 }
예제 #8
0
        /// <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");
            }
        }
예제 #9
0
 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);
     }
 }
예제 #10
0
 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");
     }
 }
예제 #11
0
 public void OnOpenInstallInstructions()
 {
     GlobalUI.ShowPrompt(LocalizationDataId.UI_Prompt_AndroidInstallPDF);
     OpenPDF(AppConfig.PdfAndroidInstall);
 }
예제 #12
0
 public void Prompt_Show()
 {
     GlobalUI.ShowPrompt(true, "لعربية");
 }
예제 #13
0
 public void BtnOpenPhotoGallery()
 {
     GlobalUI.ShowPrompt(LocalizationDataId.AnturaSpace_Photo_Gallery);
 }
예제 #14
0
 public void OnOpenRateApp()
 {
     GlobalUI.ShowPrompt(LocalizationDataId.UI_Prompt_rate, DoOpenRateApp, DoNothing);
 }
예제 #15
0
 public void OnDeleteSelectPlayerProfile()
 {
     GlobalUI.ShowPrompt(Database.LocalizationDataId.UI_AreYouSure, DoDeleteSelectPlayerProfile, DoNothing);
 }
예제 #16
0
 public void OnOpenSupportForm()
 {
     GlobalUI.ShowPrompt(Database.LocalizationDataId.UI_Prompt_bugreport, DoOpenSupportForm, DoNothing);
 }
예제 #17
0
 public void OnDeleteSelectPlayerProfile()
 {
     GlobalUI.ShowPrompt(Database.LocalizationDataId.UI_AreYouSure, DoDeleteSelectPlayerProfile, DoNothing, Keeper.KeeperMode.LearningNoSubtitles);
 }