Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EditBoxComponent Class Reference
Inheritance diagram for SCR_EditBoxComponent:
SCR_ChangeableComponentBase SCR_EditBoxSearchComponent

Protected Member Functions

void OnCancel ()
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 OnConfirm (Widget w)
void OnInternalButtonClicked ()
string GetEditBoxText ()
void SetEditBoxText (string text)
string GetPlaceholderText ()
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 UpdateBackgroundColor ()
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.

Static Protected Member Functions

static SCR_EditBoxComponent GetEditBoxComponent (string name, Widget parent, bool searchAllChildren=true)

Protected Attributes

float m_fColorsAnimationTime
bool m_bShowWriteIcon
bool m_bShowInvalidInputWarning
ResourceName m_sIconImageSet
string m_sIconImageName
string m_sWriteIconButtonName
float m_fOpacityDefault
float m_fOpacityFocused
ref Color m_BackgroundDefault
ref Color m_BackgroundInteracting
ref Color m_BackgroundFocused
string m_sWarningText
Widget m_wEditBox
Widget m_wColorOverlay
Widget m_wEditBackground
Widget m_wWarningIcon
Widget m_wHorizontalLayout
Widget m_wWriteIconScale
ImageWidget m_wImgWriteIcon
SCR_ModularButtonComponent m_WriteIconButton
SCR_WidgetHintComponent m_Hint
ref Color COLOR_INVALID_INPUT = UIColors.WARNING
ref Color COLOR_VALID_INPUT = Color.White
ref ScriptInvoker m_OnConfirm = new ScriptInvoker()
ref ScriptInvoker m_OnFocusChangedEditBox = new ScriptInvoker()
MultilineEditBoxWidget m_wMultilineEditBoxWidget
EditBoxWidget m_wEditBoxWidget
SCR_EventHandlerComponent m_EVHComponent
const int INTERACTION_STATE_UPDATE_FREQUENCY = 50
const int FOCUS_LOST_INTERACTION_STATE_UPDATE_DELAY = 1000 / UIConstants.FADE_RATE_DEFAULT
bool m_bIsFocused
bool m_bIsInWriteMode
bool m_bIsInWriteModePrevious
bool m_bValidInput = true
bool m_bIsTyping
ref Color m_BackgroundCurrent
ref ScriptInvokerVoid m_OnWriteModeEnter = new ScriptInvokerVoid()
ref ScriptInvokerVoid m_OnCancel = new ScriptInvokerVoid()
ref ScriptInvokerString m_OnWriteModeLeave = new ScriptInvokerString()
ref ScriptInvokerString m_OnTextChange = new ScriptInvokerString()
string m_sTextPrevious

Detailed Description

Definition at line 8 of file SCR_EditBoxComponent.c.

Member Function Documentation

◆ ActivateWriteMode()

void SCR_EditBoxComponent::ActivateWriteMode ( bool refocus = false)
inlineprotected

Set write mode of editbox handler.

Definition at line 402 of file SCR_EditBoxComponent.c.

◆ ChangeOverlayColor()

void SCR_EditBoxComponent::ChangeOverlayColor ( Color color)
inlineprotected

Definition at line 303 of file SCR_EditBoxComponent.c.

◆ ClearInteractionState()

void SCR_EditBoxComponent::ClearInteractionState ( )
inlineprotected

Definition at line 486 of file SCR_EditBoxComponent.c.

◆ ClearInvalidInput()

void SCR_EditBoxComponent::ClearInvalidInput ( )
inlineprotected

Definition at line 292 of file SCR_EditBoxComponent.c.

◆ ConfirmValue()

void SCR_EditBoxComponent::ConfirmValue ( string value)
inlineprotected

Set string value to editbox and confirm.

Definition at line 528 of file SCR_EditBoxComponent.c.

◆ GetEditBoxComponent()

SCR_EditBoxComponent SCR_EditBoxComponent::GetEditBoxComponent ( string name,
Widget parent,
bool searchAllChildren = true )
inlinestaticprotected

Static method to easily find component by providing name and parent. Searching all children will go through whole hierarchy, instead of immediate chidren

Definition at line 382 of file SCR_EditBoxComponent.c.

◆ GetEditBoxText()

string SCR_EditBoxComponent::GetEditBoxText ( )
inlineprotected

