Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_UITaskManagerComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_UITaskManagerComponentClass
 

Functions

bool IsTaskListOpen ()
 
void SetSelectedWidget (Widget w)
 
void StopHUDIconUpdates (SCR_BaseTask task)
 
void KeepHUDIconUpdated (int msTime, SCR_BaseTask task)
 
void OnTaskDeleted (SCR_BaseTask task)
 
void SelectTask (SCR_BaseTask task, Widget w=null)
 
SCR_BaseTask GetSelectedTask ()
 
Widget GetRootWidget ()
 
Widget GetParentWidget ()
 
array< Widget > GetWidgetsArray ()
 
void UnregisterTimer (SCR_BaseTask task)
 
void RegisterTimer (SCR_BaseTask task, TextWidget timerWidget)
 
void SetupAssigneeTexts (notnull SCR_BaseTask task, Widget parent)
 Creates assignee texts if needed. More...
 
void GenerateUI (Widget rootWidget, SCR_BaseTask taskToFocus=null)
 
protected void GenerateRequestButtons ()
 
protected void ClearUI ()
 
override void EOnFrame (IEntity owner, float timeSlice)
 
string GetFormattedTimerText (float time)
 
Widget InitCurrentTaskWidget ()
 
bool HasLocallyAssignedTask ()
 
void ToggleCurrentTask (bool fade=true)
 
void HidePickAssignee ()
 
void HideDetail ()
 
void Action_PickAssignee ()
 
void Action_TasksOpen ()
 
void Action_ShowHint ()
 
void Action_TasksClose ()
 
void Action_ShowOnMap ()
 
void Action_AssignTask (SCR_BaseTask task=null)
 
void Action_ShowDetail ()
 
void Action_Expand ()
 Action expand task called from controller. More...
 
void OnMapOpen (MapConfiguration cfg)
 
void OnMapClose (MapConfiguration config)
 
void HideAllHUDIcons (bool fade=true)
 
void Action_ShowTasks (Widget targetWidget=null, SCR_BaseTask taskToFocus=null)
 
void Action_HideTasks ()
 
void Action_SelectTask (notnull SCR_BaseTask task)
 
void Action_RequestTasksClose ()
 Do not close task list directly, but request it on mapTaskListUI in ordero unregister all events and set the variables properly. More...
 
protected void RemoveTaskFromList (SCR_BaseTask task)
 
void UpdateTimers ()
 Updates the timers in task descriptions. More...
 
void EnableTaskContext (bool enable)
 
protected void OnInputDeviceIsGamepad (bool isGamepad)
 
override void OnPostInit (IEntity owner)
 Editable Mine. More...
 
protected void OnDestroyed (Instigator killer, IEntity killerEntity)
 
void AddActionListeners ()
 
void RemoveActionListeners ()
 
protected void OnControlledEntityChanged (IEntity from, IEntity to)
 Runs every time the controlled entity has been changed. More...
 
protected void LifeStateChanged (ECharacterLifeState previousLifeState, ECharacterLifeState newLifeState)
 
override void EOnInit (IEntity owner)
 Initialise this component with data from FactionsManager. More...
 
void OnPlayerConnected (int playerID)
 
Widget CreateTaskList (Widget w=null)
 
void ClearWidget ()
 
void SCR_UITaskManagerComponent (IEntityComponentSource src, IEntity ent, IEntity parent)
 
void ~SCR_UITaskManagerComponent ()
 

Variables

SCR_UITaskManagerComponentClass NO_ASSIGNED_TASK = "#AR-Tasks_NoAssignedTaskTitle"
 
protected ref array< SCR_BaseTaskm_aHUDIconUpdatedTasks = {}
 
protected Widget m_wWidgetToFocus = null
 
protected Widget m_wTasksUI = null
 
protected Widget m_wParentWidget = null
 
protected Widget m_wUI = null
 
protected Widget m_wTaskDetail = null
 
protected Widget m_wExpandButton = null
 
SCR_MapEntity m_MapEntity
 
ref array< Widget > m_aWidgets = {}
 
ref map< SCR_BaseTask, TextWidget > m_mTasksTimers = new map<SCR_BaseTask, TextWidget>()
 
protected bool m_bVisible
 
protected bool m_bDetailVisible
 
protected bool m_bPickAssigneeVisible
 
protected bool m_bCurrentTaskVisible
 
protected bool m_bTaskContextEnabled
 
protected bool m_bIsUnconscious
 
protected float m_fCurrentTaskTime
 
protected SCR_BaseTask m_SelectedTask
 
protected SCR_BaseTask m_LastSelectedTask
 
protected bool m_bShowSelectedTaskOnMap
 
