Exemplo n.º 1
0
 void StateUpdateHandler(PlayFabEditor.EdExStates state, string status, string json)
 {
     switch (state)
     {
     case PlayFabEditor.EdExStates.OnMenuItemClicked:
         DeselectAll();
         if (items != null && items.Count > 0)
         {
             items.First().Value.isSelected = true;
         }
         break;
     }
 }
Exemplo n.º 2
0
        public static void StateUpdateHandler(PlayFabEditor.EdExStates state, string status, string json)
        {
            switch (state)
            {
            case PlayFabEditor.EdExStates.OnMenuItemClicked:
                break;

            case PlayFabEditor.EdExStates.OnLogout:
                if (tdViewer != null)
                {
                    tdViewer.items.Clear();
                }
                break;
            }
        }
Exemplo n.º 3
0
 void StateUpdateHandler(PlayFabEditor.EdExStates state, string status, string json)
 {
     switch (state)
     {
     case PlayFabEditor.EdExStates.OnMenuItemClicked:
         DeselectAll();
         if (items != null)
         {
             foreach (var each in items)
             {
                 each.Value.isSelected = true;     // Select the first
                 break;
             }
         }
         break;
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// Handles state updates within the editor extension.
        /// </summary>
        /// <param name="state">the state that triggered this event.</param>
        /// <param name="status">a generic message about the status.</param>
        /// <param name="json">a generic container for additional JSON encoded info.</param>
        public static void StateUpdateHandler(PlayFabEditor.EdExStates state, string status, string json)
        {
            switch (state)
            {
            case PlayFabEditor.EdExStates.OnMenuItemClicked:
                if (status == "Settings")
                {
                    _isSettingsSet = false;
                    studioOptions  = null;
                    SetSettingsProperties();
                }
                break;

            case PlayFabEditor.EdExStates.OnLogin:
                studioOptions = null;
                break;
            }
        }