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

Protected Member Functions

void SCR_TaskManagerUIComponent (IEntityComponentSource src, IEntity ent, IEntity parent)
void ~SCR_TaskManagerUIComponent ()
override void EOnInit (IEntity owner)
override void EOnFrame (IEntity owner, float timeSlice)
void ToggleCurrentTask ()
 Displays a hint with currently selected task.
void ShowTaskOnMap ()
 Requests panning map to task. If map is not opened - opens it.
void PanMapToTask (string taskID=string.Empty, SCR_Task task=null)
void AssignTask (SCR_Task task=null)
void CloseTaskList ()
 Closes task list.
void TaskHUDVisibilityChanged (bool newVisibility)
 Invokes whenever task list on HUD is shown.
void SetSelectedTask (SCR_Task task)
void SetHoveredTask (SCR_Task task)
void OnControlledEntityChanged (IEntity from, IEntity to)
void LifeStateChanged (ECharacterLifeState previousLifeState, ECharacterLifeState newLifeState)
override void OnPlayerConnected (int playerId)
void OnClientPlayerRegistered (int playerId)
void OnClientControlledEntityChanged (IEntity from, IEntity to)
void OnGroupChanged (int groupID)
void OnMapOpen (MapConfiguration config)
void OnMapClose (MapConfiguration config)
void UpdateTaskColors (Color backgroundColor, Color iconColor, Color outlineColor)
void UpdateTaskBackground (ResourceName imageset, string name)
SCR_Task GetSelectedTask ()
SCR_Task GetAssigedTask ()
bool IsTaskListOpen ()
void RegisterTaskList (SCR_TaskListUIComponent component)
bool RefreshTaskList ()
bool SetTaskDescriptionVisiblity (bool newVisibility)
void SetJournalVisibility (bool newVisibility)
void SetTaskListVisibility (bool newVisibility)
SCR_TaskListUIComponent GetTaskListComponent ()
SCR_TaskListEntryDescriptionUIComponent GetTaskDescriptionComponent ()
ResourceName GetDefaultImageset ()
string GetDefaultIcon ()
bool GetDisplayAssigneesOnMap ()
array< SCR_ETaskTabTypeGetTaskTabs ()
SCR_ETaskTabType GetDefaultTaskTab ()
array< ref SCR_TaskUIColorPresetList > GetTaskUIColorPresetList ()
ScriptInvokerBool GetOnTaskHUDVisible ()
SCR_TaskColorsUpdatedInvoker GetOnTaskColorsUpdated ()
SCR_TaskBackgroundUpdatedInvoker GetOnTaskBackgroundUpdated ()
SCR_TaskSelectedInvoker GetOnTaskSelected ()
SCR_TaskAssignedInvoker GetOnTaskAssigned ()
SCR_TaskHoveredInvoker GetOnTaskHovered ()

Static Protected Member Functions

static SCR_TaskManagerUIComponent GetInstance ()

Protected Attributes

ResourceName m_sTaskHintLayout
float m_fCurrentTaskShowTime
ResourceName m_sDefaultImageset
string m_sDefaultIcon
bool m_bDisplayOfAssigneesOnMap
bool m_bShowCurrentTaskOnRespawn
ResourceName m_sTaskTabConfig
ref array< ref SCR_TaskUIColorPresetList > m_aTaskUIColorPresetList
ref SCR_TaskSelectedInvoker m_OnTaskSelected
ref SCR_TaskAssignedInvoker m_OnTaskAssigned
ref SCR_TaskHoveredInvoker m_OnTaskHovered
ref SCR_TaskColorsUpdatedInvoker m_OnTaskColorsUpdate
ref SCR_TaskBackgroundUpdatedInvoker m_OnTaskBackgroundUpdate
ref ScriptInvokerBool m_OnTaskHUDVisible
ref SCR_TasksTabConfig m_TaskTabConfig
bool m_bIsUnconscious
bool m_bCurrentTaskVisible
Widget m_wTaskHint
SCR_Task m_SelectedTask
SCR_Task m_AssignedTask
SCR_Task m_HoveredTask
SCR_MapEntity m_MapEntity
SCR_TaskSystem m_TaskSystem
SCR_TaskListUIComponent m_TaskListComponent
SCR_MapJournalUI m_JournalComponent
const string CONTENT_TASK_LIST_MAP = "TaskListMapContext"
const string ACTION_CLOSE_TASK_LIST = "TasksClose"

Static Protected Attributes

static SCR_TaskManagerUIComponent s_Instance

Detailed Description