Definition at line 328 of file SCR_EditBoxComponent.c.

◆ GetEditBoxWidget()

Widget SCR_EditBoxComponent::GetEditBoxWidget ( )
inlineprotected

Definition at line 515 of file SCR_EditBoxComponent.c.

◆ GetEVHComponent()

SCR_EventHandlerComponent SCR_EditBoxComponent::GetEVHComponent ( )
inlineprotected

Definition at line 521 of file SCR_EditBoxComponent.c.

◆ GetHint()

SCR_WidgetHintComponent SCR_EditBoxComponent::GetHint ( )
inlineprotected

Definition at line 517 of file SCR_EditBoxComponent.c.

◆ GetPlaceHolderText()

string SCR_EditBoxComponent::GetPlaceHolderText ( )
inlineprotected

Definition at line 514 of file SCR_EditBoxComponent.c.

◆ GetPlaceholderText()

string SCR_EditBoxComponent::GetPlaceholderText ( )
inlineprotected

Definition at line 363 of file SCR_EditBoxComponent.c.

◆ GetValue()

string SCR_EditBoxComponent::GetValue ( )
inlineprotected

Definition at line 513 of file SCR_EditBoxComponent.c.

◆ HandlerAttached()

override void SCR_EditBoxComponent::HandlerAttached ( Widget w)
inlineprotected

Definition at line 96 of file SCR_EditBoxComponent.c.

◆ HandlerDeattached()

override void SCR_EditBoxComponent::HandlerDeattached ( Widget w)
inlineprotected

Definition at line 205 of file SCR_EditBoxComponent.c.

◆ IsInWriteMode()

bool SCR_EditBoxComponent::IsInWriteMode ( )
inlineprotected

Definition at line 518 of file SCR_EditBoxComponent.c.

◆ IsValidInput()

bool SCR_EditBoxComponent::IsValidInput ( )
inlineprotected

Definition at line 516 of file SCR_EditBoxComponent.c.

◆ OnCancel()

void SCR_EditBoxComponent::OnCancel ( )
inlineprotected

Definition at line 90 of file SCR_EditBoxComponent.c.

◆ OnConfirm()

void SCR_EditBoxComponent::OnConfirm ( Widget w)
inlineprotected

Definition at line 315 of file SCR_EditBoxComponent.c.

◆ OnFocus()

override bool SCR_EditBoxComponent::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 213 of file SCR_EditBoxComponent.c.

◆ OnHandlerFocus()

void SCR_EditBoxComponent::OnHandlerFocus ( )
inlineprotected

Definition at line 241 of file SCR_EditBoxComponent.c.

◆ OnHandlerFocusLost()

void SCR_EditBoxComponent::OnHandlerFocusLost ( )
inlineprotected

Definition at line 261 of file SCR_EditBoxComponent.c.

◆ OnInternalButtonClicked()

void SCR_EditBoxComponent::OnInternalButtonClicked ( )
inlineprotected

Definition at line 322 of file SCR_EditBoxComponent.c.

◆ OnInvalidInput()

void SCR_EditBoxComponent::OnInvalidInput ( )
inlineprotected

Definition at line 279 of file SCR_EditBoxComponent.c.

◆ OnValueChanged()

void SCR_EditBoxComponent::OnValueChanged ( )
inlineprotected

Definition at line 223 of file SCR_EditBoxComponent.c.

◆ ResetOverlayColor()

void SCR_EditBoxComponent::ResetOverlayColor ( )
inlineprotected

Definition at line 309 of file SCR_EditBoxComponent.c.

◆ SetEditBoxText()

void SCR_EditBoxComponent::SetEditBoxText ( string text)
inlineprotected

Definition at line 345 of file SCR_EditBoxComponent.c.

◆ SetPlaceholderText()

void SCR_EditBoxComponent::SetPlaceholderText ( string str)
inlineprotected

Definition at line 372 of file SCR_EditBoxComponent.c.

◆ SetValue()

void SCR_EditBoxComponent::SetValue ( string value)
inlineprotected

User API.

Definition at line 512 of file SCR_EditBoxComponent.c.

◆ ShowHint()

void SCR_EditBoxComponent::ShowHint ( bool show)
inlineprotected

Definition at line 421 of file SCR_EditBoxComponent.c.

