DayZ 1.24
Loading...
Searching...
No Matches
settings.c
Go to the documentation of this file.
1#ifdef GAME_TEMPLATE
2
3class Settings
4{
5 static void OnChange(string variableName) {}
6 static void OnAnyChange() {}
7 static void OnLoad() {}
8 static void OnSave() {}
9 static void OnReset() {}
10 static void OnRevert() {}
11 static void OnApply() {}
12
13 private void Settings() {}
14 private void ~Settings() {}
15};
16
17class GameSettings: Settings
18{
19 [Attribute("false", "checkbox", "Is debug mode enabled")]
20 static bool Debug;
21
22 override static void OnAnyChange()
23 {
24 GetGame().SetDebug(Debug);
25 }
26}
27
28class SettingsMenu: MenuBase
29{
30 proto native external bool AddSettings(typename settingsClass);
31 proto native void Save();
32 proto native void Reset();
33 proto native void Revert();
34 proto native void Apply();
35 proto native void Back();
36};
37#endif
38
void Reset()
Definition Inventory.c:1018
void Back()
void OnApply(PlayerBase player)
override bool OnChange(Widget w, int x, int y, bool finished)
Definition Debug.c:14
proto native CGame GetGame()