Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SCR_LoginProcessDialogUI Interface Reference
Inheritance diagram for SCR_LoginProcessDialogUI:
[legend]

Public Member Functions

override void OnMenuOpen (SCR_ConfigurableDialogUiPreset preset)
 Called last of all, after all the initialization of main element done.
 
override void OnMenuClose ()
 
override void OnConfirm ()
 
- Public Member Functions inherited from SCR_ConfigurableDialogUi
Widget GetRootWidget ()
 
OverlayWidget GetDialogBaseOverlay ()
 Returns the base dialog overlay (the rectangle covered by the background). Useful for dialog wide darkening (e.g. by SCR_LoadingOverlay)
 
Widget GetContentLayoutRoot ()
 Returns the root of the content layout.
 
SCR_ConfigurableDialogUiPreset GetDialogPreset ()
 
void Close ()
 
void SetTitle (string text)
 
void SetMessage (string text)
 
void SetMessageColor (Color color)
 
TextWidget GetMessageWidget ()
 
string GetMessageStr ()
 
void SetTitleIcon (ResourceName image, string imageName)
 Set title icons with custom image.
 
void SetIconColor (Color color)
 Set title icons with custom image.
 
void SetStyle (EConfigurableDialogStyle type)
 Sets colors based on style.
 
void BindButtonConfirm (SCR_InputButtonComponent button)
 Allows to register a custom button to call OnConfirm (i.e. one not in the conf files but placed by hand in the layout)
 
void BindButtonCancel (SCR_InputButtonComponent button)
 Allows to register a custom button to call OnCancel (i.e. one not in the conf files but placed by hand in the layout)
 
void BindButtonGeneric (SCR_InputButtonComponent button, string tag=string.Empty)
 Allows to register a custom button to call OnButtonPressed (i.e. one not in the conf files but placed by hand in the layout). An empty tag will result in the widget's name being used instead.
 
SCR_InputButtonComponent FindButton (string tag)
 Returns a button with given tag.
 
string GetButtonTag (SCR_InputButtonComponent button)
 Returns a button's tag.
 
void OnMenuUpdate (float tDelta)
 
void OnMenuFocusGained ()
 
void OnMenuFocusLost ()
 
void OnMenuShow ()
 
void OnMenuHide ()
 
void OnMenuClose ()
 

Static Public Member Functions

static void CreateLoginDialog ()
 
static SCR_PlayerProfileDialogUI CreateProfileDialog ()
 
static void Create2FADialog (string name, string code)
 
static SCR_ConfigurableDialogUi CreateLoginSuccessDialog ()
 
static SCR_ConfigurableDialogUi CreateLoginTimeoutDialog ()
 
static SCR_AccountLockedDialogUi CreateAccountLockedDialog ()
 
- Static Public Member Functions inherited from SCR_ConfigurableDialogUi
static SCR_ConfigurableDialogUi CreateFromPreset (ResourceName presetsResourceName, string tag, SCR_ConfigurableDialogUi customDialogObj=null)
 Creates a dialog from preset.
 
static SCR_ConfigurableDialogUi GetCurrentDialog ()
 
static string GetCurrentDialogTag ()
 
static bool IsPresetValid (ResourceName presetsResourceName, string tag)
 

Protected Member Functions

bool UpdateButtons ()
 
void ShowLoadingAnim (bool show)
 
void ShowWarningMessage (bool show)
 
void CopyPID ()
 Copy playerID to clipboard.
 
bool VerifyFormatting (string text)
 Override in children.
 
void OnCommStatusCheckFinished (SCR_ECommStatus status, float responseTime, float lastSuccessTime, float lastFailTime)
 
void OnTOSButton ()
 
void OnSuccess (SCR_BackendCallback callback)
 
void OnFail (SCR_BackendCallback callback, int code, int restCode, int apiCode)
 
void OnTimeout (SCR_BackendCallback callback)
 
void OnFailDelayed (SCR_BackendCallback callback, int code, int restCode, int apiCode)
 
void OnTimeoutScripted ()
 
- Protected Member Functions inherited from SCR_ConfigurableDialogUi
void OnConfirm ()
 
void OnCancel ()
 
void OnButtonPressed (SCR_InputButtonComponent button)
 
void OnMenuOpen (SCR_ConfigurableDialogUiPreset preset)
 Called last of all, after all the initialization of main element done.
 
void Init (Widget root, SCR_ConfigurableDialogUiPreset preset, MenuBase proxyMenu)
 
void InitWidgets ()
 
SCR_InputButtonComponent CreateButton (SCR_ConfigurableDialogUiButtonPreset buttonPreset)
 
void Internal_Close ()
 
void InitAttributedVariables ()
 Verifies that all attributed variables are set up.
 

Protected Attributes

SCR_InputButtonComponent m_TOSButton
 
SCR_InputButtonComponent m_ConfirmButton
 
SCR_InputButtonComponent m_CreateAccount
 
SCR_ButtonImageComponent m_CopyButtonComponent
 
RichTextWidget m_wPIDText
 
SCR_LoadingOverlay m_LoadingOverlay
 
SCR_SimpleWarningComponent m_Warning
 
bool m_bForceConfirmButtonDisabled
 
bool m_bIsLoading
 
ref SCR_BackendCallback m_Callback
 
- Protected Attributes inherited from SCR_ConfigurableDialogUi
float m_fFadeInTime
 
ResourceName m_sNavigationButtonLayout
 
string m_sWidgetNameButtonsLeft
 
string m_sWidgetNameButtonsRight
 
string m_sWidgetNameButtonsCenter
 
ImageWidget m_wImgTopLine
 
ImageWidget m_wImgTitleIcon
 
TextWidget m_wTitle
 
TextWidget m_wMessage
 
VerticalLayoutWidget m_wContentVerticalLayout
 
ref map< string, SCR_InputButtonComponentm_aButtonComponents = new map<string, SCR_InputButtonComponent>
 
Widget m_wRoot
 
OverlayWidget m_wDialogBase
 
SCR_DynamicFooterComponent m_DynamicFooter
 
MenuBase m_ProxyMenu
 
ref SCR_ConfigurableDialogUiPreset m_DialogPreset
 
string m_sLastPressedButtonTag
 
bool m_bIsClosing
 

Static Protected Attributes

const string TOS_BUTTON = "ProfileTOS"
 
const string TOS_LINK = "Link_PrivacyPolicy"
 
const string REGISTER_BUTTON = "createAccount"
 
const string REGISTER_LINK = "Link_RegisterAccount"
 
const string PID_TEXT_WIDGET = "PIDText"
 
const string PID_BUTTON_WIDGET = "CopyPIDButton"
 
const int ON_FAIL_DELAY = 2000
 
static const ResourceName DIALOG_CONFIG = "{9381BF296A0E273B}Configs/Dialogs/LoginDialogs.conf"
 
- Static Protected Attributes inherited from SCR_ConfigurableDialogUi
static SCR_ConfigurableDialogUi m_CurrentDialog
 

Additional Inherited Members

- Public Attributes inherited from SCR_ConfigurableDialogUi
ref ScriptInvoker m_OnConfirm = new ScriptInvoker()
 
ref ScriptInvoker m_OnCancel = new ScriptInvoker()
 
ref ScriptInvoker m_OnClose = new ScriptInvoker()
 
ref ScriptInvoker m_OnCloseStart = new ScriptInvoker()
 
ref ScriptInvoker m_OnButtonPressed = new ScriptInvoker()
 
- Static Public Attributes inherited from SCR_ConfigurableDialogUi
static const ResourceName NAVIGATION_BUTTON_LAYOUT = "{87037226B1A2064B}UI/layouts/WidgetLibrary/Buttons/WLib_NavigationButtonSuperSmall.layout"
 
static const string BUTTON_CONFIRM = "confirm"
 
static const string BUTTON_CANCEL = "cancel"
 
- Static Protected Member Functions inherited from SCR_ConfigurableDialogUi
static SCR_ConfigurableDialogUi CreateByPreset (SCR_ConfigurableDialogUiPreset preset, SCR_ConfigurableDialogUi customDialogObj=null)
 
static Widget GetContentWidget (Widget baseWidget)
 Returns the container in which to place the content layout. Container must be called ContentLayoutContainer.
 

Member Function Documentation

◆ CopyPID()

void SCR_LoginProcessDialogUI.CopyPID ( )
protected

Copy playerID to clipboard.

◆ Create2FADialog()

static void SCR_LoginProcessDialogUI.Create2FADialog ( string  name,
string  code 
)
static

◆ CreateAccountLockedDialog()

static SCR_AccountLockedDialogUi SCR_LoginProcessDialogUI.CreateAccountLockedDialog ( )
static

◆ CreateLoginDialog()

static void SCR_LoginProcessDialogUI.CreateLoginDialog ( )
static

◆ CreateLoginSuccessDialog()

static SCR_ConfigurableDialogUi SCR_LoginProcessDialogUI.CreateLoginSuccessDialog ( )
static

◆ CreateLoginTimeoutDialog()

static SCR_ConfigurableDialogUi SCR_LoginProcessDialogUI.CreateLoginTimeoutDialog ( )
static

◆ CreateProfileDialog()

static SCR_PlayerProfileDialogUI SCR_LoginProcessDialogUI.CreateProfileDialog ( )
static

◆ OnCommStatusCheckFinished()

void SCR_LoginProcessDialogUI.OnCommStatusCheckFinished ( SCR_ECommStatus  status,
float  responseTime,
float  lastSuccessTime,
float  lastFailTime 
)
protected

◆ OnConfirm()

override void SCR_LoginProcessDialogUI.OnConfirm ( )