Definition at line 26 of file SCR_TaskManagerUIComponent.c.

Constructor & Destructor Documentation

◆ SCR_TaskManagerUIComponent()

void SCR_TaskManagerUIComponent::SCR_TaskManagerUIComponent ( IEntityComponentSource src,
IEntity ent,
IEntity parent )
inlineprotected
Parameters
[in]src
[in]ent
[in]parent

Definition at line 82 of file SCR_TaskManagerUIComponent.c.

◆ ~SCR_TaskManagerUIComponent()

void SCR_TaskManagerUIComponent::~SCR_TaskManagerUIComponent ( )
inlineprotected

Definition at line 92 of file SCR_TaskManagerUIComponent.c.

Member Function Documentation

◆ AssignTask()

void SCR_TaskManagerUIComponent::AssignTask ( SCR_Task task = null)
inlineprotected

Assigns provided task to the player.

Parameters
[in]SCR_Task

Definition at line 239 of file SCR_TaskManagerUIComponent.c.

◆ CloseTaskList()

void SCR_TaskManagerUIComponent::CloseTaskList ( )
inlineprotected

Closes task list.

Definition at line 286 of file SCR_TaskManagerUIComponent.c.

◆ EOnFrame()

override void SCR_TaskManagerUIComponent::EOnFrame ( IEntity owner,
float timeSlice )
inlineprotected

Definition at line 133 of file SCR_TaskManagerUIComponent.c.

◆ EOnInit()

override void SCR_TaskManagerUIComponent::EOnInit ( IEntity owner)
inlineprotected

Definition at line 105 of file SCR_TaskManagerUIComponent.c.

◆ GetAssigedTask()

SCR_Task SCR_TaskManagerUIComponent::GetAssigedTask ( )
inlineprotected
Returns
Currently assigned task.

Definition at line 450 of file SCR_TaskManagerUIComponent.c.

◆ GetDefaultIcon()

string SCR_TaskManagerUIComponent::GetDefaultIcon ( )
inlineprotected
Returns
default icon name.

Definition at line 578 of file SCR_TaskManagerUIComponent.c.

◆ GetDefaultImageset()

ResourceName SCR_TaskManagerUIComponent::GetDefaultImageset ( )
inlineprotected
Returns
default imageset.

Definition at line 571 of file SCR_TaskManagerUIComponent.c.

◆ GetDefaultTaskTab()

SCR_ETaskTabType SCR_TaskManagerUIComponent::GetDefaultTaskTab ( )
inlineprotected
Returns
default task tab

Definition at line 602 of file SCR_TaskManagerUIComponent.c.

◆ GetDisplayAssigneesOnMap()

bool SCR_TaskManagerUIComponent::GetDisplayAssigneesOnMap ( )
inlineprotected
Returns
default icon name.

Definition at line 585 of file SCR_TaskManagerUIComponent.c.

◆ GetInstance()

SCR_TaskManagerUIComponent SCR_TaskManagerUIComponent::GetInstance ( )
inlinestaticprotected
Returns
Instance of task manager.

Definition at line 436 of file SCR_TaskManagerUIComponent.c.

◆ GetOnTaskAssigned()

SCR_TaskAssignedInvoker SCR_TaskManagerUIComponent::GetOnTaskAssigned ( )
inlineprotected

Definition at line 657 of file SCR_TaskManagerUIComponent.c.

◆ GetOnTaskBackgroundUpdated()

SCR_TaskBackgroundUpdatedInvoker SCR_TaskManagerUIComponent::GetOnTaskBackgroundUpdated ( )
inlineprotected

Definition at line 639 of file SCR_TaskManagerUIComponent.c.

◆ GetOnTaskColorsUpdated()

SCR_TaskColorsUpdatedInvoker SCR_TaskManagerUIComponent::GetOnTaskColorsUpdated ( )
inlineprotected

Definition at line 630 of file SCR_TaskManagerUIComponent.c.

◆ GetOnTaskHovered()

SCR_TaskHoveredInvoker SCR_TaskManagerUIComponent::GetOnTaskHovered ( )
inlineprotected

Definition at line 666 of file SCR_TaskManagerUIComponent.c.

◆ GetOnTaskHUDVisible()

ScriptInvokerBool SCR_TaskManagerUIComponent::GetOnTaskHUDVisible ( )
inlineprotected

Definition at line 621 of file SCR_TaskManagerUIComponent.c.

◆ GetOnTaskSelected()

SCR_TaskSelectedInvoker SCR_TaskManagerUIComponent::GetOnTaskSelected ( )
inlineprotected

