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

Public Member Functions

override void Init (Widget w, SCR_BaseEditorAttribute attribute)
 Initialize GUI from attribute.
 
override void SetVariableToDefaultValue (SCR_BaseEditorAttributeVar var)
 
override void SetFromVar (SCR_BaseEditorAttributeVar var)
 Update GUI from attribute variable.
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override void HandlerDeattached (Widget w)
 
- Public Member Functions inherited from SCR_BaseEditorAttributeUIComponent
SCR_BaseEditorAttribute GetAttribute ()
 Get attribute this component represents.
 
void SetFromVar (SCR_BaseEditorAttributeVar var)
 Update GUI from attribute variable.
 
void Init (Widget w, SCR_BaseEditorAttribute attribute)
 Initialize GUI from attribute.
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
void ShowButtonDescription (SCR_AttributeButtonUIComponent button, bool showButtonDescription, string buttonDescription=string.Empty)
 
ScriptInvoker GetOnAttributeChanged ()
 Called on attribute changed via UI.
 
ScriptInvoker GetOnAttributeUIFocusChanged ()
 Called on focus changes.
 
ScriptInvoker GetOnEnabledByAttribute ()
 Called when another attribute enables/disables the attribute.
 
ScriptInvoker GetOnMouseLeave ()
 Called when the mouse leaves the attribute.
 
bool GetTickboxEnabled ()
 Get if tickbox is enabled or not.
 
void ToggleEnableAttributeTickbox ()
 Toggle tickbox UI, flipping the tickbox from true to false and viceversa.
 
bool GetIsFocused ()
 Get if attribute is focused /return if attribute is focused.
 
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)
 
override void HandlerDeattached (Widget w)
 

Protected Member Functions

void OnSnapYChanged (bool snapEnabled)
 
void OnInputDeviceIsGamepad (bool isGamepad)
 
void SetVisible (bool newVisible)
 
void OnEditBoxValueChanged (SCR_EditBoxComponent editBox, string stringValue)
 
string CapValueToString (float value)
 
- Protected Member Functions inherited from SCR_BaseEditorAttributeUIComponent
void SetFromVarExternal (SCR_BaseEditorAttributeVar var, bool isReset)
 
void SetFromVarOrDefault ()
 
void ToggleButtonSelected (bool selected, int index, bool animated=true)
 
void SetAsSubAttribute ()
 
void AttributeValueChanged ()
 
void ShowAttributeDescription ()
 
void HideAttributeDescription ()
 
void SetVariableToDefaultValue (SCR_BaseEditorAttributeVar var)
 
void ToggleEnableAttribute (bool enabled)
 
void ToggleEnable (bool enabled)
 Toggle UI enabled.
 
void OnTickboxToggleChanged (bool toggle)
 
void GamePadLockedSelectorFocusChanged (bool newFocus)
 
void OnFocusAttributeWidget (Widget w)
 Callback for focus of widget used.
 
void SetGamepadLockSelectorActive (bool isGamepad)
 

Protected Attributes

string m_sEditBoxXName
 
string m_sEditBoxYName
 
string m_sEditBoxZName
 
string m_sEditBoxComponentName
 
BaseWorld m_World
 
vector m_vMinWorldBounding
 
vector m_vMaxWorldBounding
 
SCR_EditBoxComponent m_EditBoxX
 
SCR_EditBoxComponent m_EditBoxY
 
SCR_EditBoxComponent m_EditBoxZ
 
Widget m_root
 
vector m_vStartingValue
 
vector m_vHideValue
 
bool m_bSnapToSurface
 
float m_fPositionY
 
int m_iInitCalledAmount = 0
 
- Protected Attributes inherited from SCR_BaseEditorAttributeUIComponent
string m_sUiComponentName
 
string m_sTickBoxAttributeName
 
string m_sAttributeHolder
 
string m_sGamePadLockedSelectorName
 
string m_sSubAttributeIndicatorName
 
float m_fSubAttributeDisabledAlphaColor
 
ref SCR_EditorAttributeUIInfo m_ButtonDescriptionUIInfo = new SCR_EditorAttributeUIInfo
 
SCR_AttributeButtonUIComponent m_ActiveButtonDescription
 
SCR_ChangeableComponentBase m_UIComponent
 
float m_fBottomPadding = 1
 
bool m_bIsSubAttribute
 
SCR_AttributeTickboxUIComponent m_TickBoxAttribute
 
Widget m_GamePadLockedSelector
 
SCR_AttributesManagerEditorComponent m_AttributeManager
 
InputManager m_InputManager
 
Widget m_SubAttributeIndicator
 
Widget m_wAttributeHolder
 
bool m_bEnabledByAttribute
 
