9 protected const string TOS_LINK =
"Link_PrivacyPolicy";
44 SCR_LoginDialogConsoleUI dialog =
new SCR_LoginDialogConsoleUI();
70 SCR_Login2FADialogConsoleUI dialog =
new SCR_Login2FADialogConsoleUI(name, code);
97 SCR_AccountLockedDialogUi dialog =
new SCR_AccountLockedDialogUi();
107 super.OnMenuOpen(preset);
234 private void OnCreateAccount()
251 if (callback.GetRestResult() !=
ERestResult.EREST_ERROR_TIMEOUT)
296 if (callback.GetApiCode() ==
EApiCode.EACODE_ERROR_USER_NOT_FOUND)
300 else if (callback.GetApiCode() ==
EApiCode.EACODE_ERROR_USER_LOCKED)
324 protected const string MINUTES =
"#AR-ValueUnit_Short_Minutes";
325 protected const string SECONDS =
"#AR-ValueUnit_Short_Seconds";
327 protected const string SUPPORT =
"Link_SupportEmail";
332 super.OnMenuOpen(preset);
341 string message =
string.Format(
"<color rgba=%1>%2</color>",
UIColors.FormatColor(
UIColors.CONTRAST_COLOR),
GetGame().GetBackendApi().GetLinkItem(
SUPPORT));
360 int minutes = seconds / 60;
bool IsPlatformGameConsole()
ArmaReforgerScripted GetGame()
void SCR_Login2FADialogUI(string name, string code)
Widget GetContentWidget()
@ TWO_FACTOR_AUTHENTICATION
SCR_LoginProcessDialogUI MAIN_MESSAGE
const string CONTENT_MESSAGE
SCR_ECommStatus
This class may become obsolete on BackendAPI update.
static SCR_ConfigurableDialogUi CreateFromPreset(ResourceName presetsResourceName, string tag, SCR_ConfigurableDialogUi customDialogObj=null)
Creates a dialog from preset.
SCR_InputButtonComponent FindButton(string tag)
Returns a button with given tag.
void SetMessage(string text)
OverlayWidget GetDialogBaseOverlay()
Returns the base dialog overlay (the rectangle covered by the background). Useful for dialog wide dar...
static const string BUTTON_CONFIRM
Configuration for a dialog.
static SCR_LoadingOverlay ShowForWidget(Widget targetWidget, string text=string.Empty, bool showBlur=true, bool showBackground=true)
override void OnConfirm()
const string REGISTER_BUTTON
override void OnMenuOpen(SCR_ConfigurableDialogUiPreset preset)
const string PID_TEXT_WIDGET
static SCR_AccountLockedDialogUi CreateAccountLockedDialog()
SCR_InputButtonComponent m_TOSButton
static SCR_LoginDialogUI CreateLoginDialog()
static SCR_ConfigurableDialogUi CreateLoginSuccessDialog()
ref BackendCallback m_Callback
void OnFailDelayed(BackendCallback callback)
bool VerifyFormatting(string text)
Override in children.
SCR_SimpleWarningComponent m_Warning
void ShowLoadingAnim(bool show)
static SCR_PlayerProfileDialogUI CreateProfileDialog()
static const ResourceName DIALOG_CONFIG
SCR_LoadingOverlay m_LoadingOverlay
BackendCallback GetCallback()
override void OnMenuClose()
SCR_InputButtonComponent m_ConfirmButton
SCR_InputButtonComponent m_CreateAccount
void OnFail(BackendCallback callback)
void ShowWarningMessage(bool show)
RichTextWidget m_wPIDText
void CopyPID()
Copy playerID to clipboard.
SCR_ButtonImageComponent m_CopyButtonComponent
void OnSuccess(BackendCallback callback)
const string PID_BUTTON_WIDGET
static SCR_ConfigurableDialogUi CreateLoginTimeoutDialog()
static void Create2FADialog(string name, string code)
const string REGISTER_LINK
bool m_bForceConfirmButtonDisabled
void OnCommStatusCheckFinished(SCR_ECommStatus status, float responseTime, float lastSuccessTime, float lastFailTime)
static bool IsServiceActive(string serviceName)
static const string SERVICE_ACCOUNT_PROFILE
static bool IsBackendConnectionAvailable()
static ScriptInvokerCommStatus GetOnCommStatusCheckFinished()
static void RefreshPing()
static const int AUTOMATIC_REFRESH_RATE
static SCR_SimpleWarningComponent FindComponentInHierarchy(notnull Widget root)
ERestResult
States and result + error code produced by RestApi.