◆ ShowWriteIcon()

void SCR_EditBoxComponent::ShowWriteIcon ( bool show)
inlineprotected

Definition at line 428 of file SCR_EditBoxComponent.c.

◆ UpdateBackgroundColor()

void SCR_EditBoxComponent::UpdateBackgroundColor ( )
inlineprotected

Definition at line 493 of file SCR_EditBoxComponent.c.

◆ UpdateInteractionState()

void SCR_EditBoxComponent::UpdateInteractionState ( bool forceDisabled)
inlineprotected

Definition at line 438 of file SCR_EditBoxComponent.c.

Member Data Documentation

◆ COLOR_INVALID_INPUT

ref Color SCR_EditBoxComponent::COLOR_INVALID_INPUT = UIColors.WARNING
protected

Definition at line 59 of file SCR_EditBoxComponent.c.

◆ COLOR_VALID_INPUT

ref Color SCR_EditBoxComponent::COLOR_VALID_INPUT = Color.White
protected

Definition at line 60 of file SCR_EditBoxComponent.c.

◆ FOCUS_LOST_INTERACTION_STATE_UPDATE_DELAY

const int SCR_EditBoxComponent::FOCUS_LOST_INTERACTION_STATE_UPDATE_DELAY = 1000 / UIConstants.FADE_RATE_DEFAULT
protected

Definition at line 71 of file SCR_EditBoxComponent.c.

◆ INTERACTION_STATE_UPDATE_FREQUENCY

const int SCR_EditBoxComponent::INTERACTION_STATE_UPDATE_FREQUENCY = 50
protected

Definition at line 70 of file SCR_EditBoxComponent.c.

◆ m_BackgroundCurrent

ref Color SCR_EditBoxComponent::m_BackgroundCurrent
protected

Definition at line 78 of file SCR_EditBoxComponent.c.

◆ m_BackgroundDefault

ref Color SCR_EditBoxComponent::m_BackgroundDefault
protected

Definition at line 35 of file SCR_EditBoxComponent.c.

◆ m_BackgroundFocused

ref Color SCR_EditBoxComponent::m_BackgroundFocused
protected

Definition at line 41 of file SCR_EditBoxComponent.c.

◆ m_BackgroundInteracting

ref Color SCR_EditBoxComponent::m_BackgroundInteracting
protected

Definition at line 38 of file SCR_EditBoxComponent.c.

◆ m_bIsFocused

bool SCR_EditBoxComponent::m_bIsFocused
protected

Definition at line 73 of file SCR_EditBoxComponent.c.

◆ m_bIsInWriteMode

bool SCR_EditBoxComponent::m_bIsInWriteMode
protected

Definition at line 74 of file SCR_EditBoxComponent.c.

◆ m_bIsInWriteModePrevious

bool SCR_EditBoxComponent::m_bIsInWriteModePrevious
protected

Definition at line 75 of file SCR_EditBoxComponent.c.

◆ m_bIsTyping

bool SCR_EditBoxComponent::m_bIsTyping
protected

Definition at line 77 of file SCR_EditBoxComponent.c.

◆ m_bShowInvalidInputWarning

bool SCR_EditBoxComponent::m_bShowInvalidInputWarning
protected

Definition at line 17 of file SCR_EditBoxComponent.c.

◆ m_bShowWriteIcon

bool SCR_EditBoxComponent::m_bShowWriteIcon
protected

Definition at line 14 of file SCR_EditBoxComponent.c.

◆ m_bValidInput

bool SCR_EditBoxComponent::m_bValidInput = true
protected

Definition at line 76 of file SCR_EditBoxComponent.c.

◆ m_EVHComponent

SCR_EventHandlerComponent SCR_EditBoxComponent::m_EVHComponent
protected

Definition at line 68 of file SCR_EditBoxComponent.c.

◆ m_fColorsAnimationTime

float SCR_EditBoxComponent::m_fColorsAnimationTime
protected

Definition at line 11 of file SCR_EditBoxComponent.c.

◆ m_fOpacityDefault

float SCR_EditBoxComponent::m_fOpacityDefault
protected

Definition at line 29 of file SCR_EditBoxComponent.c.

◆ m_fOpacityFocused

float SCR_EditBoxComponent::m_fOpacityFocused
protected