bool m_bEnabledByTickbox
 
bool m_bIsFocused
 
bool m_bIsShowingDescription
 
bool m_bShowButtonDescription
 
string m_sButtonDescription
 
string m_sButtonDescriptionParam1
 
ref ScriptInvoker Event_OnAttributeChanged = new ScriptInvoker
 
ref ScriptInvoker Event_OnEnabledByAttribute = new ScriptInvoker
 
ref ScriptInvoker Event_OnAttributeUIFocusChanged = new ScriptInvoker
 
ref ScriptInvoker Event_OnInputDeviceChanged = new ScriptInvoker
 
ref ScriptInvoker Event_OnMouseLeave = new ScriptInvoker
 

Member Function Documentation

◆ CapValueToString()

string SCR_PositionEditorAttributeUIComponent.CapValueToString ( float  value)
protected

◆ HandlerDeattached()

override void SCR_PositionEditorAttributeUIComponent.HandlerDeattached ( Widget  w)

◆ Init()

override void SCR_PositionEditorAttributeUIComponent.Init ( Widget  w,
SCR_BaseEditorAttribute  attribute 
)

Initialize GUI from attribute.

To be overridden by inherited classes.

Parameters
wWidget this component is attached to
attributeEditor attribute this component represents

Implements SCR_BaseEditorAttributeUIComponent.

◆ OnChange()

override bool SCR_PositionEditorAttributeUIComponent.OnChange ( Widget  w,
int  x,
int  y,
bool  finished 
)

◆ OnEditBoxValueChanged()

void SCR_PositionEditorAttributeUIComponent.OnEditBoxValueChanged ( SCR_EditBoxComponent  editBox,
string  stringValue 
)
protected

◆ OnInputDeviceIsGamepad()

void SCR_PositionEditorAttributeUIComponent.OnInputDeviceIsGamepad ( bool  isGamepad)
protected

◆ OnSnapYChanged()

void SCR_PositionEditorAttributeUIComponent.OnSnapYChanged ( bool  snapEnabled)
protected

◆ SetFromVar()

override void SCR_PositionEditorAttributeUIComponent.SetFromVar ( SCR_BaseEditorAttributeVar  var)

Update GUI from attribute variable.

Called when attributes are initialized in a dialog or when they are reset based on user request.

Parameters
varAttribute variable

Implements SCR_BaseEditorAttributeUIComponent.

◆ SetVariableToDefaultValue()

override void SCR_PositionEditorAttributeUIComponent.SetVariableToDefaultValue ( SCR_BaseEditorAttributeVar  var)

◆ SetVisible()

void SCR_PositionEditorAttributeUIComponent.SetVisible ( bool  newVisible)
protected

Member Data Documentation

◆ m_bSnapToSurface

bool SCR_PositionEditorAttributeUIComponent.m_bSnapToSurface
protected

◆ m_EditBoxX

SCR_EditBoxComponent SCR_PositionEditorAttributeUIComponent.m_EditBoxX
protected

◆ m_EditBoxY

SCR_EditBoxComponent SCR_PositionEditorAttributeUIComponent.m_EditBoxY
protected

◆ m_EditBoxZ

SCR_EditBoxComponent SCR_PositionEditorAttributeUIComponent.m_EditBoxZ
protected

◆ m_fPositionY

float SCR_PositionEditorAttributeUIComponent.m_fPositionY
protected

◆ m_iInitCalledAmount

int SCR_PositionEditorAttributeUIComponent.m_iInitCalledAmount = 0
protected

◆ m_root

Widget SCR_PositionEditorAttributeUIComponent.m_root
protected

◆ m_sEditBoxComponentName

string SCR_PositionEditorAttributeUIComponent.m_sEditBoxComponentName
protected

◆ m_sEditBoxXName

string SCR_PositionEditorAttributeUIComponent.m_sEditBoxXName
protected

◆ m_sEditBoxYName

string SCR_PositionEditorAttributeUIComponent.m_sEditBoxYName
protected

◆ m_sEditBoxZName

string SCR_PositionEditorAttributeUIComponent.m_sEditBoxZName
protected

◆ m_vHideValue

vector SCR_PositionEditorAttributeUIComponent.m_vHideValue
protected

◆ m_vMaxWorldBounding

vector SCR_PositionEditorAttributeUIComponent.m_vMaxWorldBounding
protected

◆ m_vMinWorldBounding

vector SCR_PositionEditorAttributeUIComponent.m_vMinWorldBounding
protected

◆ m_vStartingValue

vector SCR_PositionEditorAttributeUIComponent.m_vStartingValue
protected

◆ m_World

BaseWorld SCR_PositionEditorAttributeUIComponent.m_World
protected

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