DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
settings.c
См. документацию.
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()
Определения Inventory.c:1109
void Back()
Определения ControlsXbox.c:36
void OnApply(PlayerBase player)
override bool OnChange(Widget w, int x, int y, bool finished)
Определения PluginDayZInfectedDebug.c:33
void Debug()
Определения UniversalTemperatureSource.c:349
proto native CGame GetGame()
void OnLoad()
Определения Sound.c:216