Definition at line 648 of file SCR_TaskManagerUIComponent.c.

◆ GetSelectedTask()

SCR_Task SCR_TaskManagerUIComponent::GetSelectedTask ( )
inlineprotected
Returns
Currently selected task.

Definition at line 443 of file SCR_TaskManagerUIComponent.c.

◆ GetTaskDescriptionComponent()

SCR_TaskListEntryDescriptionUIComponent SCR_TaskManagerUIComponent::GetTaskDescriptionComponent ( )
inlineprotected
Returns
task description ui component

Definition at line 557 of file SCR_TaskManagerUIComponent.c.

◆ GetTaskListComponent()

SCR_TaskListUIComponent SCR_TaskManagerUIComponent::GetTaskListComponent ( )
inlineprotected
Returns
Currently assigned task.

Definition at line 547 of file SCR_TaskManagerUIComponent.c.

◆ GetTaskTabs()

array< SCR_ETaskTabType > SCR_TaskManagerUIComponent::GetTaskTabs ( )
inlineprotected
Returns
task tabs to be displayed

Definition at line 592 of file SCR_TaskManagerUIComponent.c.

◆ GetTaskUIColorPresetList()

array< ref SCR_TaskUIColorPresetList > SCR_TaskManagerUIComponent::GetTaskUIColorPresetList ( )
inlineprotected
Returns
Task UI color preset list

Definition at line 615 of file SCR_TaskManagerUIComponent.c.

◆ IsTaskListOpen()

bool SCR_TaskManagerUIComponent::IsTaskListOpen ( )
inlineprotected
Returns
Whether task list is opened in map view.

Definition at line 457 of file SCR_TaskManagerUIComponent.c.

◆ LifeStateChanged()

void SCR_TaskManagerUIComponent::LifeStateChanged ( ECharacterLifeState previousLifeState,
ECharacterLifeState newLifeState )
inlineprotected

Definition at line 348 of file SCR_TaskManagerUIComponent.c.

◆ OnClientControlledEntityChanged()

void SCR_TaskManagerUIComponent::OnClientControlledEntityChanged ( IEntity from,
IEntity to )
inlineprotected

Definition at line 385 of file SCR_TaskManagerUIComponent.c.

◆ OnClientPlayerRegistered()

void SCR_TaskManagerUIComponent::OnClientPlayerRegistered ( int playerId)
inlineprotected

Definition at line 372 of file SCR_TaskManagerUIComponent.c.

◆ OnControlledEntityChanged()

void SCR_TaskManagerUIComponent::OnControlledEntityChanged ( IEntity from,
IEntity to )
inlineprotected

SCR_PlayerController Event Used to reinit Task manager Component when new entity is controlled

Definition at line 322 of file SCR_TaskManagerUIComponent.c.

◆ OnGroupChanged()

void SCR_TaskManagerUIComponent::OnGroupChanged ( int groupID)
inlineprotected

Definition at line 393 of file SCR_TaskManagerUIComponent.c.

◆ OnMapClose()

void SCR_TaskManagerUIComponent::OnMapClose ( MapConfiguration config)
inlineprotected

SCR_MapEntity event

Parameters
[in]config

Definition at line 410 of file SCR_TaskManagerUIComponent.c.

◆ OnMapOpen()

void SCR_TaskManagerUIComponent::OnMapOpen ( MapConfiguration config)
inlineprotected

SCR_MapEntity event

Parameters
[in]config

Definition at line 402 of file SCR_TaskManagerUIComponent.c.

◆ OnPlayerConnected()

override void SCR_TaskManagerUIComponent::OnPlayerConnected ( int playerId)
inlineprotected

Definition at line 354 of file SCR_TaskManagerUIComponent.c.

◆ PanMapToTask()

void SCR_TaskManagerUIComponent::PanMapToTask ( string taskID = string.Empty,
SCR_Task task = null )
inlineprotected

Moves camera to task position in map view

Parameters
[in]taskID
[in]task

Definition at line 218 of file SCR_TaskManagerUIComponent.c.

◆ RefreshTaskList()

bool SCR_TaskManagerUIComponent::RefreshTaskList ( )
inlineprotected

Register task list component.

Returns
whether task list was refreshed or not

Definition at line 476 of file SCR_TaskManagerUIComponent.c.

◆ RegisterTaskList()

void SCR_TaskManagerUIComponent::RegisterTaskList ( SCR_TaskListUIComponent component)
inlineprotected

Register task list component.

Parameters
[in]componentto be registered

