43 [
Attribute(
"",
UIWidgets.EditBox,
"Text that should appear next to error warning on invalid input")]
98 super.HandlerAttached(w);
207 super.HandlerDeattached(w);
264 super.OnFocusLost(
m_wRoot, 0, 0);
335 return editBox.GetText();
339 return editMulti.GetText();
353 editBox.SetText(text);
359 editMulti.SetText(text);
367 return editBox.GetPlaceholderText();
376 editBox.SetPlaceholderText(str);
384 if (!parent || name ==
string.Empty)
388 if (searchAllChildren)
389 w = parent.FindAnyWidget(name);
391 w = parent.FindWidget(name);
410 GetGame().GetWorkspace().SetFocusedWidget(target);
440 int interactionStateUpdateDelay;
ArmaReforgerScripted GetGame()
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
ScriptInvokerBase< ScriptInvokerStringMethod > ScriptInvokerString
ref ScriptInvoker m_OnTextTooLong
ref ScriptInvoker m_OnValidInput
ref ScriptInvoker m_OnInvalidInput
Base class for all widgets that can change their internal state as editbox or spinbox.
ref ScriptInvoker m_OnChanged
bool m_bShowInvalidInputWarning
EditBoxWidget m_wEditBoxWidget
override void HandlerAttached(Widget w)
void ConfirmValue(string value)
Set string value to editbox and confirm.
const int INTERACTION_STATE_UPDATE_FREQUENCY
string m_sWriteIconButtonName
SCR_ModularButtonComponent m_WriteIconButton
Widget GetEditBoxWidget()
string GetPlaceholderText()
override void HandlerDeattached(Widget w)
ImageWidget m_wImgWriteIcon
void UpdateBackgroundColor()
ref ScriptInvoker m_OnConfirm
ref ScriptInvokerVoid m_OnCancel
const int FOCUS_LOST_INTERACTION_STATE_UPDATE_DELAY
void SetValue(string value)
User API.
void ShowWriteIcon(bool show)
ref ScriptInvokerVoid m_OnWriteModeEnter
ref Color m_BackgroundDefault
ref Color m_BackgroundFocused
ref ScriptInvokerString m_OnWriteModeLeave
void SetEditBoxText(string text)
override bool OnFocus(Widget w, int x, int y)
static SCR_EditBoxComponent GetEditBoxComponent(string name, Widget parent, bool searchAllChildren=true)
void ChangeOverlayColor(Color color)
ref Color COLOR_VALID_INPUT
void OnInternalButtonClicked()
float m_fColorsAnimationTime
SCR_EventHandlerComponent GetEVHComponent()
ref Color COLOR_INVALID_INPUT
ref ScriptInvokerString m_OnTextChange
ref Color m_BackgroundInteracting
void UpdateInteractionState(bool forceDisabled)
string GetPlaceHolderText()
void ClearInteractionState()
ResourceName m_sIconImageSet
void SetPlaceholderText(string str)
ref Color m_BackgroundCurrent
SCR_EventHandlerComponent m_EVHComponent
SCR_WidgetHintComponent m_Hint
bool m_bIsInWriteModePrevious
ref ScriptInvoker m_OnFocusChangedEditBox
MultilineEditBoxWidget m_wMultilineEditBoxWidget
SCR_WidgetHintComponent GetHint()
Widget m_wHorizontalLayout
void OnHandlerFocusLost()
void ActivateWriteMode(bool refocus=false)
Set write mode of editbox handler.
SCR_FieldOfViewSettings Attribute
WidgetFlags
Widget flags. See enf::Widget::SetFlags().