Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TaskListEntryUIComponent Class Reference
Inheritance diagram for SCR_TaskListEntryUIComponent:
SCR_ScriptedWidgetComponent SCR_ConflictTaskListEntryUIComponent

Protected Member Functions

override void HandlerAttached (Widget w)
override void HandlerDeattached (Widget w)
void OnHoveredStart (SCR_ModularButtonComponent comp, bool mouseInput)
void OnHoveredEnd (SCR_ModularButtonComponent comp, bool mouseInput)
bool CheckTitleOverflow ()
int GetAssignees ()
void InitTask (notnull SCR_Task task, bool hasChild=false)
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 OnTaskEntryClicked ()
 Invoked when task button is clicked.
void OnTaskAssigneeAdded (notnull SCR_Task task, SCR_TaskExecutor assignee, int requesterID)
void OnTaskStateChanged (SCR_Task task, SCR_ETaskState state)
void HandleTaskState (SCR_ETaskState state, bool forceRefresh=true)
void OnProgressChanged (float change, float newProgress)
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 ()
void UpdateTask ()
 Set task icon and title to the ones set in tasks' SCR_TaskUIInfo.
void SetTaskTextColor (notnull Color color)
void UpdateTaskIconColors (Color backgroundColor=null, Color iconColor=null, Color outlineColor=null)
void SetTaskIconColors (Color backgroundColor=null, Color iconColor=null, Color outlineColor=null)
void SetTaskBackground (ResourceName imageset, string name)
void SetEntrySelected (bool selected)
void SetIcon (ResourceName imageset, string iconName)
void SetIcon (ResourceName texture)
void ShowProgressBar (bool show)
void SetProgressValue (float progress=-1)
void ShowAssigneeCount (bool show)
void SetAssigneeCount (int assigneesCount)
void SetChildCount (int count)
void SetVisibility (bool show)
Widget GetChildWrapper ()
Widget GetEntryButton ()
SCR_TaskVisualsChangedInvoker GetOnTaskVisualChanged ()

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()
const int MAX_CHILD_COUNT = 9

Detailed Description

Definition at line 9 of file SCR_TaskListEntryUIComponent.c.

Member Function Documentation

◆ CheckTaskVisibility()

void SCR_TaskListEntryUIComponent::CheckTaskVisibility ( )
inlineprotected

Definition at line 444 of file SCR_TaskListEntryUIComponent.c.

◆ CheckTitleOverflow()

bool SCR_TaskListEntryUIComponent::CheckTitleOverflow ( )
inlineprotected
Returns
True when content doesn't fit parent widget.

Definition at line 112 of file SCR_TaskListEntryUIComponent.c.

◆ GetAssignees()

int SCR_TaskListEntryUIComponent::GetAssignees ( )
inlineprotected
Returns
Number of IEntities assigned to task.

Definition at line 125 of file SCR_TaskListEntryUIComponent.c.

◆ GetChildWrapper()

Widget SCR_TaskListEntryUIComponent::GetChildWrapper ( )
inlineprotected
Returns
Wrapper for child tasks

Definition at line 643 of file SCR_TaskListEntryUIComponent.c.

◆ GetEntryButton()

Widget SCR_TaskListEntryUIComponent::GetEntryButton ( )
inlineprotected
Returns
entry main button

Definition at line 650 of file SCR_TaskListEntryUIComponent.c.

◆ GetOnTaskVisualChanged()

SCR_TaskVisualsChangedInvoker SCR_TaskListEntryUIComponent::GetOnTaskVisualChanged ( )
inlineprotected

Definition at line 656 of file SCR_TaskListEntryUIComponent.c.

◆ HandlerAttached()

override void SCR_TaskListEntryUIComponent::HandlerAttached ( Widget w)
inlineprotected

Definition at line 34 of file SCR_TaskListEntryUIComponent.c.

◆ HandlerDeattached()

override void SCR_TaskListEntryUIComponent::HandlerDeattached ( Widget w)
inlineprotected

