Plasma Engine  2.0
Loading...
Searching...
No Matches
EditorPreferences.h
1#pragma once
2
3#include <EditorFramework/Preferences/Preferences.h>
4#include <Foundation/Strings/String.h>
5
7
9class PL_EDITORFRAMEWORK_DLL plEditorPreferencesUser : public plPreferences
10{
11 PL_ADD_DYNAMIC_REFLECTION(plEditorPreferencesUser, plPreferences);
12
13public:
16
17 void ApplyDefaultValues(plEngineViewLightSettings& ref_settings);
18 void SetAsDefaultValues(const plEngineViewLightSettings& settings);
19
20 float m_fPerspectiveFieldOfView = 70.0f;
21 plAngle m_RotationSnapValue = plAngle::MakeFromDegree(15.0f);
22 float m_fScaleSnapValue = 0.125f;
23 float m_fTranslationSnapValue = 0.25f;
24 bool m_bUsePrecompiledTools = true;
25 plString m_sCustomPrecompiledToolsFolder;
26 bool m_bLoadLastProjectAtStartup = true;
27 bool m_bShowSplashscreen = true;
28 bool m_bExpandSceneTreeOnSelection = true;
29 bool m_bBackgroundAssetProcessing = true;
30 bool m_bHighlightUntranslatedUI = false;
31
32 bool m_bSkyBox = true;
33 bool m_bSkyLight = true;
34 plString m_sSkyLightCubeMap = "{ 6449d7e0-a8ff-4b43-9f84-df1c870a4748 }";
35 float m_fSkyLightIntensity = 1.0f;
36 bool m_bDirectionalLight = true;
37 plAngle m_DirectionalLightAngle = plAngle::MakeFromDegree(30.0f);
38 bool m_bDirectionalLightShadows = false;
39 float m_fDirectionalLightIntensity = 10.0f;
40 bool m_bFog = false;
41 bool m_bClearEditorLogsOnPlay = true;
42
43 void SetShowInDevelopmentFeatures(bool b);
44 bool GetShowInDevelopmentFeatures() const
45 {
46 return m_bShowInDevelopmentFeatures;
47 }
48
49 void SetHighlightUntranslatedUI(bool b);
50 bool GetHighlightUntranslatedUI() const
51 {
52 return m_bHighlightUntranslatedUI;
53 }
54
55 void SetGizmoSize(float f);
56 float GetGizmoSize() const { return m_fGizmoSize; }
57
58 void SetMaxFramerate(plUInt16 uiFPS);
59 plUInt16 GetMaxFramerate() const { return m_uiMaxFramerate; }
60
61private:
62 void SyncGlobalSettings();
63
64 float m_fGizmoSize = 1.5f;
65 bool m_bShowInDevelopmentFeatures = false;
66 plUInt16 m_uiMaxFramerate = 60;
67};
Float wrapper struct for a safe usage and conversions of angles.
Definition Angle.h:10
static constexpr plAngle MakeFromDegree(float fDegree)
Creates an instance of plAngle that was initialized from degree. (Performs a conversion)
Definition Angle_inl.h:33
Stores editor specific preferences for the current user.
Definition EditorPreferences.h:10
Definition ViewRenderSettings.h:65
Base class for all preferences.
Definition Preferences.h:17