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_TutorialMapUI.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
2
class
SCR_TutorialMapUI
:
SCR_MapUIElementContainer
3
{
4
[
Attribute
(
"{3AC52EED5AB6C1E2}UI/layouts/Tutorial/FakeBaseElement.layout"
,
params
:
"layout"
)]
5
protected
ResourceName
m_sBaseElement
;
6
7
[
Attribute
(
"{94F1E2223D7E0588}UI/layouts/Campaign/ServiceHint.layout"
,
params
:
"layout"
)]
8
protected
ResourceName
m_sServiceHint
;
9
10
protected
ref array <SCR_TutorialFakeBaseComponent>
m_aFakeBases
= {};
11
12
//------------------------------------------------------------------------------------------------
13
void
InsertFakeBase
(notnull SCR_TutorialFakeBaseComponent fakeBase)
14
{
15
m_aFakeBases
.Insert(fakeBase);
16
}
17
18
//------------------------------------------------------------------------------------------------
19
override
void
OnMapOpen
(
MapConfiguration
config)
20
{
21
super.OnMapOpen(config);
22
23
foreach
(SCR_TutorialFakeBaseComponent fakeBase :
m_aFakeBases
)
24
{
25
if
(!fakeBase.m_bVisible)
26
continue
;
27
28
CreateFakeBase
(fakeBase);
29
}
30
}
31
32
//------------------------------------------------------------------------------------------------
33
void
CreateFakeBase
(SCR_TutorialFakeBaseComponent fakeBaseComponent)
34
{
35
Widget
w =
GetGame
().GetWorkspace().CreateWidgets(
m_sBaseElement
,
m_wIconsContainer
);
36
if
(!w)
37
return
;
38
39
SCR_TutorialMapUIBase
handler =
SCR_TutorialMapUIBase
.Cast(w.FindHandler(
SCR_TutorialMapUIBase
));
40
if
(!handler)
41
return
;
42
43
handler.
SetFakeBase
(fakeBaseComponent);
44
45
m_mIcons
.Insert(w, handler);
46
FrameSlot
.SetSizeToContent(w,
true
);
47
FrameSlot
.SetAlignment(w, 0.5, 0.5);
48
49
UpdateIcons
();
50
handler.
UpdateMilitarySymbol
();
51
}
52
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
FrameSlot
Definition
FrameSlot.c:13
MapConfiguration
Definition
MapConfiguration.c:3
ResourceName
Definition
ResourceName.c:13
SCR_MapUIElementContainer
Definition
SCR_MapUIElementContainer.c:2
SCR_MapUIElementContainer::m_mIcons
ref map< Widget, SCR_MapUIElement > m_mIcons
Definition
SCR_MapUIElementContainer.c:37
SCR_MapUIElementContainer::UpdateIcons
void UpdateIcons()
Definition
SCR_MapUIElementContainer.c:218
SCR_MapUIElementContainer::m_wIconsContainer
Widget m_wIconsContainer
Definition
SCR_MapUIElementContainer.c:6
SCR_TutorialMapUIBase
Definition
SCR_TutorialMapUIBase.c:2
SCR_TutorialMapUIBase::UpdateMilitarySymbol
void UpdateMilitarySymbol()
Definition
SCR_TutorialMapUIBase.c:36
SCR_TutorialMapUIBase::SetFakeBase
void SetFakeBase(SCR_TutorialFakeBaseComponent fakeBase)
Definition
SCR_TutorialMapUIBase.c:167
SCR_TutorialMapUI
Definition
SCR_TutorialMapUI.c:3
SCR_TutorialMapUI::CreateFakeBase
void CreateFakeBase(SCR_TutorialFakeBaseComponent fakeBaseComponent)
Definition
SCR_TutorialMapUI.c:33
SCR_TutorialMapUI::OnMapOpen
override void OnMapOpen(MapConfiguration config)
Definition
SCR_TutorialMapUI.c:19
SCR_TutorialMapUI::m_aFakeBases
ref array< SCR_TutorialFakeBaseComponent > m_aFakeBases
Definition
SCR_TutorialMapUI.c:10
SCR_TutorialMapUI::InsertFakeBase
void InsertFakeBase(notnull SCR_TutorialFakeBaseComponent fakeBase)
Definition
SCR_TutorialMapUI.c:13
SCR_TutorialMapUI::m_sServiceHint
ResourceName m_sServiceHint
Definition
SCR_TutorialMapUI.c:8
SCR_TutorialMapUI::m_sBaseElement
ResourceName m_sBaseElement
Definition
SCR_TutorialMapUI.c:5
Widget
Definition
Widget.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
Tutorial
SCR_TutorialMapUI.c
Generated by
1.17.0