Definition at line 32 of file SCR_EditBoxComponent.c.

◆ m_Hint

SCR_WidgetHintComponent SCR_EditBoxComponent::m_Hint
protected

Definition at line 57 of file SCR_EditBoxComponent.c.

◆ m_OnCancel

ref ScriptInvokerVoid SCR_EditBoxComponent::m_OnCancel = new ScriptInvokerVoid()
protected

Definition at line 82 of file SCR_EditBoxComponent.c.

◆ m_OnConfirm

ref ScriptInvoker SCR_EditBoxComponent::m_OnConfirm = new ScriptInvoker()
protected

Definition at line 63 of file SCR_EditBoxComponent.c.

◆ m_OnFocusChangedEditBox

ref ScriptInvoker SCR_EditBoxComponent::m_OnFocusChangedEditBox = new ScriptInvoker()
protected

Definition at line 64 of file SCR_EditBoxComponent.c.

◆ m_OnTextChange

ref ScriptInvokerString SCR_EditBoxComponent::m_OnTextChange = new ScriptInvokerString()
protected

Definition at line 84 of file SCR_EditBoxComponent.c.

◆ m_OnWriteModeEnter

ref ScriptInvokerVoid SCR_EditBoxComponent::m_OnWriteModeEnter = new ScriptInvokerVoid()
protected

Definition at line 81 of file SCR_EditBoxComponent.c.

◆ m_OnWriteModeLeave

ref ScriptInvokerString SCR_EditBoxComponent::m_OnWriteModeLeave = new ScriptInvokerString()
protected

Definition at line 83 of file SCR_EditBoxComponent.c.

◆ m_sIconImageName

string SCR_EditBoxComponent::m_sIconImageName
protected

Definition at line 23 of file SCR_EditBoxComponent.c.

◆ m_sIconImageSet

ResourceName SCR_EditBoxComponent::m_sIconImageSet
protected

Definition at line 20 of file SCR_EditBoxComponent.c.

◆ m_sTextPrevious

string SCR_EditBoxComponent::m_sTextPrevious
protected

Definition at line 86 of file SCR_EditBoxComponent.c.

◆ m_sWarningText

string SCR_EditBoxComponent::m_sWarningText
protected

Definition at line 44 of file SCR_EditBoxComponent.c.

◆ m_sWriteIconButtonName

string SCR_EditBoxComponent::m_sWriteIconButtonName
protected

Definition at line 26 of file SCR_EditBoxComponent.c.

◆ m_wColorOverlay

Widget SCR_EditBoxComponent::m_wColorOverlay
protected

Definition at line 47 of file SCR_EditBoxComponent.c.

◆ m_wEditBackground

Widget SCR_EditBoxComponent::m_wEditBackground
protected

Definition at line 48 of file SCR_EditBoxComponent.c.

◆ m_wEditBox

Widget SCR_EditBoxComponent::m_wEditBox
protected

Definition at line 46 of file SCR_EditBoxComponent.c.

◆ m_wEditBoxWidget

EditBoxWidget SCR_EditBoxComponent::m_wEditBoxWidget
protected

Definition at line 67 of file SCR_EditBoxComponent.c.

◆ m_wHorizontalLayout

Widget SCR_EditBoxComponent::m_wHorizontalLayout
protected

Definition at line 50 of file SCR_EditBoxComponent.c.

◆ m_wImgWriteIcon

ImageWidget SCR_EditBoxComponent::m_wImgWriteIcon
protected

Definition at line 53 of file SCR_EditBoxComponent.c.

◆ m_wMultilineEditBoxWidget

MultilineEditBoxWidget SCR_EditBoxComponent::m_wMultilineEditBoxWidget
protected

Definition at line 66 of file SCR_EditBoxComponent.c.

◆ m_WriteIconButton

SCR_ModularButtonComponent SCR_EditBoxComponent::m_WriteIconButton
protected

Definition at line 55 of file SCR_EditBoxComponent.c.

◆ m_wWarningIcon

Widget SCR_EditBoxComponent::m_wWarningIcon
protected

Definition at line 49 of file SCR_EditBoxComponent.c.

◆ m_wWriteIconScale

Widget SCR_EditBoxComponent::m_wWriteIconScale
protected

Definition at line 52 of file SCR_EditBoxComponent.c.


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