Definition at line 58 of file SCR_TaskListEntryUIComponent.c.

◆ HandleTaskState()

void SCR_TaskListEntryUIComponent::HandleTaskState ( SCR_ETaskState state,
bool forceRefresh = true )
inlineprotected

Sets task visuals based on new state of task.

Parameters
[in]stateNew state of task.
[in]forceRefreshof task list.

Definition at line 330 of file SCR_TaskListEntryUIComponent.c.

◆ InitTask()

void SCR_TaskListEntryUIComponent::InitTask ( notnull SCR_Task task,
bool hasChild = false )
inlineprotected

Initializes task and sets its visuals

Parameters
[in]taskInitialized task

Definition at line 136 of file SCR_TaskListEntryUIComponent.c.

◆ OnDisplayDataChanged()

void SCR_TaskListEntryUIComponent::OnDisplayDataChanged ( )
inlineprotected

Invoked when task visual data is changed.

Definition at line 380 of file SCR_TaskListEntryUIComponent.c.

◆ OnHoveredEnd()

void SCR_TaskListEntryUIComponent::OnHoveredEnd ( SCR_ModularButtonComponent comp,
bool mouseInput )
inlineprotected

Definition at line 104 of file SCR_TaskListEntryUIComponent.c.

◆ OnHoveredStart()

void SCR_TaskListEntryUIComponent::OnHoveredStart ( SCR_ModularButtonComponent comp,
bool mouseInput )
inlineprotected

Definition at line 95 of file SCR_TaskListEntryUIComponent.c.

◆ OnProgressChanged()

void SCR_TaskListEntryUIComponent::OnProgressChanged ( float change,
float newProgress )
inlineprotected

Sets task progression visuals based on new progress.

Parameters
[in]changeDifference between old and new progress.
[in]newProgressNew value of task progress.

Definition at line 373 of file SCR_TaskListEntryUIComponent.c.

◆ OnTaskAssigneeAdded()

void SCR_TaskListEntryUIComponent::OnTaskAssigneeAdded ( notnull SCR_Task task,
SCR_TaskExecutor assignee,
int requesterID )
inlineprotected

Invoked when IEntity is assigned to task. If player is assignee, sets color of task background to currently controlled character faction color.

Parameters
[in]task
[in]assigneeIEntity being assigned to task.
[in]requesterID

Definition at line 266 of file SCR_TaskListEntryUIComponent.c.

◆ OnTaskEntryClicked()

void SCR_TaskListEntryUIComponent::OnTaskEntryClicked ( )
inlineprotected

Invoked when task button is clicked.

Definition at line 244 of file SCR_TaskListEntryUIComponent.c.

◆ OnTaskFactionChanged()

void SCR_TaskListEntryUIComponent::OnTaskFactionChanged ( SCR_Task task,
FactionKey key )
inlineprotected

Invoked when task faction is changed.

Definition at line 422 of file SCR_TaskListEntryUIComponent.c.

◆ OnTaskGroupChanged()

void SCR_TaskListEntryUIComponent::OnTaskGroupChanged ( SCR_Task task,
int id )
inlineprotected

Invoked when task group is changed.

Definition at line 433 of file SCR_TaskListEntryUIComponent.c.

◆ OnTaskOwnershipChanged()

void SCR_TaskListEntryUIComponent::OnTaskOwnershipChanged ( SCR_Task task,
SCR_ETaskOwnership ownership )
inlineprotected

Invoked when task ownership is changed.

Definition at line 411 of file SCR_TaskListEntryUIComponent.c.

◆ OnTaskStateChanged()

void SCR_TaskListEntryUIComponent::OnTaskStateChanged ( SCR_Task task,
SCR_ETaskState state )
inlineprotected

Invoked on task state change

Parameters
[in]stateNew state of task.

Definition at line 319 of file SCR_TaskListEntryUIComponent.c.

◆ OnTaskUIVisibilityChanged()

void SCR_TaskListEntryUIComponent::OnTaskUIVisibilityChanged ( SCR_Task task,
SCR_ETaskUIVisibility visible )
inlineprotected