Definition at line 468 of file SCR_TaskManagerUIComponent.c.

◆ SetHoveredTask()

void SCR_TaskManagerUIComponent::SetHoveredTask ( SCR_Task task)
inlineprotected

Sets provided task as hovered.

Parameters
[in]task

Definition at line 312 of file SCR_TaskManagerUIComponent.c.

◆ SetJournalVisibility()

void SCR_TaskManagerUIComponent::SetJournalVisibility ( bool newVisibility)
inlineprotected

Sets new visiblity of journal and hides task list.

Parameters
[in]visibilityof journal to be set.

Definition at line 501 of file SCR_TaskManagerUIComponent.c.

◆ SetSelectedTask()

void SCR_TaskManagerUIComponent::SetSelectedTask ( SCR_Task task)
inlineprotected

Sets provided task as selected.

Parameters
[in]task

Definition at line 302 of file SCR_TaskManagerUIComponent.c.

◆ SetTaskDescriptionVisiblity()

bool SCR_TaskManagerUIComponent::SetTaskDescriptionVisiblity ( bool newVisibility)
inlineprotected
Parameters
[in]visibilityof task description.

Definition at line 488 of file SCR_TaskManagerUIComponent.c.

◆ SetTaskListVisibility()

void SCR_TaskManagerUIComponent::SetTaskListVisibility ( bool newVisibility)
inlineprotected

Sets new visiblity of task list and hides journal.

Parameters
[in]visibilityof task list to be set.

Definition at line 523 of file SCR_TaskManagerUIComponent.c.

◆ ShowTaskOnMap()

void SCR_TaskManagerUIComponent::ShowTaskOnMap ( )
inlineprotected

Requests panning map to task. If map is not opened - opens it.

Definition at line 185 of file SCR_TaskManagerUIComponent.c.

◆ TaskHUDVisibilityChanged()

void SCR_TaskManagerUIComponent::TaskHUDVisibilityChanged ( bool newVisibility)
inlineprotected

Invokes whenever task list on HUD is shown.

Definition at line 293 of file SCR_TaskManagerUIComponent.c.

◆ ToggleCurrentTask()

void SCR_TaskManagerUIComponent::ToggleCurrentTask ( )
inlineprotected

Displays a hint with currently selected task.

Definition at line 141 of file SCR_TaskManagerUIComponent.c.

◆ UpdateTaskBackground()

void SCR_TaskManagerUIComponent::UpdateTaskBackground ( ResourceName imageset,
string name )
inlineprotected

Sets new background of task.

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

Definition at line 429 of file SCR_TaskManagerUIComponent.c.

◆ UpdateTaskColors()

void SCR_TaskManagerUIComponent::UpdateTaskColors ( Color backgroundColor,
Color iconColor,
Color outlineColor )
inlineprotected

Sets new colors on task icons. If provided color is null, its being skipped.

Parameters
[in]backgroundColor- color of task shield background.
[in]iconColor- color of task symbol.
[in]outlineColor- color of task shield outline.

Definition at line 420 of file SCR_TaskManagerUIComponent.c.

Member Data Documentation

◆ ACTION_CLOSE_TASK_LIST

const string SCR_TaskManagerUIComponent::ACTION_CLOSE_TASK_LIST = "TasksClose"
protected

Definition at line 75 of file SCR_TaskManagerUIComponent.c.

◆ CONTENT_TASK_LIST_MAP

const string SCR_TaskManagerUIComponent::CONTENT_TASK_LIST_MAP = "TaskListMapContext"
protected

Definition at line 74 of file SCR_TaskManagerUIComponent.c.

◆ m_AssignedTask

SCR_Task SCR_TaskManagerUIComponent::m_AssignedTask
protected

Definition at line 66 of file SCR_TaskManagerUIComponent.c.

◆ m_aTaskUIColorPresetList

ref array<ref SCR_TaskUIColorPresetList> SCR_TaskManagerUIComponent::m_aTaskUIColorPresetList
protected

Definition at line 50 of file SCR_TaskManagerUIComponent.c.

◆ m_bCurrentTaskVisible

bool SCR_TaskManagerUIComponent::m_bCurrentTaskVisible
protected

Definition at line 62 of file SCR_TaskManagerUIComponent.c.

◆ m_bDisplayOfAssigneesOnMap

bool SCR_TaskManagerUIComponent::m_bDisplayOfAssigneesOnMap
protected

Definition at line 41 of file SCR_TaskManagerUIComponent.c.

◆ m_bIsUnconscious

bool SCR_TaskManagerUIComponent::m_bIsUnconscious
protected

