11class SCR_TaskTabStates
44 if (SCR_FactionCommanderPlayerComponent.IsLocalPlayerCommander())
47 SCR_PlayerControllerGroupComponent playerControllerGroupComponent = SCR_PlayerControllerGroupComponent.GetLocalPlayerControllerGroupComponent();
48 if (!playerControllerGroupComponent)
61 [
Attribute(
"{B71975032150BAFB}UI/layouts/Task/TaskListEntry.layout",
params:
"layout")]
64 [
Attribute(
"{A5326D834EB28E28}UI/layouts/Task/TaskListTabEntry.layout",
params:
"layout")]
88 super.HandlerAttached(w);
98 m_Widgets.m_wTaskListEntryDescription.SetVisible(
false);
104 if (
m_Widgets.m_HideTasksButtonComponent)
122 super.HandlerDeattached(w);
127 if (
m_Widgets.m_HideTasksButtonComponent)
148 widget =
m_mTasksMap.GetElement(0).GetEntryButton();
159 GetGame().GetWorkspace().SetFocusedWidget(widget);
165 GetGame().GetWorkspace().SetFocusedWidget(w);
184 Widget widget = tabComp.GetRootWidget();
186 array<ref Widget> tabsArray = {};
189 foreach (
Widget w : tabsArray)
201 m_Widgets.m_wTasksListScroll.SetSliderPos(0, 0);
207 super.OnMouseEnter(w, x, y);
227 super.OnMouseLeave(w, enterW, x, y);
228 if (enterW && enterW.GetTypeName() ==
"ButtonWidget")
272 oldComponent.GetRootWidget().RemoveFromHierarchy();
283 array<SCR_Task> allTasks = {};
285 if (allTasks.IsEmpty())
291 int playerID =
GetGame().GetPlayerController().GetPlayerId();
334 return tab.GetTaskStates();
346 return tab.IsTaskVisible(
task);
361 w =
GetGame().GetWorkspace().CreateWidgets(m_sTaskTabEntryLayout,
m_Widgets.m_wTabsWrapper);
391 Widget taskWidget =
GetGame().GetWorkspace().CreateWidgets(m_sTaskListEntryLayout, parent);
402 array<SCR_Task> childTasks = {};
408 foreach (
SCR_Task child : childTasks)
411 isChildVisible =
true;
415 bool hasChildTasks = childTasks && isChildVisible && !childTasks.IsEmpty() && tabType &
SCR_ETaskTabType.FINISHED;
443 parentWrapper =
m_Widgets.m_wTasksWrapper;
452 Widget childWidget = taskComp.GetRootWidget();
456 parentWrapper.AddChild(childWidget);
515 Widget widget = component.GetRootWidget();
544 taskComp.GetRootWidget().RemoveFromHierarchy();
596 m_Widgets.m_wTaskListEntryDescription.SetVisible(
true);
597 taskUIComp.SetEntrySelected(
true);
605 m_Widgets.m_wTaskListEntryDescription.SetVisible(
false);
669 if (
m_Widgets.m_wTaskListEntryDescription)
670 return m_Widgets.m_wTaskListEntryDescription.IsVisible();
699 foreach (
string taskTypename : allowedTaskTypenames)
ArmaReforgerScripted GetGame()
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void OnTaskSelected(SCR_Task task)
SCR_CampaignSeizingComponent SCR_SeizingComponent EnumLinear()] enum SCR_EBaseCaptureState
void OnTaskAdded(notnull SCR_Task task)
void OnTaskRemoved(notnull SCR_Task task)
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
override bool OnMouseEnter(Widget w, int x, int y)
SCR_MapCursorModule m_MapCursorModule
SCR_MapEntity m_MapEntity
string GetTaskDescription()
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
override void HandlerDeattached(Widget w)
void SCR_Task(IEntitySource src, IEntity parent)
void OnChildTaskChanged(SCR_Task task)
enum SCR_ETaskTabType SCR_BaseContainerCustomTitleEnum(SCR_ETaskTabType, "m_eTabType")
override bool IsTaskVisible(notnull SCR_Task task)
void SetTaskListVisibility(bool show=false)
ref map< SCR_Task, SCR_TaskListEntryUIComponent > m_mTasksMap
bool GetTaskListVisibility()
SCR_Task m_CurrentlySelectedTask
void CreateTaskEntry(notnull SCR_Task task, Widget parent=null, SCR_ETaskTabType tabType=SCR_ETaskTabType.AVAILABLE)
SCR_ETaskState GetStateToCheck()
void OnHideButton()
Triggered on hide tasks button clicked, hides task list.
ref array< ref SCR_TaskTabStates > m_aTaskTabStates
void OnTabClicked(notnull SCR_ScriptedWidgetComponent comp)
ScriptInvokerVoid GetOnButtonTaskListHide()
void FocusOnEntry(SCR_Task task=null)
void RefreshTaskList()
Get a list of all available to display tasks. If entry for task is already created,...
bool GetTaskDescriptionVisiblity()
SCR_TaskListEntryDescriptionUIComponent m_TaskListDescriptionComponent
void OnTaskVisualChanged(SCR_Task task)
bool IsTaskVisibleInListByTab(notnull SCR_Task task)
void UnfoldParent(notnull SCR_Task task)
void InitializeTaskTabs()
void AddAllowedTaskTypenames(notnull array< string > allowedTaskTypenames)
SCR_TaskManagerUIComponent m_TaskManager
void ReparentTask(SCR_Task task)
ref ScriptInvokerVoid m_OnButtonTaskListHide
void SetTaskListHeight(float size)
void ExpandTask(notnull SCR_Task task, notnull SCR_TaskListEntryUIComponent taskUIComp)
ref array< string > m_aAllowedTaskTypenames
void SetTaskDescriptionVisiblity(bool visibility)
SCR_ETaskTabType m_eSelectedTab
void RequestRefreshFactionChange(SCR_Task task, FactionKey factionKey)
void ShowTaskOnMap()
Opens map and moves camera to task location.
SCR_TaskSystem m_TaskSystem
SCR_ChildTaskInvoker GetOnChildTaskRemoved()
SCR_ChildTaskInvoker GetOnChildTaskAdded()
static SCR_MapEntity GetMapInstance()
Get map entity instance.
void SetChildCount(int count)
void InitTask(notnull SCR_Task task, bool hasChild=false)
void SetEntrySelected(bool selected)
void SetChildWrapperFolded(SCR_ModularButtonComponent comp=null, bool toggled=-1)
Toggles child tasks fold.
SCR_TaskVisualsChangedInvoker GetOnTaskVisualChanged()
void ChangeTabColor(Color color)
SCR_ETaskTabType GetTabType()
void Initialize(SCR_ETaskTabType tab)
static SCR_TaskManagerUIComponent GetInstance()
@ FINISHED
Job was successfully finished.
SCR_FieldOfViewSettings Attribute
@ ALL
Everything except general switch.