5#include "../PreferencesModule.h"
7class GeneralModule :
public PreferencesModule
10 DECLARE_PREFERENCES_MODULE(GeneralModule)
13 virtual ~GeneralModule();
15 virtual const char* GetName()
const override {
return GetStaticName(); }
16 virtual const char* GetParentPath()
const override {
return GetStaticParentPath(); }
17 virtual void Render()
override;
22 bool GetAutoSave()
const {
return mAutoSave; }
23 int GetRecentProjectsLimit()
const {
return mRecentProjectsLimit; }
24 bool GetShowWelcomeScreen()
const {
return mShowWelcomeScreen; }
25 bool GetShowDebugInEditor()
const {
return mShowDebugInEditor; }
26 bool GetShowDebugLogsInBuild()
const {
return mShowDebugLogsInBuild; }
27 bool GetCheckBuildDepsOnStartup()
const {
return mCheckBuildDepsOnStartup; }
28 void SetCheckBuildDepsOnStartup(
bool value);
29 int GetEditorFrameRateCap()
const {
return mEditorFrameRateCap; }
32 void ApplyFrameRateCap()
const;
34 bool mAutoSave =
true;
35 int mRecentProjectsLimit = 10;
36 int mEditorFrameRateCap = 60;
37 bool mShowWelcomeScreen =
true;
38 bool mShowDebugInEditor =
true;
39 bool mShowDebugLogsInBuild =
true;
40 bool mCheckBuildDepsOnStartup =
true;
Definition JsonHelpers.h:15