![]() |
|
Public Member Functions | |
| override void | HandlerAttached (Widget w) |
| override void | HandlerDeattached (Widget w) |
| override vector | GetPos () |
| Returns origin of task entity. | |
| override bool | OnMouseEnter (Widget w, int x, int y) |
| override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
| void | InitTask (notnull SCR_Task task) |
| Initializes task, 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 | SetTask (notnull SCR_Task task) |
| void | UpdateTaskIconColors (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 | SetTaskIconColors (Color backgroundColor=null, Color iconColor=null, Color outlineColor=null) |
| Sets task icon colors. | |
| SCR_Task | GetTask () |
| ScriptInvokerVoid | GetOnTaskIconClick () |
Public Member Functions inherited from SCR_MapUIElement | |
| void | SetParent (SCR_MapUIElementContainer parent) |
| string | GetName () |
| bool | GetIconVisible () |
| void | ShowName (bool visible) |
| void | SetVisible (bool visible) |
| Widget | GetRoot () |
| override bool | OnClick (Widget w, int x, int y, int button) |
| void | SelectIcon (bool invoke=true) |
| void | Select (bool select=true) |
| Color | GetColorForFaction (string factionKey) |
| RplId | GetSpawnPointId () |
| void | SetName (string name) |
Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
| Widget | GetRootWidget () |
| bool | IsVisible () |
Protected Member Functions | |
| void | OnHoveredIconStart (SCR_ModularButtonComponent comp, bool mouseInput) |
| void | OnHoveredTitleStart (SCR_ModularButtonComponent comp, bool mouseInput) |
| void | OnHoveredTitleEnd (SCR_ModularButtonComponent comp, bool mouseInput) |
| void | OnHoveredEnd (SCR_ModularButtonComponent comp, bool mouseInput) |
| bool | CheckTitleOverflow () |
| void | OnTaskIconClicked () |
| void | OnTaskTitleClicked () |
| void | OnTaskSelected (SCR_Task task) |
| void | OnTaskAssigneeAdded (SCR_Task task, SCR_TaskExecutor assignee, int requesterID) |
| Handles update of assigned entities. | |
| void | OnDisplayDataChanged () |
| Handles update of task visuals. | |
| void | UpdateTaskInformation () |
| Updates task title and icon to the one provided in task SCR_TaskUIInfo. | |
| void | OnPlayerNameCacheUpdate (bool success) |
| void | UpdatePlayerNameCache () |
| Requests update of player name cache if requested by m_bRequestPlayerNameCacheUpdate. | |
| void | UpdateTaskState (SCR_Task task, SCR_ETaskState state) |
| Handles task visuals based on new task state. | |
| void | SetMapMarkerAssigneeCount () |
| 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 | HandleTaskVisibilityChange (SCR_Task task) |
| Invoked when task visibility is changed. | |
| void | CheckTaskVisibility () |
| void | SetVisibility (bool show) |
| Sets visibility of entry. | |
Protected Member Functions inherited from SCR_MapUIElement | |
| void | AnimExpand () |
| void | AnimCollapse () |
| void | PlayHoverSound (string sound) |
| void | SetImage (string image) |
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_MapUIElement | |
| ref Color | m_UnknownFactionColor |
Public Attributes inherited from SCR_ScriptedWidgetComponent | |
| ref ScriptInvoker | m_OnClick = new ScriptInvoker |
Static Protected Attributes inherited from SCR_MapUIElement | |
| static SCR_MapUIElement | s_SelectedElement |
| const float | ANIM_SPEED = 20 |
|
protected |
|
protected |
| ScriptInvokerVoid SCR_TaskMapUIComponent.GetOnTaskIconClick | ( | ) |
| override vector SCR_TaskMapUIComponent.GetPos | ( | ) |
| SCR_Task SCR_TaskMapUIComponent.GetTask | ( | ) |
| override void SCR_TaskMapUIComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_MapUIElement.
Implemented in SCR_TutorialTaskMapUIComponent.
| override void SCR_TaskMapUIComponent.HandlerDeattached | ( | Widget | w | ) |
|
protected |
Invoked when task visibility is changed.
| void SCR_TaskMapUIComponent.InitTask | ( | notnull SCR_Task | task | ) |
Initializes task, sets its visuals.
| [in] | task |
Implemented in SCR_TutorialTaskMapUIComponent.
|
protected |
Handles update of task visuals.
Implemented in SCR_ConflictTaskMapUIComponent.
|
protected |
|
protected |
|
protected |
|
protected |
| override bool SCR_TaskMapUIComponent.OnMouseEnter | ( | Widget | w, |
| int | x, | ||
| int | y ) |
| override bool SCR_TaskMapUIComponent.OnMouseLeave | ( | Widget | w, |
| Widget | enterW, | ||
| int | x, | ||
| int | y ) |
|
protected |
|
protected |
Handles update of assigned entities.
If player is assigned, changes color of map marker.
| [in] | task | |
| [in] | assignee | Assigned SCR_TaskExecutor |
| [in] | requesterID |
Implemented in SCR_ConflictTaskMapUIComponent.
|
protected |
Invoked when task faction is changed.
|
protected |
Invoked when task group is changed.
Implemented in SCR_ConflictTaskMapUIComponent.
|
protected |
Implemented in SCR_TutorialTaskMapUIComponent.
|
protected |
Invoked when task ownership is changed.
|
protected |
| [in] | task | Selected task |
Implemented in SCR_ConflictTaskMapUIComponent, and SCR_TutorialTaskMapUIComponent.
|
protected |
Implemented in SCR_TutorialTaskMapUIComponent.
|
protected |
Invoked when task visual data is changed.
|
protected |
Invoked when task visibility is changed.
| void SCR_TaskMapUIComponent.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.
|
protected |
| void SCR_TaskMapUIComponent.SetTask | ( | notnull SCR_Task | task | ) |
| void SCR_TaskMapUIComponent.SetTaskBackground | ( | ResourceName | imageset, |
| string | name ) |
Sets new background of task.
| [in] | imageset | with the background. |
| [in] | name | in imageset. |
| void SCR_TaskMapUIComponent.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 |
|
protected |
Sets visibility of entry.
| [in] | show | New visibility |
|
protected |
Requests update of player name cache if requested by m_bRequestPlayerNameCacheUpdate.
| void SCR_TaskMapUIComponent.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 |
Updates task title and icon to the one provided in task SCR_TaskUIInfo.
|
protected |
Handles task visuals based on new task state.
| [in] | state | New state of task |
Implemented in SCR_ConflictTaskMapUIComponent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |