Arma Reforger Script API
|
Public Member Functions | |
override void | HandlerAttached (Widget w) |
override void | HandlerDeattached (Widget w) |
override bool | OnFocus (Widget w, int x, int y) |
void | OnValueChanged () |
void | OnHandlerFocus () |
void | OnHandlerFocusLost () |
void | OnInvalidInput () |
void | ClearInvalidInput () |
void | ChangeOverlayColor (Color color) |
void | ResetOverlayColor () |
void | SetPlaceholderText (string str) |
void | ActivateWriteMode (bool refocus=false) |
Set write mode of editbox handler. | |
void | ShowHint (bool show) |
void | ShowWriteIcon (bool show) |
void | UpdateInteractionState (bool forceDisabled) |
void | ClearInteractionState () |
void | SetValue (string value) |
User API. | |
string | GetValue () |
string | GetPlaceHolderText () |
Widget | GetEditBoxWidget () |
bool | IsValidInput () |
SCR_WidgetHintComponent | GetHint () |
bool | IsInWriteMode () |
SCR_EventHandlerComponent | GetEVHComponent () |
void | ConfirmValue (string value) |
Set string value to editbox and confirm. | |
Public Member Functions inherited from SCR_ChangeableComponentBase | |
override void | HandlerAttached (Widget w) |
override bool | OnFocus (Widget w, int x, int y) |
override bool | OnFocusLost (Widget w, int x, int y) |
override bool | OnMouseEnter (Widget w, int x, int y) |
override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
TextWidget | GetLabel () |
void | SetLabel (string label) |
void | UseLabel (bool use) |
bool | IsUsingLabel () |
Widget | GetLabelWidget () |
If label is not used, label widget might not exist at all! | |
void | SetSizeWithLabel (float size) |
void | SetSizeWithoutLabel (float size) |
Public Member Functions inherited from SCR_WLibComponentBase | |
override void | HandlerAttached (Widget w) |
override bool | OnClick (Widget w, int x, int y, int button) |
override bool | OnMouseEnter (Widget w, int x, int y) |
override bool | OnFocus (Widget w, int x, int y) |
void | SetHoverSound (string soundHover) |
void | SetClickedSound (string soundClicked) |
string | GetHoverSound () |
string | GetClickedSound () |
void | SetEnabled (bool enabled, bool animate=true) |
void | SetVisible (bool visible, bool animate=true) |
bool | IsEnabled () |
void | SetMouseOverToFocus (bool mouseOverToFocus) |
void | SetDisabledOpacity (float newDisabledOpacity) |
Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
override void | HandlerAttached (Widget w) |
override bool | OnClick (Widget w, int x, int y, int button) |
Widget | GetRootWidget () |
bool | IsVisible () |
Static Public Member Functions | |
static SCR_EditBoxComponent | GetEditBoxComponent (string name, Widget parent, bool searchAllChildren=true) |
Static method to easily find component by providing name and parent. | |
Static Public Member Functions inherited from SCR_WLibComponentBase | |
static bool | SetTexture (ImageWidget widget, ResourceName texture, string image="") |
Static Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
static SCR_ScriptedWidgetComponent | GetComponent (TypeName componentType, string name, Widget parent, bool searchAllChildren=true) |
Base method for component lookup through the widget library. | |
Public Attributes | |
Widget | m_wEditBox |
Widget | m_wColorOverlay |
Widget | m_wEditBackground |
Widget | m_wWarningIcon |
Widget | m_wHorizontalLayout |
Widget | m_wWriteIconScale |
ImageWidget | m_wImgWriteIcon |
ref ScriptInvoker | m_OnConfirm = new ScriptInvoker() |
ref ScriptInvoker | m_OnFocusChangedEditBox = new ScriptInvoker() |
ref ScriptInvokerVoid | m_OnWriteModeEnter = new ScriptInvokerVoid() |
ref ScriptInvokerVoid | m_OnCancel = new ScriptInvokerVoid() |
ref ScriptInvokerString | m_OnWriteModeLeave = new ScriptInvokerString() |
ref ScriptInvokerString | m_OnTextChange = new ScriptInvokerString() |
Public Attributes inherited from SCR_ChangeableComponentBase | |
ref ScriptInvoker | m_OnChanged = new ScriptInvoker() |
Public Attributes inherited from SCR_ScriptedWidgetComponent | |
ref ScriptInvoker | m_OnClick = new ScriptInvoker |
Protected Member Functions | |
void | OnCancel () |
void | OnConfirm (Widget w) |
void | OnInternalButtonClicked () |
string | GetEditBoxText () |
void | SetEditBoxText (string text) |
string | GetPlaceholderText () |
void | UpdateBackgroundColor () |
Protected Member Functions inherited from SCR_ChangeableComponentBase | |
void | SetupLabel () |
void | ClearLabel () |
Protected Member Functions inherited from SCR_WLibComponentBase | |
void | OnEnabled (bool animate) |
void | OnDisabled (bool animate) |
bool | IsChildWidget (Widget parent, Widget child) |
void | SetAnimationRate () |
void | PlaySound (string sound) |
Static Protected Attributes | |
const int | INTERACTION_STATE_UPDATE_FREQUENCY = 50 |
const int | FOCUS_LOST_INTERACTION_STATE_UPDATE_DELAY = 1000 / UIConstants.FADE_RATE_DEFAULT |
Additional Inherited Members | |
Static Public Attributes inherited from SCR_WLibComponentBase | |
static const float | START_ANIMATION_RATE = 10001 |
static const float | START_ANIMATION_PERIOD = 250 |
void SCR_EditBoxComponent.ActivateWriteMode | ( | bool | refocus = false | ) |
Set write mode of editbox handler.
void SCR_EditBoxComponent.ChangeOverlayColor | ( | Color | color | ) |
void SCR_EditBoxComponent.ClearInteractionState | ( | ) |
void SCR_EditBoxComponent.ClearInvalidInput | ( | ) |
void SCR_EditBoxComponent.ConfirmValue | ( | string | value | ) |
Set string value to editbox and confirm.
|
static |
Static method to easily find component by providing name and parent.
Searching all children will go through whole hierarchy, instead of immediate chidren
|
protected |
Widget SCR_EditBoxComponent.GetEditBoxWidget | ( | ) |
SCR_EventHandlerComponent SCR_EditBoxComponent.GetEVHComponent | ( | ) |
SCR_WidgetHintComponent SCR_EditBoxComponent.GetHint | ( | ) |
|
protected |
string SCR_EditBoxComponent.GetPlaceHolderText | ( | ) |
string SCR_EditBoxComponent.GetValue | ( | ) |
override void SCR_EditBoxComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_ChangeableComponentBase.
Implemented in SCR_EditBoxSearchComponent.
override void SCR_EditBoxComponent.HandlerDeattached | ( | Widget | w | ) |
bool SCR_EditBoxComponent.IsInWriteMode | ( | ) |
bool SCR_EditBoxComponent.IsValidInput | ( | ) |
|
protected |
|
protected |
Implemented in SCR_EditBoxSearchComponent.
override bool SCR_EditBoxComponent.OnFocus | ( | Widget | w, |
int | x, | ||
int | y | ||
) |
Implements SCR_ChangeableComponentBase.
void SCR_EditBoxComponent.OnHandlerFocus | ( | ) |
Implemented in SCR_EditBoxSearchComponent.
void SCR_EditBoxComponent.OnHandlerFocusLost | ( | ) |
Implemented in SCR_EditBoxSearchComponent.
|
protected |
void SCR_EditBoxComponent.OnInvalidInput | ( | ) |
void SCR_EditBoxComponent.OnValueChanged | ( | ) |
void SCR_EditBoxComponent.ResetOverlayColor | ( | ) |
|
protected |
void SCR_EditBoxComponent.SetPlaceholderText | ( | string | str | ) |
void SCR_EditBoxComponent.SetValue | ( | string | value | ) |
User API.
void SCR_EditBoxComponent.ShowHint | ( | bool | show | ) |
void SCR_EditBoxComponent.ShowWriteIcon | ( | bool | show | ) |
|
protected |
void SCR_EditBoxComponent.UpdateInteractionState | ( | bool | forceDisabled | ) |
Implemented in SCR_EditBoxSearchComponent.
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
ref ScriptInvokerVoid SCR_EditBoxComponent.m_OnCancel = new ScriptInvokerVoid() |
ref ScriptInvoker SCR_EditBoxComponent.m_OnConfirm = new ScriptInvoker() |
ref ScriptInvoker SCR_EditBoxComponent.m_OnFocusChangedEditBox = new ScriptInvoker() |
ref ScriptInvokerString SCR_EditBoxComponent.m_OnTextChange = new ScriptInvokerString() |
ref ScriptInvokerVoid SCR_EditBoxComponent.m_OnWriteModeEnter = new ScriptInvokerVoid() |
ref ScriptInvokerString SCR_EditBoxComponent.m_OnWriteModeLeave = new ScriptInvokerString() |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Widget SCR_EditBoxComponent.m_wColorOverlay |
Widget SCR_EditBoxComponent.m_wEditBackground |
Widget SCR_EditBoxComponent.m_wEditBox |
|
protected |
Widget SCR_EditBoxComponent.m_wHorizontalLayout |
ImageWidget SCR_EditBoxComponent.m_wImgWriteIcon |
|
protected |
|
protected |
Widget SCR_EditBoxComponent.m_wWarningIcon |
Widget SCR_EditBoxComponent.m_wWriteIconScale |