Arma Reforger Script API
|
Public Member Functions | |
void | SCR_Login2FADialogUI (string name, string code) |
override void | OnMenuOpen (SCR_ConfigurableDialogUiPreset preset) |
Called last of all, after all the initialization of main element done. | |
override void | OnMenuClose () |
override void | OnConfirm () |
override void | OnTimeout (SCR_BackendCallback callback) |
override void | OnFailDelayed (SCR_BackendCallback callback, int code, int restCode, int apiCode) |
override bool | VerifyFormatting (string text) |
Override in children. | |
![]() | |
SCR_BackendCallback | GetCallback () |
![]() | |
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 () |
Protected Member Functions | |
void | ActivateFirstEditBox () |
Overridden in console version. | |
void | BindEditBoxInputEvent (SCR_EditBoxComponent comp) |
Overridden in console version. | |
void | OnTextChange (string text) |
If number was inserted into current EditBox, add that number to the string and go to next EditBox. If all are filled, proceed to verification. | |
bool | IsCodeComplete () |
We have a number of single digit edit boxes. Overridden in console version. | |
void | Clear () |
![]() | |
bool | UpdateButtons () |
void | ShowLoadingAnim (bool show) |
void | ShowWarningMessage (bool show) |
void | CopyPID () |
Copy playerID to clipboard. | |
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 | OnTimeoutScripted () |
![]() | |
void | OnCancel () |
void | OnButtonPressed (SCR_InputButtonComponent button) |
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. | |
Static Protected Attributes | |
const int | EDIT_BOX_INITIAL_FOCUS_DELAY = 100 |
const int | EDIT_BOX_FLICKER_TIME = 400 |
![]() | |
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 SCR_ConfigurableDialogUi | m_CurrentDialog |
Additional Inherited Members | |
![]() | |
static SCR_LoginDialogUI | 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 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) |
![]() | |
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 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 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. | |
void SCR_Login2FADialogUI.SCR_Login2FADialogUI | ( | string | name, |
string | code ) |
|
protected |
Overridden in console version.
Implemented in SCR_Login2FADialogConsoleUI.
|
protected |
Overridden in console version.
Implemented in SCR_Login2FADialogConsoleUI.
|
protected |
|
protected |
We have a number of single digit edit boxes. Overridden in console version.
Implemented in SCR_Login2FADialogConsoleUI.
override void SCR_Login2FADialogUI.OnConfirm | ( | ) |
Implements SCR_LoginProcessDialogUI.
override void SCR_Login2FADialogUI.OnFailDelayed | ( | SCR_BackendCallback | callback, |
int | code, | ||
int | restCode, | ||
int | apiCode ) |
Implements SCR_LoginProcessDialogUI.
override void SCR_Login2FADialogUI.OnMenuClose | ( | ) |
Implements SCR_LoginProcessDialogUI.
override void SCR_Login2FADialogUI.OnMenuOpen | ( | SCR_ConfigurableDialogUiPreset | preset | ) |
Called last of all, after all the initialization of main element done.
Here you can perform custom initialization.
Implements SCR_LoginProcessDialogUI.
|
protected |
If number was inserted into current EditBox, add that number to the string and go to next EditBox. If all are filled, proceed to verification.
override void SCR_Login2FADialogUI.OnTimeout | ( | SCR_BackendCallback | callback | ) |
Implements SCR_LoginProcessDialogUI.
override bool SCR_Login2FADialogUI.VerifyFormatting | ( | string | text | ) |
Override in children.
Implements SCR_LoginProcessDialogUI.
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |