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_TutorialFastTravelMap.c
Go to the documentation of this file.
1
class
SCR_TutorialFastTravelMapElement
:
SCR_MapUIElement
2
{
3
protected
vector
m_vPosition
;
4
protected
IEntity
m_TargetEntity
;
5
6
//------------------------------------------------------------------------------
7
void
SetFastTravelEntity
(
string
entName)
8
{
9
m_TargetEntity
=
GetGame
().GetWorld().FindEntityByName(entName);
10
}
11
12
//------------------------------------------------------------------------------
13
void
SetFastTravelName
(
string
name)
14
{
15
TextWidget
textWidget =
TextWidget
.Cast(
m_wRoot
.FindAnyWidget(
"Name"
));
16
if
(textWidget)
17
textWidget.SetText(name);
18
19
}
20
21
//------------------------------------------------------------------------------
22
override
vector
GetPos
()
23
{
24
return
m_vPosition
;
25
}
26
27
// ------------------------------------------------------------------------------
28
override
bool
OnClick
(
Widget
w,
int
x,
int
y,
int
button)
29
{
30
SCR_TutorialGamemodeComponent
m_TutorialComponent
= SCR_TutorialGamemodeComponent.Cast(
GetGame
().
GetGameMode
().FindComponent(SCR_TutorialGamemodeComponent));
31
if
(!
m_TutorialComponent
)
32
return
false
;
33
34
if
(!
m_TargetEntity
)
35
return
false
;
36
37
MenuManager
menuMan =
GetGame
().GetMenuManager();
38
menuMan.
FindMenuByPreset
(
ChimeraMenuPreset
.TutorialFastTravel).Close();
39
40
m_TutorialComponent
.FastTravel(
m_TargetEntity
);
41
return
false
;
42
}
43
}
ChimeraMenuPreset
ChimeraMenuPreset
Menu presets.
Definition
ChimeraMenuBase.c:4
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
GetGameMode
SCR_BaseGameMode GetGameMode()
Definition
SCR_BaseGameModeComponent.c:15
m_TutorialComponent
SCR_TutorialGamemodeComponent m_TutorialComponent
Definition
SCR_TutorialInstructorComponent.c:10
IEntity
Definition
IEntity.c:13
MenuManager
Definition
MenuManager.c:13
MenuManager::FindMenuByPreset
proto external MenuBase FindMenuByPreset(ScriptMenuPresetEnum preset)
Finds first menu/dialog with given preset index, or nullptr when there is no such menu opened.
SCR_MapUIElement
Definition
SCR_MapUIElement.c:13
SCR_ScriptedWidgetComponent::m_wRoot
Widget m_wRoot
Definition
SCR_ScriptedWidgetComponent.c:9
SCR_TutorialFastTravelMapElement
Definition
SCR_TutorialFastTravelMap.c:2
SCR_TutorialFastTravelMapElement::SetFastTravelName
void SetFastTravelName(string name)
Definition
SCR_TutorialFastTravelMap.c:13
SCR_TutorialFastTravelMapElement::m_TargetEntity
IEntity m_TargetEntity
Definition
SCR_TutorialFastTravelMap.c:4
SCR_TutorialFastTravelMapElement::OnClick
override bool OnClick(Widget w, int x, int y, int button)
Definition
SCR_TutorialFastTravelMap.c:28
SCR_TutorialFastTravelMapElement::GetPos
override vector GetPos()
Definition
SCR_TutorialFastTravelMap.c:22
SCR_TutorialFastTravelMapElement::SetFastTravelEntity
void SetFastTravelEntity(string entName)
Definition
SCR_TutorialFastTravelMap.c:7
SCR_TutorialFastTravelMapElement::m_vPosition
vector m_vPosition
Definition
SCR_TutorialFastTravelMap.c:3
TextWidget
Definition
TextWidget.c:16
Widget
Definition
Widget.c:13
vector
Definition
vector.c:13
scripts
Game
UI
Tutorial
SCR_TutorialFastTravelMap.c
Generated by
1.17.0