◆ OnFail()

void SCR_LoginProcessDialogUI.OnFail ( SCR_BackendCallback  callback,
int  code,
int  restCode,
int  apiCode 
)
protected

◆ OnFailDelayed()

void SCR_LoginProcessDialogUI.OnFailDelayed ( SCR_BackendCallback  callback,
int  code,
int  restCode,
int  apiCode 
)
protected

◆ OnMenuClose()

override void SCR_LoginProcessDialogUI.OnMenuClose ( )

Implements SCR_ConfigurableDialogUi.

Implemented in SCR_Login2FADialogUI.

◆ OnMenuOpen()

override void SCR_LoginProcessDialogUI.OnMenuOpen ( SCR_ConfigurableDialogUiPreset  preset)

Called last of all, after all the initialization of main element done.

Here you can perform custom initialization.

Implements SCR_ConfigurableDialogUi.

Implemented in SCR_Login2FADialogUI, SCR_LoginDialogUI, and SCR_LoginDialogConsoleUI.

◆ OnSuccess()

void SCR_LoginProcessDialogUI.OnSuccess ( SCR_BackendCallback  callback)
protected

Implemented in SCR_PlayerProfileDialogUI.

◆ OnTimeout()

void SCR_LoginProcessDialogUI.OnTimeout ( SCR_BackendCallback  callback)
protected

Implemented in SCR_Login2FADialogUI.

◆ OnTimeoutScripted()

void SCR_LoginProcessDialogUI.OnTimeoutScripted ( )
protected

◆ OnTOSButton()

void SCR_LoginProcessDialogUI.OnTOSButton ( )
protected

◆ ShowLoadingAnim()

void SCR_LoginProcessDialogUI.ShowLoadingAnim ( bool  show)
protected

◆ ShowWarningMessage()

void SCR_LoginProcessDialogUI.ShowWarningMessage ( bool  show)
protected

Implemented in SCR_LoginDialogUI.

◆ UpdateButtons()

bool SCR_LoginProcessDialogUI.UpdateButtons ( )
protected

◆ VerifyFormatting()

bool SCR_LoginProcessDialogUI.VerifyFormatting ( string  text)
protected

Override in children.

Implemented in SCR_Login2FADialogUI, and SCR_LoginDialogUI.

Member Data Documentation

◆ DIALOG_CONFIG

const ResourceName SCR_LoginProcessDialogUI.DIALOG_CONFIG = "{9381BF296A0E273B}Configs/Dialogs/LoginDialogs.conf"
staticprotected

◆ m_bForceConfirmButtonDisabled

bool SCR_LoginProcessDialogUI.m_bForceConfirmButtonDisabled
protected

◆ m_bIsLoading

bool SCR_LoginProcessDialogUI.m_bIsLoading
protected

◆ m_Callback

ref SCR_BackendCallback SCR_LoginProcessDialogUI.m_Callback
protected

◆ m_ConfirmButton

SCR_InputButtonComponent SCR_LoginProcessDialogUI.m_ConfirmButton
protected

◆ m_CopyButtonComponent

SCR_ButtonImageComponent SCR_LoginProcessDialogUI.m_CopyButtonComponent
protected

◆ m_CreateAccount

SCR_InputButtonComponent SCR_LoginProcessDialogUI.m_CreateAccount
protected

◆ m_LoadingOverlay

SCR_LoadingOverlay SCR_LoginProcessDialogUI.m_LoadingOverlay
protected

◆ m_TOSButton

SCR_InputButtonComponent SCR_LoginProcessDialogUI.m_TOSButton
protected

◆ m_Warning

SCR_SimpleWarningComponent SCR_LoginProcessDialogUI.m_Warning
protected

◆ m_wPIDText

RichTextWidget SCR_LoginProcessDialogUI.m_wPIDText
protected

◆ ON_FAIL_DELAY

const int SCR_LoginProcessDialogUI.ON_FAIL_DELAY = 2000
staticprotected

◆ PID_BUTTON_WIDGET

const string SCR_LoginProcessDialogUI.PID_BUTTON_WIDGET = "CopyPIDButton"
staticprotected

◆ PID_TEXT_WIDGET

const string SCR_LoginProcessDialogUI.PID_TEXT_WIDGET = "PIDText"
staticprotected

◆ REGISTER_BUTTON

const string SCR_LoginProcessDialogUI.REGISTER_BUTTON = "createAccount"
staticprotected

◆ REGISTER_LINK

const string SCR_LoginProcessDialogUI.REGISTER_LINK = "Link_RegisterAccount"
staticprotected

◆ TOS_BUTTON

const string SCR_LoginProcessDialogUI.TOS_BUTTON = "ProfileTOS"
staticprotected

◆ TOS_LINK

const string SCR_LoginProcessDialogUI.TOS_LINK = "Link_PrivacyPolicy"
staticprotected

The documentation for this interface was generated from the following file: