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_MissionHeaderSequence.c
Go to the documentation of this file.
1
class
SCR_MissionHeaderSequence
:
SCR_MissionHeaderCombatOps
2
{
3
[
Attribute
(
""
,
UIWidgets
.ResourceNamePicker,
"Which scenario (header) should be loaded after the current one has been finished."
,
"conf"
)]
4
ResourceName
m_sNextScenario;
5
6
[
Attribute
(
""
,
desc
:
"Variable name in SCR_ScenarioSequenceProgress specific for this sequence."
)]
7
string
m_sProgressVariableName;
8
9
[
Attribute
(
"0"
,
desc
:
"This scenario's index in the sequence. If the sequence progress is lower than this index, this scenario is locked."
)]
10
int
m_iScenarioIndex;
11
12
//------------------------------------------------------------------------------------------------
13
void
UpdateProgress()
14
{
15
BaseContainer
progressData =
GetGame
().GetGameUserSettings().GetModule(
"SCR_ScenarioSequenceProgress"
);
16
17
if
(!progressData)
18
return
;
19
20
int
progress;
21
progressData.Get(m_sProgressVariableName, progress);
22
23
if
(m_iScenarioIndex < progress)
24
return
;
25
26
// If finishing this scenario furthers the progress, increase the saved index
27
progressData.Set(m_sProgressVariableName, m_iScenarioIndex + 1);
28
GetGame
().UserSettingsChanged();
29
GetGame
().SaveUserSettings();
30
}
31
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
BaseContainer
Definition
BaseContainer.c:13
ResourceName
Definition
ResourceName.c:13
SCR_MissionHeaderCombatOps
Definition
SCR_MissionHeaderCombatOps.c:2
SCR_MissionHeaderSequence
Definition
SCR_MissionHeaderSequence.c:2
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Mission
SCR_MissionHeaderSequence.c
Generated by
1.17.0