Added status bar and second menu bar to the Editor

This commit is contained in:
Antoine Pilote
2024-04-25 21:32:24 -04:00
parent 845aa3e8c7
commit db7002f92d
2 changed files with 259 additions and 166 deletions

View File

@@ -41,6 +41,9 @@ namespace Nuake
Ref<Directory> m_CurrentDirectory;
bool m_IsMaterialSelected = false;
std::string m_StatusMessage = "";
Color m_StatusBarColor = Color(0.08f, 0.08f, 0.08f, 1.0f);
public:
WelcomeWindow* _WelcomeWindow;
AudioWindow* _audioWindow;
@@ -57,7 +60,10 @@ namespace Nuake
void Draw();
void Update(float ts);
void DrawMenuBar();
void SetStatusMessage(const std::string& msg, const Color& color = Color(0.08f, 0.08f, 0.08f, 1.0f)) { m_StatusMessage = msg; m_StatusBarColor = color; }
void DrawViewport();
void DrawStatusBar();
void DrawMenuBars();
void DrawEntityTree(Entity ent);
void DrawSceneTree();
void DrawLogger();