9#include <imgui/notify/ImGuiNotify.hpp>
31 if (events.type == SDL_EVENT_KEY_DOWN)
83 ImGui::Text(
"[LEFT SHIFT] - Enable Docking.\n");
104 ImGui::DockSpaceOverViewport(0, ImGui::GetMainViewport());
109 ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.f);
110 ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.f);
111 ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0.10f, 0.10f, 0.10f, 1.00f));
112 ImGui::RenderNotifications();
113 ImGui::PopStyleVar(2);
114 ImGui::PopStyleColor(1);
119 if (ImGui::BeginMainMenuBar())
209 ImGui::EndMainMenuBar();
void draw() override
Draw config panel.
void handle_events(const SDL_Event &events) noexcept
Process events in the editor.
ConfigPanel m_config_panel
Config panel for manipulating engine settings.
void end_dock()
Finish rendering the editor dock.
void render()
Render the editor to the screen.
ScenePanel m_scene_panel
Scene panel for managing scenes.
void draw() override
Draw the ImGui widgets to ImGui buffers.
void begin_dock()
Start rendering the editor dock.
void draw_menubar()
Draw the editor menubar.
Popup m_hotkeys
Hotkey info.
bool m_show
Should the panel be shown.
void draw() override
Draw scene panel.
void imgui_handle_events(const SDL_Event &events)
Handle events in ImGui.
void imgui_new_frame()
Begin setting up ImGui pass.
void imgui_exit()
Destroy imgui context.
void imgui_init(const char *ini)
Initialize ImGui context with galaxy.
void imgui_render()
Render imgui.
static auto editor_key() noexcept -> SDL_Scancode
Editor debug toggle key.