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_WorkshopSettings.c
Go to the documentation of this file.
1
/*
2
Container of workshop settings. Also has static functions to manager storage of the settings.
3
*/
4
5
class
SCR_WorkshopSettings
:
ModuleGameSettings
6
{
7
[
Attribute
(
"true"
)]
8
bool
m_bAutoEnableDownloadedAddons;
9
10
// Add more options here
11
12
protected
static
const
string
USER_SETTINGS_MODULE
=
"SCR_WorkshopSettings"
;
13
14
//------------------------------------------------------------------------------------------
15
static
SCR_WorkshopSettings
Get
()
16
{
17
SCR_WorkshopSettings
settings =
new
SCR_WorkshopSettings
;
18
BaseContainer
container =
GetGame
().GetGameUserSettings().GetModule(
"SCR_WorkshopSettings"
);
19
BaseContainerTools
.WriteToInstance(settings, container);
20
return
settings;
21
}
22
23
//------------------------------------------------------------------------------------------
24
static
void
Save
(
SCR_WorkshopSettings
settings)
25
{
26
BaseContainer
container =
GetGame
().GetGameUserSettings().GetModule(
"SCR_WorkshopSettings"
);
27
BaseContainerTools
.ReadFromInstance(settings, container);
28
GetGame
().UserSettingsChanged();
29
}
30
};
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainer
Definition
BaseContainer.c:13
BaseContainerTools
Definition
BaseContainerTools.c:13
ModuleGameSettings
By inheriting of this class you define a settings module.
Definition
ModuleGameSettings.c:55
SCR_WorkshopSettings
Definition
SCR_WorkshopSettings.c:6
SCR_WorkshopSettings::Save
static void Save(SCR_WorkshopSettings settings)
Definition
SCR_WorkshopSettings.c:24
SCR_WorkshopSettings::USER_SETTINGS_MODULE
static const string USER_SETTINGS_MODULE
Definition
SCR_WorkshopSettings.c:12
SCR_WorkshopSettings::Get
static SCR_WorkshopSettings Get()
Definition
SCR_WorkshopSettings.c:15
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
Menu
ContentBrowser
Common
SCR_WorkshopSettings.c
Generated by
1.17.0