Invoked when task visual data is changed.

Definition at line 389 of file SCR_TaskListEntryUIComponent.c.

◆ OnTaskVisibilityChanged()

void SCR_TaskListEntryUIComponent::OnTaskVisibilityChanged ( SCR_Task task,
SCR_ETaskVisibility visible )
inlineprotected

Invoked when task visibility is changed.

Definition at line 400 of file SCR_TaskListEntryUIComponent.c.

◆ OnWrapperFolded()

void SCR_TaskListEntryUIComponent::OnWrapperFolded ( )
inlineprotected

Toggles child tasks fold.

Definition at line 222 of file SCR_TaskListEntryUIComponent.c.

◆ SetAssigneeCount()

void SCR_TaskListEntryUIComponent::SetAssigneeCount ( int assigneesCount)
inlineprotected

Sets number of assignees assigned to the task

Parameters
[in]assigneCountNumber of assignees

Definition at line 611 of file SCR_TaskListEntryUIComponent.c.

◆ SetChildCount()

void SCR_TaskListEntryUIComponent::SetChildCount ( int count)
inlineprotected
Parameters
[in]count

Definition at line 621 of file SCR_TaskListEntryUIComponent.c.

◆ SetChildWrapperFolded()

void SCR_TaskListEntryUIComponent::SetChildWrapperFolded ( SCR_ModularButtonComponent comp = null,
bool toggled = -1 )
inlineprotected

Toggles child tasks fold.

Definition at line 229 of file SCR_TaskListEntryUIComponent.c.

◆ SetEntrySelected()

void SCR_TaskListEntryUIComponent::SetEntrySelected ( bool selected)
inlineprotected

Sets entry as selected.

Parameters
[in]selectedNew selection state.

Definition at line 543 of file SCR_TaskListEntryUIComponent.c.

◆ SetIcon() [1/2]

void SCR_TaskListEntryUIComponent::SetIcon ( ResourceName imageset,
string iconName )
inlineprotected

Sets icon to icon from provided imageset.

Parameters
[in]imageset
[in]iconNameName of icon in imageset

Definition at line 571 of file SCR_TaskListEntryUIComponent.c.

◆ SetIcon() [2/2]

void SCR_TaskListEntryUIComponent::SetIcon ( ResourceName texture)
inlineprotected

Sets icon to icon from provided texture.

Parameters
[in]textureNew icon texture

Definition at line 579 of file SCR_TaskListEntryUIComponent.c.

◆ SetIconFactionColor()

void SCR_TaskListEntryUIComponent::SetIconFactionColor ( )
inlineprotected

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.

Definition at line 191 of file SCR_TaskListEntryUIComponent.c.

◆ SetProgressValue()

void SCR_TaskListEntryUIComponent::SetProgressValue ( float progress = -1)
inlineprotected

Sets progression of task progression bar. If progress is -1, gets progress from task itself.

Parameters
[in]progressValue of progression to set on progress bar component.

Definition at line 595 of file SCR_TaskListEntryUIComponent.c.

◆ SetTaskBackground()

void SCR_TaskListEntryUIComponent::SetTaskBackground ( ResourceName imageset,
string name )
inlineprotected

Sets new background of task.

Parameters
[in]imagesetwith the background.
[in]namein imageset.

Definition at line 532 of file SCR_TaskListEntryUIComponent.c.

◆ SetTaskIconColors()

void SCR_TaskListEntryUIComponent::SetTaskIconColors ( Color backgroundColor = null,
Color iconColor = null,
Color outlineColor = null )
inlineprotected

Sets task icon colors

Parameters
[in]Colorof background
[in]Colorof icon
[in]Colorof outline

Definition at line 516 of file SCR_TaskListEntryUIComponent.c.

◆ SetTaskTextColor()

void SCR_TaskListEntryUIComponent::SetTaskTextColor ( notnull Color color)
inlineprotected

Sets color of task title.

Parameters
[in]colornew color of text.