ResourceName m_UIResource
 
protected ResourceName m_sCurrentTaskLayout
 
protected ResourceName m_sTaskDetailLayout
 
protected float m_fCurrentTaskShowTime
 
protected bool m_bOpenTaskListOnMapOpen
 
protected ResourceName m_wPlayerListEntry
 
protected ref Color m_AssignedTaskColor
 
protected Widget m_wCurrentTask
 

Function Documentation

◆ Action_AssignTask()

void Action_AssignTask ( SCR_BaseTask  task = null)
Parameters
[in]task

Definition at line 677 of file SCR_UITaskManagerComponent.c.

◆ Action_Expand()

void Action_Expand ( )

Action expand task called from controller.

Definition at line 751 of file SCR_UITaskManagerComponent.c.

◆ Action_HideTasks()

void Action_HideTasks ( )

Definition at line 829 of file SCR_UITaskManagerComponent.c.

◆ Action_PickAssignee()

void Action_PickAssignee ( )

Definition at line 519 of file SCR_UITaskManagerComponent.c.

◆ Action_RequestTasksClose()

void Action_RequestTasksClose ( )

Do not close task list directly, but request it on mapTaskListUI in ordero unregister all events and set the variables properly.

Definition at line 866 of file SCR_UITaskManagerComponent.c.

◆ Action_SelectTask()

void Action_SelectTask ( notnull SCR_BaseTask  task)
Parameters
[in]task

Definition at line 845 of file SCR_UITaskManagerComponent.c.

◆ Action_ShowDetail()

void Action_ShowDetail ( )

Definition at line 716 of file SCR_UITaskManagerComponent.c.

◆ Action_ShowHint()

void Action_ShowHint ( )

Definition at line 612 of file SCR_UITaskManagerComponent.c.

◆ Action_ShowOnMap()

void Action_ShowOnMap ( )

Definition at line 642 of file SCR_UITaskManagerComponent.c.

◆ Action_ShowTasks()

void Action_ShowTasks ( Widget  targetWidget = null,
SCR_BaseTask  taskToFocus = null 
)
Parameters
[in]targetWidget
[in]taskToFocus

Definition at line 807 of file SCR_UITaskManagerComponent.c.

◆ Action_TasksClose()

void Action_TasksClose ( )

Definition at line 630 of file SCR_UITaskManagerComponent.c.

◆ Action_TasksOpen()

void Action_TasksOpen ( )

Definition at line 595 of file SCR_UITaskManagerComponent.c.

◆ AddActionListeners()

void AddActionListeners ( )

Definition at line 963 of file SCR_UITaskManagerComponent.c.

◆ ClearUI()

protected void ClearUI ( )

Definition at line 344 of file SCR_UITaskManagerComponent.c.

◆ ClearWidget()

void ClearWidget ( )

Definition at line 1085 of file SCR_UITaskManagerComponent.c.

◆ CreateTaskList()

Widget CreateTaskList ( Widget  w = null)
Parameters
[in]w
Returns

Definition at line 1056 of file SCR_UITaskManagerComponent.c.

◆ EnableTaskContext()

void EnableTaskContext ( bool  enable)
Parameters
[in]enable

Definition at line 931 of file SCR_UITaskManagerComponent.c.

◆ EOnFrame()

override void EOnFrame ( IEntity  owner,
float  timeSlice 
)

Definition at line 361 of file SCR_UITaskManagerComponent.c.

◆ GenerateRequestButtons()

protected void GenerateRequestButtons ( )

Definition at line 325 of file SCR_UITaskManagerComponent.c.

◆ GenerateUI()

void GenerateUI ( Widget  rootWidget,
SCR_BaseTask  taskToFocus = null 
)
Parameters
[in]rootWidget
[in]taskToFocus

Definition at line 254 of file SCR_UITaskManagerComponent.c.

◆ GetFormattedTimerText()

string GetFormattedTimerText ( float  time)
Parameters
[in]time
Returns

Definition at line 394 of file SCR_UITaskManagerComponent.c.

◆ GetParentWidget()

Widget GetParentWidget ( )
Returns

Definition at line 167 of file SCR_UITaskManagerComponent.c.

◆ GetRootWidget()

Widget GetRootWidget ( )
Returns

Definition at line 160 of file SCR_UITaskManagerComponent.c.

◆ GetSelectedTask()

SCR_BaseTask GetSelectedTask ( )
Returns

Definition at line 153 of file SCR_UITaskManagerComponent.c.

◆ GetWidgetsArray()

array<Widget> GetWidgetsArray ( )
Returns

Definition at line 174 of file SCR_UITaskManagerComponent.c.

◆ HasLocallyAssignedTask()

