1
1
#pragma once
2
2
3
3
#include " core/event_manager.h"
4
- #include " script/interpreter.h"
5
4
#include " framework/system.h"
5
+ #include " script/interpreter.h"
6
6
#include " utility/imgui_helpers.h"
7
7
8
8
#include " vendor/ImGUI/imgui.h"
@@ -72,7 +72,8 @@ class EditorSystem : public System
72
72
~EditorSystem ();
73
73
74
74
void drawDefaultUI (float deltaMilliseconds);
75
- void drawProgressBar (Atomic<int >& progress, float & currentProgress, int & totalProgress);
75
+ void drawProgressBar (Atomic<int >& progress, float & currentProgress,
76
+ int & totalProgress);
76
77
77
78
void showDocumentation (const String& name, const sol::table& table);
78
79
@@ -81,7 +82,8 @@ class EditorSystem : public System
81
82
Variant saveBeforeQuit (const Event* event);
82
83
Variant createNewScene (const Event* event);
83
84
Variant createNewFile (const Event* event);
84
- int exportScene (const String& sceneName, const String& sceneFilePath, Atomic<int >& progress);
85
+ int exportScene (const String& sceneName, const String& sceneFilePath,
86
+ Atomic<int >& progress);
85
87
void postExport ();
86
88
87
89
Vector<ThemeDefinition> m_ThemeDefinitions;
@@ -101,9 +103,24 @@ class EditorSystem : public System
101
103
102
104
void openScene (String sceneName);
103
105
104
- ImColor getWarningColor () const { return ColorToImColor ((Color)ColorPresets::LightYellow); }
105
- ImColor getFatalColor () const { return ColorToImColor ((Color)ColorPresets::IndianRed); }
106
- ImColor getSuccessColor () const { return ColorToImColor ((Color)ColorPresets::LimeGreen); }
107
- ImColor getNormalColor () const { return ColorToImColor ((Color)ColorPresets::White); }
108
- ImColor getLinkColor () const { return ColorToImColor ((Color)ColorPresets::SteelBlue); }
106
+ ImColor getWarningColor () const
107
+ {
108
+ return ColorToImColor ((Color)ColorPresets::LightYellow);
109
+ }
110
+ ImColor getFatalColor () const
111
+ {
112
+ return ColorToImColor ((Color)ColorPresets::IndianRed);
113
+ }
114
+ ImColor getSuccessColor () const
115
+ {
116
+ return ColorToImColor ((Color)ColorPresets::LimeGreen);
117
+ }
118
+ ImColor getNormalColor () const
119
+ {
120
+ return ColorToImColor ((Color)ColorPresets::White);
121
+ }
122
+ ImColor getLinkColor () const
123
+ {
124
+ return ColorToImColor ((Color)ColorPresets::SteelBlue);
125
+ }
109
126
};
0 commit comments