Definition at line 485 of file SCR_TaskListEntryUIComponent.c.

◆ SetVisibility()

void SCR_TaskListEntryUIComponent::SetVisibility ( bool show)
inlineprotected

Sets visibility of entry

Parameters
[in]showNew visibility

Definition at line 636 of file SCR_TaskListEntryUIComponent.c.

◆ ShowAssigneeCount()

void SCR_TaskListEntryUIComponent::ShowAssigneeCount ( bool show)
inlineprotected

Sets progression of task progression bar. If progress is -1, gets progress from task itself.

Parameters
[in]showVisibility of assignee count icon

Definition at line 603 of file SCR_TaskListEntryUIComponent.c.

◆ ShowProgressBar()

void SCR_TaskListEntryUIComponent::ShowProgressBar ( bool show)
inlineprotected

Sets visibility of task progression bar.

Parameters
[in]showVisibility of progress bar.

Definition at line 587 of file SCR_TaskListEntryUIComponent.c.

◆ UpdateTask()

void SCR_TaskListEntryUIComponent::UpdateTask ( )
inlineprotected

Set task icon and title to the ones set in tasks' SCR_TaskUIInfo.

Definition at line 470 of file SCR_TaskListEntryUIComponent.c.

◆ UpdateTaskIconColors()

void SCR_TaskListEntryUIComponent::UpdateTaskIconColors ( Color backgroundColor = null,
Color iconColor = null,
Color outlineColor = null )
inlineprotected

Sets task icon colors

Parameters
[in]Colorof background
[in]Colorof icon
[in]Colorof outline

Definition at line 495 of file SCR_TaskListEntryUIComponent.c.

Member Data Documentation

◆ m_BackgroundColor

ref Color SCR_TaskListEntryUIComponent::m_BackgroundColor
protected

Definition at line 21 of file SCR_TaskListEntryUIComponent.c.

◆ m_FactionColor

ref Color SCR_TaskListEntryUIComponent::m_FactionColor
protected

Definition at line 23 of file SCR_TaskListEntryUIComponent.c.

◆ m_IconColor

ref Color SCR_TaskListEntryUIComponent::m_IconColor
protected

Definition at line 15 of file SCR_TaskListEntryUIComponent.c.

◆ m_OnTaskSelected

ref SCR_TaskWidgetSelectedInvoker SCR_TaskListEntryUIComponent::m_OnTaskSelected
protected

Definition at line 27 of file SCR_TaskListEntryUIComponent.c.

◆ m_OnTaskVisualUpdated

ref SCR_TaskVisualsChangedInvoker SCR_TaskListEntryUIComponent::m_OnTaskVisualUpdated
protected

Definition at line 28 of file SCR_TaskListEntryUIComponent.c.

◆ m_OutlineColor

ref Color SCR_TaskListEntryUIComponent::m_OutlineColor
protected

Definition at line 18 of file SCR_TaskListEntryUIComponent.c.

◆ m_Task

SCR_Task SCR_TaskListEntryUIComponent::m_Task
protected

Definition at line 24 of file SCR_TaskListEntryUIComponent.c.

◆ m_TaskManager

SCR_TaskManagerUIComponent SCR_TaskListEntryUIComponent::m_TaskManager
protected

Definition at line 25 of file SCR_TaskListEntryUIComponent.c.

◆ m_UnassignedTaskColor

ref Color SCR_TaskListEntryUIComponent::m_UnassignedTaskColor
protected

Definition at line 12 of file SCR_TaskListEntryUIComponent.c.

◆ m_Widgets

ref SCR_TaskListEntryWidgets SCR_TaskListEntryUIComponent::m_Widgets = new SCR_TaskListEntryWidgets()
protected

Definition at line 29 of file SCR_TaskListEntryUIComponent.c.

◆ MAX_CHILD_COUNT

const int SCR_TaskListEntryUIComponent::MAX_CHILD_COUNT = 9
protected

Definition at line 31 of file SCR_TaskListEntryUIComponent.c.


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