|
|
@ -12,21 +12,6 @@ void Gui::render() { |
|
|
|
this->render_menubar(); |
|
|
|
} |
|
|
|
|
|
|
|
void Gui::render_menubar() { |
|
|
|
if (ImGui::BeginMainMenuBar()) { |
|
|
|
if (ImGui::BeginMenu("File")) |
|
|
|
render_mmb_file(); |
|
|
|
|
|
|
|
if (ImGui::BeginMenu("View")) |
|
|
|
render_mmb_view(); |
|
|
|
|
|
|
|
if (ImGui::BeginMenu("Debug")) |
|
|
|
render_mmb_debug(); |
|
|
|
|
|
|
|
ImGui::EndMainMenuBar(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void Gui::render_project_overlay() { |
|
|
|
ImGui::SetNextWindowPos(ImVec2(20, 30)); |
|
|
|
if (ImGui::Begin("", &this->project_overlay_open, ImVec2(200,0), 0.3f, ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove|ImGuiWindowFlags_NoSavedSettings)) { |
|
|
@ -48,6 +33,21 @@ void Gui::render_project_overlay() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void Gui::render_menubar() { |
|
|
|
if (ImGui::BeginMainMenuBar()) { |
|
|
|
if (ImGui::BeginMenu("File")) |
|
|
|
render_mmb_file(); |
|
|
|
|
|
|
|
if (ImGui::BeginMenu("View")) |
|
|
|
render_mmb_view(); |
|
|
|
|
|
|
|
if (ImGui::BeginMenu("Debug")) |
|
|
|
render_mmb_debug(); |
|
|
|
|
|
|
|
ImGui::EndMainMenuBar(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void Gui::render_mmb_file() { |
|
|
|
if (ImGui::MenuItem("Load project", "CTRL+O")) { |
|
|
|
/*nfdchar_t *out_path = nullptr;
|
|
|
|