Exemple #1
0
 private bool onCloseManageIglooPopup(IglooUIEvents.CloseManageIglooPopup evt)
 {
     stateController.ShowLoadingModalPopup();
     if (evt.SceneLayoutData != null)
     {
         onUpdateIglooDataFromCloseButton(success: true, evt.SceneLayoutData);
     }
     else
     {
         stateController.DataManager.UpdateIglooData(onUpdateIglooDataFromCloseButton);
     }
     return(false);
 }
Exemple #2
0
 public void DeleteIglooLayout(long iglooId)
 {
     foreach (SavedIglooMetaData savedIgloo in savedIgloosMetaData.SavedIgloos)
     {
         if (savedIgloo.LayoutId == iglooId)
         {
             iglooToDelete = savedIgloo;
         }
     }
     if (iglooToDelete != null)
     {
         eventDispatcher.AddListener <IglooServiceEvents.IglooLayoutDeleted>(onIglooLayoutDeleted);
         stateController.ShowLoadingModalPopup();
         if (iglooToDelete.LayoutId == initialActiveIglooId)
         {
             stateController.DataManager.UpdateIglooData(onIglooDataUpdated);
         }
         else
         {
             iglooService.DeleteIglooLayout(iglooId);
         }
     }
     else
     {
         Log.LogErrorFormatted(this, "Tried to delete igloo (ID: {0}), but this igloo was not found in the SavedIgloosMetaData!", iglooId);
         stateController.IglooSaveStatusNotification(IglooUIStateController.IglooSaveStatus.GeneralError, showAfterSceneLoad: false);
     }
 }
Exemple #3
0
 private void onIglooConfirmUnfinishedBusinessPromptButtonClicked(DPrompt.ButtonFlags flags)
 {
     if (flags == DPrompt.ButtonFlags.NO)
     {
         stateController.ShowLoadingModalPopup();
         stateController.DataManager.LayoutManager.RemoveActiveSceneLayout();
         eventChannel.AddListener <SceneTransitionEvents.LayoutGameObjectsLoaded>(onSceneLayoutLoaded);
         stateController.DataManager.LayoutManager.AddNewSceneLayoutData(publishedLayout);
     }
     stateController.DataManager.StartSync();
 }