bool HasLocallyAssignedTask ( )
Returns

Definition at line 423 of file SCR_UITaskManagerComponent.c.

◆ HideAllHUDIcons()

void HideAllHUDIcons ( bool  fade = true)
Parameters
[in]fade

Definition at line 794 of file SCR_UITaskManagerComponent.c.

◆ HideDetail()

void HideDetail ( )

Definition at line 509 of file SCR_UITaskManagerComponent.c.

◆ HidePickAssignee()

void HidePickAssignee ( )

Definition at line 501 of file SCR_UITaskManagerComponent.c.

◆ InitCurrentTaskWidget()

Widget InitCurrentTaskWidget ( )
Returns

Definition at line 415 of file SCR_UITaskManagerComponent.c.

◆ IsTaskListOpen()

bool IsTaskListOpen ( )
Returns

Definition at line 71 of file SCR_UITaskManagerComponent.c.

◆ KeepHUDIconUpdated()

void KeepHUDIconUpdated ( int  msTime,
SCR_BaseTask  task 
)
Parameters
[in]msTime
[in]task

Definition at line 123 of file SCR_UITaskManagerComponent.c.

◆ LifeStateChanged()

protected void LifeStateChanged ( ECharacterLifeState  previousLifeState,
ECharacterLifeState  newLifeState 
)

Definition at line 1010 of file SCR_UITaskManagerComponent.c.

◆ OnDestroyed()

protected void OnDestroyed ( Instigator  killer,
IEntity  killerEntity 
)

SCR_PlayerController Event Listeners are added back because they are previously removed on unconsciousness and if character dies, they need to added back.

Definition at line 956 of file SCR_UITaskManagerComponent.c.

◆ OnInputDeviceIsGamepad()

protected void OnInputDeviceIsGamepad ( bool  isGamepad)

Definition at line 937 of file SCR_UITaskManagerComponent.c.

◆ OnMapClose()

void OnMapClose ( MapConfiguration  config)
Parameters
[in]config

Definition at line 783 of file SCR_UITaskManagerComponent.c.

◆ OnMapOpen()

void OnMapOpen ( MapConfiguration  cfg)
Parameters
[in]cfg

Definition at line 769 of file SCR_UITaskManagerComponent.c.

◆ OnTaskDeleted()

void OnTaskDeleted ( SCR_BaseTask  task)
Parameters
[in]task

Definition at line 134 of file SCR_UITaskManagerComponent.c.

◆ RegisterTimer()

void RegisterTimer ( SCR_BaseTask  task,
TextWidget  timerWidget 
)
Parameters
[in]task
[in]timerWidget

Definition at line 192 of file SCR_UITaskManagerComponent.c.

◆ RemoveActionListeners()

void RemoveActionListeners ( )

Definition at line 972 of file SCR_UITaskManagerComponent.c.

◆ RemoveTaskFromList()

protected void RemoveTaskFromList ( SCR_BaseTask  task)

Definition at line 883 of file SCR_UITaskManagerComponent.c.

◆ SCR_UITaskManagerComponent()

void SCR_UITaskManagerComponent ( IEntityComponentSource  src,
IEntity  ent,
IEntity  parent 
)
Parameters
[in]src
[in]ent
[in]parent

Definition at line 1096 of file SCR_UITaskManagerComponent.c.

◆ SelectTask()

void SelectTask ( SCR_BaseTask  task,
Widget  w = null 
)
Parameters
[in]task
[in]w

Definition at line 144 of file SCR_UITaskManagerComponent.c.

◆ SetSelectedWidget()

void SetSelectedWidget ( Widget  w)
Parameters
[in]w

Definition at line 78 of file SCR_UITaskManagerComponent.c.

◆ SetupAssigneeTexts()

void SetupAssigneeTexts ( notnull SCR_BaseTask  task,
Widget  parent 
)

Creates assignee texts if needed.

Definition at line 201 of file SCR_UITaskManagerComponent.c.

◆ StopHUDIconUpdates()

void StopHUDIconUpdates ( SCR_BaseTask  task)
Parameters
[in]task

Definition at line 113 of file SCR_UITaskManagerComponent.c.

◆ ToggleCurrentTask()

void ToggleCurrentTask ( bool  fade = true)
Parameters
[in]fade

Definition at line 443 of file SCR_UITaskManagerComponent.c.

◆ UnregisterTimer()

void UnregisterTimer ( SCR_BaseTask  task)
Parameters
[in]task

Definition at line 182 of file SCR_UITaskManagerComponent.c.

◆ UpdateTimers()

void UpdateTimers ( )

Updates the timers in task descriptions.

Definition at line 909 of file SCR_UITaskManagerComponent.c.