Definition at line 61 of file SCR_TaskManagerUIComponent.c.

◆ m_bShowCurrentTaskOnRespawn

bool SCR_TaskManagerUIComponent::m_bShowCurrentTaskOnRespawn
protected

Definition at line 44 of file SCR_TaskManagerUIComponent.c.

◆ m_fCurrentTaskShowTime

float SCR_TaskManagerUIComponent::m_fCurrentTaskShowTime
protected

Definition at line 32 of file SCR_TaskManagerUIComponent.c.

◆ m_HoveredTask

SCR_Task SCR_TaskManagerUIComponent::m_HoveredTask
protected

Definition at line 67 of file SCR_TaskManagerUIComponent.c.

◆ m_JournalComponent

SCR_MapJournalUI SCR_TaskManagerUIComponent::m_JournalComponent
protected

Definition at line 72 of file SCR_TaskManagerUIComponent.c.

◆ m_MapEntity

SCR_MapEntity SCR_TaskManagerUIComponent::m_MapEntity
protected

Definition at line 69 of file SCR_TaskManagerUIComponent.c.

◆ m_OnTaskAssigned

ref SCR_TaskAssignedInvoker SCR_TaskManagerUIComponent::m_OnTaskAssigned
protected

Definition at line 55 of file SCR_TaskManagerUIComponent.c.

◆ m_OnTaskBackgroundUpdate

ref SCR_TaskBackgroundUpdatedInvoker SCR_TaskManagerUIComponent::m_OnTaskBackgroundUpdate
protected

Definition at line 58 of file SCR_TaskManagerUIComponent.c.

◆ m_OnTaskColorsUpdate

ref SCR_TaskColorsUpdatedInvoker SCR_TaskManagerUIComponent::m_OnTaskColorsUpdate
protected

Definition at line 57 of file SCR_TaskManagerUIComponent.c.

◆ m_OnTaskHovered

ref SCR_TaskHoveredInvoker SCR_TaskManagerUIComponent::m_OnTaskHovered
protected

Definition at line 56 of file SCR_TaskManagerUIComponent.c.

◆ m_OnTaskHUDVisible

ref ScriptInvokerBool SCR_TaskManagerUIComponent::m_OnTaskHUDVisible
protected

Definition at line 59 of file SCR_TaskManagerUIComponent.c.

◆ m_OnTaskSelected

ref SCR_TaskSelectedInvoker SCR_TaskManagerUIComponent::m_OnTaskSelected
protected

Definition at line 54 of file SCR_TaskManagerUIComponent.c.

◆ m_sDefaultIcon

string SCR_TaskManagerUIComponent::m_sDefaultIcon
protected

Definition at line 38 of file SCR_TaskManagerUIComponent.c.

◆ m_sDefaultImageset

ResourceName SCR_TaskManagerUIComponent::m_sDefaultImageset
protected

Definition at line 35 of file SCR_TaskManagerUIComponent.c.

◆ m_SelectedTask

SCR_Task SCR_TaskManagerUIComponent::m_SelectedTask
protected

Definition at line 65 of file SCR_TaskManagerUIComponent.c.

◆ m_sTaskHintLayout

ResourceName SCR_TaskManagerUIComponent::m_sTaskHintLayout
protected

Definition at line 29 of file SCR_TaskManagerUIComponent.c.

◆ m_sTaskTabConfig

ResourceName SCR_TaskManagerUIComponent::m_sTaskTabConfig
protected

Definition at line 47 of file SCR_TaskManagerUIComponent.c.

◆ m_TaskListComponent

SCR_TaskListUIComponent SCR_TaskManagerUIComponent::m_TaskListComponent
protected

Definition at line 71 of file SCR_TaskManagerUIComponent.c.

◆ m_TaskSystem

SCR_TaskSystem SCR_TaskManagerUIComponent::m_TaskSystem
protected

Definition at line 70 of file SCR_TaskManagerUIComponent.c.

◆ m_TaskTabConfig

ref SCR_TasksTabConfig SCR_TaskManagerUIComponent::m_TaskTabConfig
protected

Definition at line 60 of file SCR_TaskManagerUIComponent.c.

◆ m_wTaskHint

Widget SCR_TaskManagerUIComponent::m_wTaskHint
protected

Definition at line 64 of file SCR_TaskManagerUIComponent.c.

◆ s_Instance

SCR_TaskManagerUIComponent SCR_TaskManagerUIComponent::s_Instance
staticprotected

Definition at line 52 of file SCR_TaskManagerUIComponent.c.


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