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

Public Member Functions

override void Init (Widget w, SCR_BaseEditorAttribute attribute)
 Initialize GUI from attribute.
 
override void SetFromVar (SCR_BaseEditorAttributeVar var)
 Update GUI from attribute variable.
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
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 CreateDayList (SCR_ComboBoxIconComponent comboBox, int currentMonth, int currentYear, bool setMoonIcon=true)
 
void UpdateDateMoonPhaseIcon ()
 
void GetCorrectDateTime (out float daytime, out int day, out int month, out int year)
 
void FillMonthComboBox (SCR_ComboBoxIconComponent comboBox)
 
void FillYearComboBox (SCR_ComboBoxIconComponent comboBox)
 
void SetMonthWidgetFillWeight ()
 
SCR_ComboBoxIconComponent GetCorrectComboBox (string lookfor)
 
TextWidget GetCorrectLabel (string lookfor)
 
void SetDateComboBoxes (vector date)
 
void OnComboBoxChanged (SCR_ComboBoxComponent comboBox, int index)
 
- 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_sComboBaseName
 
string m_sLabelHolderBaseName
 
string m_sLabelName
 
ref array< int > m_aDayArray
 
float m_fMonthWidgetFill
 
TextWidget m_Label0
 
TextWidget m_Label1
 
TextWidget m_Label2
 
SCR_ComboBoxIconComponent m_comboBox0
 
SCR_ComboBoxIconComponent m_comboBox1
 
SCR_ComboBoxIconComponent m_comboBox2
 
ref SCR_EditorAttributeEntryStringArray m_aMonthData
 
ref SCR_EditorAttributeEntryIntArray m_aYearData
 
string m_sDateOrder
 
TimeAndWeatherManagerEntity m_TimeAndWeatherManager
 
- 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

◆ CreateDayList()

void SCR_DateAttributeUIComponent.CreateDayList ( SCR_ComboBoxIconComponent  comboBox,
int  currentMonth,
int  currentYear,
bool  setMoonIcon = true 
)
protected

◆ FillMonthComboBox()

void SCR_DateAttributeUIComponent.FillMonthComboBox ( SCR_ComboBoxIconComponent  comboBox)
protected

◆ FillYearComboBox()

void SCR_DateAttributeUIComponent.FillYearComboBox ( SCR_ComboBoxIconComponent  comboBox)
protected

◆ GetCorrectComboBox()

SCR_ComboBoxIconComponent SCR_DateAttributeUIComponent.GetCorrectComboBox ( string  lookfor)
protected

◆ GetCorrectDateTime()

void SCR_DateAttributeUIComponent.GetCorrectDateTime ( out float  daytime,
out int  day,
out int  month,
out int  year 
)
protected

◆ GetCorrectLabel()

TextWidget SCR_DateAttributeUIComponent.GetCorrectLabel ( string  lookfor)
protected

◆ HandlerDeattached()

override void SCR_DateAttributeUIComponent.HandlerDeattached ( Widget  w)

◆ Init()

override void SCR_DateAttributeUIComponent.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_DateAttributeUIComponent.OnChange ( Widget  w,
int  x,
int  y,
bool  finished 
)

◆ OnComboBoxChanged()

void SCR_DateAttributeUIComponent.OnComboBoxChanged ( SCR_ComboBoxComponent  comboBox,
int  index 
)
protected

◆ OnMouseEnter()

override bool SCR_DateAttributeUIComponent.OnMouseEnter ( Widget  w,
int  x,
int  y 
)

◆ SetDateComboBoxes()

void SCR_DateAttributeUIComponent.SetDateComboBoxes ( vector  date)
protected

◆ SetFromVar()

override void SCR_DateAttributeUIComponent.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.

◆ SetMonthWidgetFillWeight()

void SCR_DateAttributeUIComponent.SetMonthWidgetFillWeight ( )
protected

◆ UpdateDateMoonPhaseIcon()

void SCR_DateAttributeUIComponent.UpdateDateMoonPhaseIcon ( )
protected

Member Data Documentation

◆ m_aDayArray

ref array<int> SCR_DateAttributeUIComponent.m_aDayArray
protected

◆ m_aMonthData

ref SCR_EditorAttributeEntryStringArray SCR_DateAttributeUIComponent.m_aMonthData
protected

◆ m_aYearData

ref SCR_EditorAttributeEntryIntArray SCR_DateAttributeUIComponent.m_aYearData
protected

◆ m_comboBox0

SCR_ComboBoxIconComponent SCR_DateAttributeUIComponent.m_comboBox0
protected

◆ m_comboBox1

SCR_ComboBoxIconComponent SCR_DateAttributeUIComponent.m_comboBox1
protected

◆ m_comboBox2

SCR_ComboBoxIconComponent SCR_DateAttributeUIComponent.m_comboBox2
protected

◆ m_fMonthWidgetFill

float SCR_DateAttributeUIComponent.m_fMonthWidgetFill
protected

◆ m_Label0

TextWidget SCR_DateAttributeUIComponent.m_Label0
protected

◆ m_Label1

TextWidget SCR_DateAttributeUIComponent.m_Label1
protected

◆ m_Label2

TextWidget SCR_DateAttributeUIComponent.m_Label2
protected

◆ m_sComboBaseName

string SCR_DateAttributeUIComponent.m_sComboBaseName
protected

◆ m_sDateOrder

string SCR_DateAttributeUIComponent.m_sDateOrder
protected

◆ m_sLabelHolderBaseName

string SCR_DateAttributeUIComponent.m_sLabelHolderBaseName
protected

◆ m_sLabelName

string SCR_DateAttributeUIComponent.m_sLabelName
protected

◆ m_TimeAndWeatherManager

TimeAndWeatherManagerEntity SCR_DateAttributeUIComponent.m_TimeAndWeatherManager
protected

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