public async override void Confirm() { Base.RequestResult result = await ValidateFields(); if (result.Success) { NewProject(); } else { Notifications.Instance.ShowNotification("Failed to create new project", result.Message); } }
public async void RenamePackage(string newUserId) { Base.GameManager.Instance.ShowLoadingScreen(); Base.RequestResult result = await Base.GameManager.Instance.RenamePackage(packageTile.PackageId, newUserId, false); if (result.Success) { inputDialog.Close(); packageTile.SetLabel(newUserId); SetLabel(newUserId); Close(); } Base.GameManager.Instance.HideLoadingScreen(); }
public async void FieldChanged() { Base.RequestResult result = await ValidateFields(); OKBtn.SetInteractivity(result.Success, result.Message); }