|
Arma Reforger Script API
|
Public Member Functions | |
| override void | HandlerAttached (Widget w) |
| override void | HandlerDeattached (Widget w) |
| void | InitTask (notnull SCR_Task task, bool hasChild=false) |
| Initializes task and sets its visuals. | |
| void | SetIconFactionColor () |
| Sets the icon color to the faction color if local player has the task assigned or local player is faction commander and task has any assignees. | |
| void | OnWrapperFolded () |
| Toggles child tasks fold. | |
| void | SetChildWrapperFolded (SCR_ModularButtonComponent comp=null, bool toggled=-1) |
| Toggles child tasks fold. | |
| void | UpdateTask () |
| Set task icon and title to the ones set in tasks' SCR_TaskUIInfo. | |
| void | SetTaskTextColor (notnull Color color) |
| Sets color of task title. | |
| void | UpdateTaskIconColors (Color backgroundColor=null, Color iconColor=null, Color outlineColor=null) |
| Sets task icon colors. | |
| void | SetTaskIconColors (Color backgroundColor=null, Color iconColor=null, Color outlineColor=null) |
| Sets task icon colors. | |
| void | SetTaskBackground (ResourceName imageset, string name) |
| Sets new background of task. | |
| void | SetEntrySelected (bool selected) |
| Sets entry as selected. | |
| void | SetIcon (ResourceName imageset, string iconName) |
| Sets icon to icon from provided imageset. | |
| void | SetIcon (ResourceName texture) |
| Sets icon to icon from provided texture. | |
| void | ShowProgressBar (bool show) |
| Sets visibility of task progression bar. | |
| void | SetProgressValue (float progress=-1) |
| Sets progression of task progression bar. | |
| void | ShowAssigneeCount (bool show) |
| Sets progression of task progression bar. | |
| void | SetAssigneeCount (int assigneesCount) |
| Sets number of assignees assigned to the task. | |
| void | SetChildCount (int count) |
| void | SetVisibility (bool show) |
| Sets visibility of entry. | |
| Widget | GetChildWrapper () |
| Widget | GetEntryButton () |
| SCR_TaskVisualsChangedInvoker | GetOnTaskVisualChanged () |
Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
| override bool | OnClick (Widget w, int x, int y, int button) |
| Widget | GetRootWidget () |
| bool | IsVisible () |
Protected Member Functions | |
| void | OnHoveredStart (SCR_ModularButtonComponent comp, bool mouseInput) |
| void | OnHoveredEnd (SCR_ModularButtonComponent comp, bool mouseInput) |
| bool | CheckTitleOverflow () |
| int | GetAssignees () |
| void | OnTaskEntryClicked () |
| Invoked when task button is clicked. | |
| void | OnTaskAssigneeAdded (notnull SCR_Task task, SCR_TaskExecutor assignee, int requesterID) |
| Invoked when IEntity is assigned to task. | |
| void | OnTaskStateChanged (SCR_Task task, SCR_ETaskState state) |
| Invoked on task state change. | |
| void | HandleTaskState (SCR_ETaskState state, bool forceRefresh=true) |
| Sets task visuals based on new state of task. | |
| void | OnProgressChanged (float change, float newProgress) |
| Sets task progression visuals based on new progress. | |
| void | OnDisplayDataChanged () |
| Invoked when task visual data is changed. | |
| void | OnTaskUIVisibilityChanged (SCR_Task task, SCR_ETaskUIVisibility visible) |
| Invoked when task visual data is changed. | |
| void | OnTaskVisibilityChanged (SCR_Task task, SCR_ETaskVisibility visible) |
| Invoked when task visibility is changed. | |
| void | OnTaskOwnershipChanged (SCR_Task task, SCR_ETaskOwnership ownership) |
| Invoked when task ownership is changed. | |
| void | OnTaskFactionChanged (SCR_Task task, FactionKey key) |
| Invoked when task faction is changed. | |
| void | OnTaskGroupChanged (SCR_Task task, int id) |
| Invoked when task group is changed. | |
| void | CheckTaskVisibility () |
Protected Attributes | |
| ref Color | m_UnassignedTaskColor |
| ref Color | m_IconColor |
| ref Color | m_OutlineColor |
| ref Color | m_BackgroundColor |
| ref Color | m_FactionColor |
| SCR_Task | m_Task |
| SCR_TaskManagerUIComponent | m_TaskManager |
| ref SCR_TaskWidgetSelectedInvoker | m_OnTaskSelected |
| ref SCR_TaskVisualsChangedInvoker | m_OnTaskVisualUpdated |
| ref SCR_TaskListEntryWidgets | m_Widgets = new SCR_TaskListEntryWidgets() |
Protected Attributes inherited from SCR_ScriptedWidgetComponent | |
| Widget | m_wRoot |
Static Protected Attributes | |
| const int | MAX_CHILD_COUNT = 9 |
Additional Inherited Members | |
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 inherited from SCR_ScriptedWidgetComponent | |
| ref ScriptInvoker | m_OnClick = new ScriptInvoker |
|
protected |
|
protected |
|
protected |
| Widget SCR_TaskListEntryUIComponent.GetChildWrapper | ( | ) |
| Widget SCR_TaskListEntryUIComponent.GetEntryButton | ( | ) |
| SCR_TaskVisualsChangedInvoker SCR_TaskListEntryUIComponent.GetOnTaskVisualChanged | ( | ) |
| override void SCR_TaskListEntryUIComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_ScriptedWidgetComponent.
| override void SCR_TaskListEntryUIComponent.HandlerDeattached | ( | Widget | w | ) |
|
protected |
Sets task visuals based on new state of task.
| [in] | state | New state of task. |
| [in] | forceRefresh | of task list. |
| void SCR_TaskListEntryUIComponent.InitTask | ( | notnull SCR_Task | task, |
| bool | hasChild = false ) |
Initializes task and sets its visuals.
| [in] | task | Initialized task |
|
protected |
Invoked when task visual data is changed.
|
protected |
|
protected |
|
protected |
Sets task progression visuals based on new progress.
| [in] | change | Difference between old and new progress. |
| [in] | newProgress | New value of task progress. |
|
protected |
Invoked when IEntity is assigned to task.
If player is assignee, sets color of task background to currently controlled character faction color.
| [in] | task | |
| [in] | assignee | IEntity being assigned to task. |
| [in] | requesterID |
|
protected |
Invoked when task button is clicked.
|
protected |
Invoked when task faction is changed.
|
protected |
Invoked when task group is changed.
|
protected |
Invoked when task ownership is changed.
|
protected |
Invoked on task state change.
| [in] | state | New state of task. |
|
protected |
Invoked when task visual data is changed.
|
protected |
Invoked when task visibility is changed.
| void SCR_TaskListEntryUIComponent.OnWrapperFolded | ( | ) |
Toggles child tasks fold.
| void SCR_TaskListEntryUIComponent.SetAssigneeCount | ( | int | assigneesCount | ) |
Sets number of assignees assigned to the task.
| [in] | assigneCount | Number of assignees |
| void SCR_TaskListEntryUIComponent.SetChildCount | ( | int | count | ) |
| [in] | count |
| void SCR_TaskListEntryUIComponent.SetChildWrapperFolded | ( | SCR_ModularButtonComponent | comp = null, |
| bool | toggled = -1 ) |
Toggles child tasks fold.
| void SCR_TaskListEntryUIComponent.SetEntrySelected | ( | bool | selected | ) |
Sets entry as selected.
| [in] | selected | New selection state. |
| void SCR_TaskListEntryUIComponent.SetIcon | ( | ResourceName | imageset, |
| string | iconName ) |
Sets icon to icon from provided imageset.
| [in] | imageset | |
| [in] | iconName | Name of icon in imageset |
| void SCR_TaskListEntryUIComponent.SetIcon | ( | ResourceName | texture | ) |
Sets icon to icon from provided texture.
| [in] | texture | New icon texture |
| void SCR_TaskListEntryUIComponent.SetIconFactionColor | ( | ) |
Sets the icon color to the faction color if local player has the task assigned or local player is faction commander and task has any assignees.
| void SCR_TaskListEntryUIComponent.SetProgressValue | ( | float | progress = -1 | ) |
Sets progression of task progression bar.
If progress is -1, gets progress from task itself.
| [in] | progress | Value of progression to set on progress bar component. |
| void SCR_TaskListEntryUIComponent.SetTaskBackground | ( | ResourceName | imageset, |
| string | name ) |
Sets new background of task.
| [in] | imageset | with the background. |
| [in] | name | in imageset. |
| void SCR_TaskListEntryUIComponent.SetTaskIconColors | ( | Color | backgroundColor = null, |
| Color | iconColor = null, | ||
| Color | outlineColor = null ) |
Sets task icon colors.
| [in] | Color | of background |
| [in] | Color | of icon |
| [in] | Color | of outline |
| void SCR_TaskListEntryUIComponent.SetTaskTextColor | ( | notnull Color | color | ) |
Sets color of task title.
| [in] | color | new color of text. |
| void SCR_TaskListEntryUIComponent.SetVisibility | ( | bool | show | ) |
Sets visibility of entry.
| [in] | show | New visibility |
| void SCR_TaskListEntryUIComponent.ShowAssigneeCount | ( | bool | show | ) |
Sets progression of task progression bar.
If progress is -1, gets progress from task itself.
| [in] | show | Visibility of assignee count icon |
| void SCR_TaskListEntryUIComponent.ShowProgressBar | ( | bool | show | ) |
Sets visibility of task progression bar.
| [in] | show | Visibility of progress bar. |
| void SCR_TaskListEntryUIComponent.UpdateTask | ( | ) |
Set task icon and title to the ones set in tasks' SCR_TaskUIInfo.
| void SCR_TaskListEntryUIComponent.UpdateTaskIconColors | ( | Color | backgroundColor = null, |
| Color | iconColor = null, | ||
| Color | outlineColor = null ) |
Sets task icon colors.
| [in] | Color | of background |
| [in] | Color | of icon |
| [in] | Color | of outline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |