Polyphase Game Engine
Loading...
Searching...
No Matches
PreferencesWindow.h
Go to the documentation of this file.
1#pragma once
2
3#if EDITOR
4
5#include <string>
6
7class PreferencesModule;
8
9class PreferencesWindow
10{
11public:
12 PreferencesWindow();
13 ~PreferencesWindow();
14
15 void Open();
16 void Close();
17 void Draw();
18
19 bool IsOpen() const { return mIsOpen; }
20
25 void SelectModule(const std::string& path);
26
27private:
28 void DrawSidebar();
29 void DrawContent();
30 void DrawFooter();
31 void DrawModuleTree(PreferencesModule* module);
32
33 bool mIsOpen = false;
34 PreferencesModule* mSelectedModule = nullptr;
35 bool mPendingClose = false;
36 std::string mSelectedAddonPanel; // Non-empty if an addon panel is selected
37};
38
39PreferencesWindow* GetPreferencesWindow();
40
41#endif