private void showAccountBannedPrompt(PromptLoaderCMD promptLoader, SessionErrorEvents.AccountBannedEvent evt) { showingError = true; CPDataEntityCollection cPDataEntityCollection = Service.Get <CPDataEntityCollection>(); if (cPDataEntityCollection.TryGetComponent <DisplayNameData>(cPDataEntityCollection.LocalPlayerHandle, out var component)) { promptLoader.PromptData.SetText(DPrompt.PROMPT_TEXT_TITLE, component.DisplayName, isTranslated: true); } else { promptLoader.PromptData.SetText(DPrompt.PROMPT_TEXT_TITLE, "GlobalUI.ErrorMessages.AccountBanned.Title"); } SessionErrorEvents.AccountBannedPromptSetup(promptLoader.PromptData, evt.Category, evt.ExpirationDate); Service.Get <PromptManager>().ShowPrompt(promptLoader.PromptData, clearShowingError, promptLoader.Prefab); gameStateController.ExitAfterBan(); }
protected virtual void onAccountBannedPromptLoaded(PromptLoaderCMD promptLoader, AlertType category, DateTime?expirationDate) { SessionErrorEvents.AccountBannedPromptSetup(promptLoader.PromptData, category, expirationDate); Service.Get <PromptManager>().ShowPrompt(promptLoader.PromptData, null, promptLoader.Prefab); }