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; } }
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; } }
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; } }
/// <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; } }