◆ ~SCR_UITaskManagerComponent()

Definition at line 1104 of file SCR_UITaskManagerComponent.c.

Variable Documentation

◆ m_aHUDIconUpdatedTasks

protected ref array<SCR_BaseTask> m_aHUDIconUpdatedTasks = {}

Definition at line 11 of file SCR_UITaskManagerComponent.c.

◆ m_AssignedTaskColor

protected ref Color m_AssignedTaskColor

Definition at line 58 of file SCR_UITaskManagerComponent.c.

◆ m_aWidgets

ref array<Widget> m_aWidgets = {}

Definition at line 25 of file SCR_UITaskManagerComponent.c.

◆ m_bCurrentTaskVisible

protected bool m_bCurrentTaskVisible

Definition at line 31 of file SCR_UITaskManagerComponent.c.

◆ m_bDetailVisible

protected bool m_bDetailVisible

Definition at line 29 of file SCR_UITaskManagerComponent.c.

◆ m_bIsUnconscious

protected bool m_bIsUnconscious

Definition at line 33 of file SCR_UITaskManagerComponent.c.

◆ m_bOpenTaskListOnMapOpen

protected bool m_bOpenTaskListOnMapOpen

Definition at line 52 of file SCR_UITaskManagerComponent.c.

◆ m_bPickAssigneeVisible

protected bool m_bPickAssigneeVisible

Definition at line 30 of file SCR_UITaskManagerComponent.c.

◆ m_bShowSelectedTaskOnMap

protected bool m_bShowSelectedTaskOnMap

Definition at line 37 of file SCR_UITaskManagerComponent.c.

◆ m_bTaskContextEnabled

protected bool m_bTaskContextEnabled

Definition at line 32 of file SCR_UITaskManagerComponent.c.

◆ m_bVisible

protected bool m_bVisible

Definition at line 28 of file SCR_UITaskManagerComponent.c.

◆ m_fCurrentTaskShowTime

protected float m_fCurrentTaskShowTime

Definition at line 49 of file SCR_UITaskManagerComponent.c.

◆ m_fCurrentTaskTime

protected float m_fCurrentTaskTime

Definition at line 34 of file SCR_UITaskManagerComponent.c.

◆ m_LastSelectedTask

protected SCR_BaseTask m_LastSelectedTask

Definition at line 36 of file SCR_UITaskManagerComponent.c.

◆ m_MapEntity

SCR_MapEntity m_MapEntity

Definition at line 23 of file SCR_UITaskManagerComponent.c.

◆ m_mTasksTimers

ref map<SCR_BaseTask, TextWidget> m_mTasksTimers = new map<SCR_BaseTask, TextWidget>()

Definition at line 26 of file SCR_UITaskManagerComponent.c.

◆ m_sCurrentTaskLayout

protected ResourceName m_sCurrentTaskLayout

Definition at line 43 of file SCR_UITaskManagerComponent.c.

◆ m_SelectedTask

protected SCR_BaseTask m_SelectedTask

Definition at line 35 of file SCR_UITaskManagerComponent.c.

◆ m_sTaskDetailLayout

protected ResourceName m_sTaskDetailLayout

Definition at line 46 of file SCR_UITaskManagerComponent.c.

◆ m_UIResource

ResourceName m_UIResource

Definition at line 40 of file SCR_UITaskManagerComponent.c.

◆ m_wCurrentTask

protected Widget m_wCurrentTask

Definition at line 60 of file SCR_UITaskManagerComponent.c.

◆ m_wExpandButton

protected Widget m_wExpandButton = null

Definition at line 20 of file SCR_UITaskManagerComponent.c.

◆ m_wParentWidget

protected Widget m_wParentWidget = null

Definition at line 17 of file SCR_UITaskManagerComponent.c.

◆ m_wPlayerListEntry

protected ResourceName m_wPlayerListEntry

Definition at line 55 of file SCR_UITaskManagerComponent.c.

◆ m_wTaskDetail

protected Widget m_wTaskDetail = null

Definition at line 19 of file SCR_UITaskManagerComponent.c.

◆ m_wTasksUI

protected Widget m_wTasksUI = null

Definition at line 16 of file SCR_UITaskManagerComponent.c.

◆ m_wUI

protected Widget m_wUI = null

Definition at line 18 of file SCR_UITaskManagerComponent.c.

◆ m_wWidgetToFocus

protected Widget m_wWidgetToFocus = null

Definition at line 15 of file SCR_UITaskManagerComponent.c.

◆ NO_ASSIGNED_TASK

SCR_UITaskManagerComponentClass NO_ASSIGNED_TASK = "#AR-Tasks_NoAssignedTaskTitle"