Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_UITaskAssignComponent.c
Go to the documentation of this file.
1
//class SCR_UITaskAssignComponent : ScriptedWidgetComponent
2
//{
3
// protected int m_iTaskID = SCR_BaseTask.INVALID_TASK_ID;
4
// protected SCR_ETaskButtonActions m_EAction;
5
//
6
// //------------------------------------------------------------------------------------------------
7
// //! \param[in] action
8
// void SetAction(SCR_ETaskButtonActions action)
9
// {
10
// m_EAction = action;
11
// }
12
//
13
// //------------------------------------------------------------------------------------------------
14
// //! Returns task ID
15
// int GetTaskID()
16
// {
17
// return m_iTaskID;
18
// }
19
//
20
// //------------------------------------------------------------------------------------------------
21
// //! Sets task ID
22
// void SetTaskID(int taskID)
23
// {
24
// m_iTaskID = taskID;
25
// }
26
//
27
// //------------------------------------------------------------------------------------------------
28
// [Obsolete("Use new SCR_TaskManagerUIComponent method instead")]
29
// override bool OnMouseEnter(Widget w, int x, int y)
30
// {
31
// //SCR_UITaskManagerComponent.PanMapToTask(m_iTaskID);
32
//
33
// return false;
34
// }
35
//
36
// //------------------------------------------------------------------------------------------------
37
// [Obsolete("Use new Task System instead")]
38
// override bool OnClick(Widget w, int x, int y, int button)
39
// {
40
// if (m_iTaskID == -1)
41
// return false;
42
// // Find local player controller
43
// PlayerController playerController = GetGame().GetPlayerController();
44
// if (!playerController)
45
// return false;
46
//
47
// // Find task network component to send RPC to server
48
// SCR_TaskNetworkComponent taskNetworkComponent = SCR_TaskNetworkComponent.Cast(playerController.FindComponent(SCR_TaskNetworkComponent));
49
// if (!taskNetworkComponent)
50
// return false;
51
//
52
// switch (m_EAction)
53
// {
54
// case SCR_ETaskButtonActions.ASSIGN_TASK:
55
// taskNetworkComponent.RequestAssignment(m_iTaskID);
56
// break;
57
//
58
// case SCR_ETaskButtonActions.ABANDON_TASK:
59
// taskNetworkComponent.AbandonTask(m_iTaskID);
60
// break;
61
//
62
// case SCR_ETaskButtonActions.CANCEL_TASK:
63
// taskNetworkComponent.CancelTask(m_iTaskID);
64
// break;
65
// }
66
//
67
// return false;
68
// }
69
//}
scripts
Game
Campaign
UI
SCR_UITaskAssignComponent.c
Generated by
1.17.0