private void EditCallback(ModalDialog.Response response, string newName) { switch (response) { case ModalDialog.Response.Confirm: HandleNewName(newName); return; case ModalDialog.Response.Cancel: //Do nothing return; default: Debug.LogError($"Unexpected ModalDialog.Response: {response}"); return; } }
protected void LockSubmit(ModalDialog.Response response, string input) { switch (response) { case ModalDialog.Response.Confirm: if (input == "3141") { PlayerData.GlobalData.IsLocked = false; } else { ModalDialog.ShowSimpleModal( mode: ModalDialog.Mode.Accept, headerText: "Incorrect Code", bodyText: "The entered code was incorrect."); } break; case ModalDialog.Response.Cancel: //Do nothing break; default: Debug.LogError($"Unexpected ModalDialog.Response: {response}"); break; } switch (currentMode) { case SettingPanelMode.General: generalSettingsMenu.LockStateChanged(); break; case SettingPanelMode.UserSelect: userIDMenu.LockStateChanged(); break; default: Debug.LogError($"Unexpected mode: {currentMode}"); break; } UpdateUIForMode(currentMode); }
private void DeleteCallback(ModalDialog.Response response) { switch (response) { case ModalDialog.Response.A: //Delete itemList.Remove(selectedItem); RebuildList(); return; case ModalDialog.Response.B: //Do nothing return; default: Debug.LogError($"Unexpected ModalDialog.Response: {response}"); return; } }
private void UserNameSubmitted( ModalDialog.Response response, string userName) { switch (response) { case ModalDialog.Response.Confirm: Submit(userName); break; case ModalDialog.Response.Cancel: break; case ModalDialog.Response.Accept: default: Debug.LogError($"Unexpected ModalDialog.Response: {response}"); break; } }