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_TutorialCourseTask.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
2
//class SCR_TutorialCourseTaskClass: SCR_TaskClass
3
//{
4
//};
5
//
6
//------------------------------------------------------------------------------------------------
7
//class SCR_TutorialCourseTask : SCR_Task
8
//{
9
// static const string TASK_COMPLETED_SUFIX = "#AR-Tutorial_TaskCompletedSuffix";
10
//
11
// SCR_ETutorialCourses m_eCourse;
12
// protected bool m_bComplete;
13
// protected ref ScriptInvoker m_OnClicked;
14
// protected ref ScriptInvoker m_OnWidgetSet;
15
//
16
// //TODO> HIDE method?
17
// //------------------------------------------------------------------------------------------------
18
// void SetSelected(bool selected)
19
// {
20
// Widget focus = GetTaskIconkWidget();
21
// if (!focus)
22
// return;
23
//
24
// focus = focus.GetParent();
25
// if (!focus)
26
// return;
27
//
28
// focus = focus.FindAnyWidget("TaskIconFocus");
29
// if (focus)
30
// focus.SetVisible(selected);
31
// }
32
//
33
// //------------------------------------------------------------------------------------------------
34
// ScriptInvoker GetOnWidgetSet()
35
// {
36
// if (!m_OnWidgetSet)
37
// m_OnWidgetSet = new ScriptInvoker;
38
//
39
// return m_OnWidgetSet;
40
// }
41
//
42
// //------------------------------------------------------------------------------------------------
43
// [Obsolete("Use methods from SCR_MapTaskUIComponent")]
44
// ScriptInvoker GetOnClicked()
45
// {
46
// if (!m_wMapTaskIcon)
47
// return null;
48
//
49
// Widget w = m_wMapTaskIcon.GetParent();
50
// while (w)
51
// {
52
// if (w.GetName() == "TaskIconButton")
53
// break;
54
//
55
// w = w.GetParent();
56
// }
57
//
58
// if (!w)
59
// return null;
60
//
61
// SCR_TaskSelectButton taskSelectButton = SCR_TaskSelectButton.Cast(w.FindHandler(SCR_TaskSelectButton));
62
// if (!taskSelectButton)
63
// return null;
64
//
65
// //##TODO
66
// //taskSelectButton.GetOnMapIconClick().Insert(OnSelectButtonClicked);
67
// m_OnClicked = new ScriptInvoker;
68
//
69
// return m_OnClicked;
70
// }
71
//
72
// //------------------------------------------------------------------------------------------------
73
// protected void OnSelectButtonClicked()
74
// {
75
// if (m_OnClicked)
76
// m_OnClicked.Invoke(this);
77
// }
78
//
79
// //------------------------------------------------------------------------------------------------
80
// void CompleteCourseTask()
81
// {
82
// if (m_bComplete)
83
// return;
84
//
85
// m_bComplete = true;
86
// SetTaskName(GetTaskName() + " " + TASK_COMPLETED_SUFIX);
87
// }
88
//
89
// //------------------------------------------------------------------------------------------------
90
// void SetIconName(string iconName)
91
// {
92
// //m_sMapIconName = iconName;
93
// //m_sTaskListIconName = iconName;
94
// }
95
//
96
// //------------------------------------------------------------------------------------------------
97
// void UpdateIcon()
98
// {
99
// if (!m_wMapTaskIcon)
100
// return;
101
//
102
// ImageWidget outline = ImageWidget.Cast(m_wMapTaskIcon.GetParent().FindAnyWidget("TaskIconOutline"));
103
// ImageWidget background = ImageWidget.Cast(m_wMapTaskIcon.GetParent().FindAnyWidget("TaskIconBackground"));
104
// ImageWidget hover = ImageWidget.Cast(m_wMapTaskIcon.GetParent().FindAnyWidget("TaskIconHover"));
105
// ImageWidget symbol = ImageWidget.Cast(m_wMapTaskIcon.GetParent().FindAnyWidget("TaskIconSymbol"));
106
//
107
// if (!symbol || !outline || !background || !hover)
108
// return;
109
//
110
// if (IsAssignedToLocalPlayer())
111
// {
112
// background.SetColor(UIColors.CONTRAST_COLOR);
113
// }
114
// else
115
// {
116
// if (m_bComplete)
117
// {
118
// background.SetColor(Color.FromSRGBA(150,224,246,255));
119
// symbol.SetColor(Color.FromSRGBA(16,59,95,200));
120
// }
121
// else
122
// {
123
// background.SetColor(m_TargetFaction.GetFactionColor());
124
// outline.SetVisible(true);
125
// }
126
// }
127
//
128
// symbol.LoadImageFromSet(0, m_sIconImageset, m_sMapIconName);
129
//
130
// if (!m_bComplete)
131
// return;
132
//
133
// ImageWidget finishedIcon = ImageWidget.Cast(m_wMapTaskIcon.GetParent().FindAnyWidget("TaskIconFinished"));
134
// if (finishedIcon)
135
// finishedIcon.SetVisible(true);
136
//
137
// ImageWidget finishedBG = ImageWidget.Cast(m_wMapTaskIcon.GetParent().FindAnyWidget("TaskIconFinishedBG"));
138
// if (finishedBG)
139
// finishedBG.SetVisible(true);
140
// }
141
//
142
// //------------------------------------------------------------------------------------------------
143
// void SetTaskIconWidget(Widget w)
144
// {
145
// if (m_OnWidgetSet)
146
// m_OnWidgetSet.Invoke(this);
147
// }
148
//
149
// //------------------------------------------------------------------------------------------------
150
// //TODO: Get rid of redundant Update methods. One should be enough for tutorial, as we don't use priorities.
151
// void UpdatePriorityMapTaskIcon()
152
// {
153
// UpdateIcon();
154
// }
155
//
156
// //------------------------------------------------------------------------------------------------
157
// void UpdateMapTaskIcon()
158
// {
159
// UpdateIcon();
160
// }
161
//}
scripts
Game
Tasks
SCR_TutorialCourseTask.c
Generated by
1.17.0