public void ShowStorageWarning(StorageDeviceWarningType type) { StorageDeviceWarningScreen storageWarningScreen = new StorageDeviceWarningScreen(type); storageWarningScreen.Continue += storageWarningContinue; ScreenManager.AddScreen(storageWarningScreen); }
public StorageDeviceWarningScreen(StorageDeviceWarningType type) { this.type = type; switch (type) { case StorageDeviceWarningType.AutoSaveWarn: message = $"Hello {SignInManager.Instance.GamerTag}!\nYour progress will be saved\nautomatically. Do not power\noff or reset your console\nwhile loading or saving."; break; case StorageDeviceWarningType.StorageIsNull: message = "You chose not to select a\nstorage device.\nYour progress will not be saved."; break; } IsPopup = true; TransitionOnTime = TimeSpan.FromSeconds(.5); TransitionOffTime = TimeSpan.FromSeconds(.5); AudioManager.PlayCue("openWindow"); }