|
Arma Reforger Script API
|
Public Member Functions | |
| override void | HandlerAttached (Widget w) |
| override void | HandlerDeattached (Widget w) |
| override bool | OnMouseEnter (Widget w, int x, int y) |
| override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
| void | InitDescription (notnull SCR_Task task) |
| Update buttons visibility based on task data. | |
| bool | IsAssignGroupListOpened () |
| void | UpdateTask () |
| Set task icon and title to the ones set in tasks' SCR_TaskUIInfo. | |
| void | SetFactionColors () |
| Updates task visuals to color of players faction. | |
| void | UpdateTaskIconColors (Color backgroundColor, Color iconColor, Color outlineColor) |
| 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 | SetChildTaskText (string text) |
| void | SetVisibility (bool show) |
| Sets visibility of entry. | |
| SCR_Task | GetCurrentTask () |
| ScriptInvokerVoid | GetOnButtonShowOnMap () |
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 | InitAssignGroupList (Widget w) |
| void | DeinitAssignGroupList (Widget w) |
| void | OnButtonAssign () |
| void | OnButtonShowOnMap () |
| void | UpdateAssignees (notnull SCR_Task task, SCR_TaskExecutor newAssignee=null, int requesterID=0) |
| Updates entities assigned to task. | |
| void | AddPlayerAssignee (notnull SCR_TaskExecutorPlayer assignedPlayer, notnull SCR_TaskExecutor player) |
| Adds a player type assignee to the task. | |
| void | AddGroupAssignee (notnull SCR_TaskExecutorGroup assignedGroup, notnull SCR_TaskExecutor group, notnull SCR_AIGroup aiGroup) |
| Adds a group type assignee to the task. | |
| void | CreateAssignedPlayerEntry (string playerName, int playerID) |
| Creates label for player assigned to task. | |
| void | CreateAssignedGroupEntry (int groupID, Faction groupFaction, SCR_AIGroup aiGroup) |
| Creates group label for group assigned to task. | |
| void | CheckOverflow (Widget w) |
| void | CreateTaskEntry (SCR_Task task, Widget parent=null, bool isChild=false) |
| Creates new entry for task. | |
| void | OnTaskEntrySelected (SCR_Task task) |
| Invoked whenever task entry on list is selected. | |
| void | OnTaskVisualChanged (SCR_Task task) |
| Triggered task SCR_UIInfo 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 | OnButtonOpenAssignGroupListActivated (SCR_InputButtonComponent button, string action) |
| Invoked when open assign group list button is activated by action. | |
| void | OnAssignGroupListOpened () |
| Invoked when assign group list is opened. | |
| void | OnAssignGroupListClosed () |
| Invoked when assign group list is closed. | |
| void | OnTaskHUDVisible (bool visible) |
| void | HandleTaskStateVisuals (SCR_ETaskState state) |
| Sets task visuals based on new state of task. | |
Protected Attributes | |
| ResourceName | m_sTaskListEntry |
| ResourceName | m_sAssignedPlayerEntry |
| ResourceName | m_sAssignedGroupEntry |
| string | m_sUnassignTaskText |
| string | m_sAssignTaskText |
| string | m_sTaskCancelled |
| string | m_sTaskFailed |
| string | m_sTaskCompleted |
| ref Color | m_TaskStateNegative |
| ref Color | m_TaskStatePositive |
| int | m_iOffsetY = 4 |
| bool | m_bIsOverflowing |
| ref ScriptInvokerVoid | m_OnButtonTaskAssign |
| ref ScriptInvokerVoid | m_OnButtonShowOnMap |
| ref Color | m_IconColor |
| ref Color | m_OutlineColor |
| ref Color | m_BackgroundColor |
| SCR_TaskListEntryUIComponent | m_TaskComponent |
| SCR_TaskManagerUIComponent | m_TaskManager |
| SCR_TaskSystem | m_TaskSystem |
| SCR_Task | m_Task |
| SCR_MapEntity | m_MapEntity |
| SCR_MapCursorModule | m_MapCursorModule |
| ref SCR_TaskListEntryDescriptionWidgets | m_Widgets = new SCR_TaskListEntryDescriptionWidgets() |
Protected Attributes inherited from SCR_ScriptedWidgetComponent | |
| Widget | m_wRoot |
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 |
Adds a group type assignee to the task.
| [in] | assignedGroup | to be added |
| [in] | group | |
| [in] | aiGroup |
|
protected |
Adds a player type assignee to the task.
| [in] | assignedPlayer | to be added |
| [in] | player |
|
protected |
|
protected |
Creates group label for group assigned to task.
| [in] | groupID | |
| [in] | groupFaction | |
| [in] | aiGroup |
|
protected |
Creates label for player assigned to task.
| [in] | playerName | |
| [in] | playerID |
|
protected |
Creates new entry for task.
| [in] | task | Task which will be initialized. |
| [in] | parent | Widget, to which newly created entry will be parented. |
|
protected |
| SCR_Task SCR_TaskListEntryDescriptionUIComponent.GetCurrentTask | ( | ) |
| ScriptInvokerVoid SCR_TaskListEntryDescriptionUIComponent.GetOnButtonShowOnMap | ( | ) |
| override void SCR_TaskListEntryDescriptionUIComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_ScriptedWidgetComponent.
| override void SCR_TaskListEntryDescriptionUIComponent.HandlerDeattached | ( | Widget | w | ) |
|
protected |
Sets task visuals based on new state of task.
| [in] | state | New state of task. |
|
protected |
| void SCR_TaskListEntryDescriptionUIComponent.InitDescription | ( | notnull SCR_Task | task | ) |
Update buttons visibility based on task data.
Set task visuals.
| [in] | task |
| bool SCR_TaskListEntryDescriptionUIComponent.IsAssignGroupListOpened | ( | ) |
|
protected |
Invoked when assign group list is closed.
|
protected |
Invoked when assign group list is opened.
|
protected |
|
protected |
Invoked when open assign group list button is activated by action.
|
protected |
| override bool SCR_TaskListEntryDescriptionUIComponent.OnMouseEnter | ( | Widget | w, |
| int | x, | ||
| int | y ) |
| override bool SCR_TaskListEntryDescriptionUIComponent.OnMouseLeave | ( | Widget | w, |
| Widget | enterW, | ||
| int | x, | ||
| int | y ) |
|
protected |
Invoked whenever task entry on list is selected.
Triggers selection in manager.
| [in] | task | Selected task. |
|
protected |
|
protected |
Invoked when task ownership is changed.
|
protected |
Invoked when task visual data is changed.
|
protected |
Invoked when task visibility is changed.
|
protected |
Triggered task SCR_UIInfo is changed.
Reinitializes task description with new data.
| [in] | task | Changed task. |
| void SCR_TaskListEntryDescriptionUIComponent.SetChildTaskText | ( | string | text | ) |
| void SCR_TaskListEntryDescriptionUIComponent.SetFactionColors | ( | ) |
Updates task visuals to color of players faction.
| void SCR_TaskListEntryDescriptionUIComponent.SetTaskBackground | ( | ResourceName | imageset, |
| string | name ) |
Sets new background of task.
| [in] | imageset | with the background. |
| [in] | name | in imageset. |
| void SCR_TaskListEntryDescriptionUIComponent.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_TaskListEntryDescriptionUIComponent.SetVisibility | ( | bool | show | ) |
Sets visibility of entry.
| [in] | show | New visibility |
|
protected |
Updates entities assigned to task.
If player is assigned, changes task background color.
| [in] | task | |
| [in] | newAssignee | |
| [in] | requesterID |
| void SCR_TaskListEntryDescriptionUIComponent.UpdateTask | ( | ) |
Set task icon and title to the ones set in tasks' SCR_TaskUIInfo.
| void SCR_TaskListEntryDescriptionUIComponent.UpdateTaskIconColors | ( | Color | backgroundColor, |
| Color | iconColor, | ||
| Color | outlineColor ) |
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |