Step 187: in-editor help panel
This commit is contained in:
12
editor/src/panels/HelpPanelWindow.h
Normal file
12
editor/src/panels/HelpPanelWindow.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "../EditorState.h"
|
||||
|
||||
static void renderHelpPanelWindow(EditorState& state) {
|
||||
if (!state.ui.showHelpPanel) return;
|
||||
ImGui::Begin("Documentation", &state.ui.showHelpPanel);
|
||||
ImGui::PushFont(state.uiFont);
|
||||
renderHelpPanel(state.helpPanel, state.workspaceRoot, state.monoFont);
|
||||
ImGui::PopFont();
|
||||
ImGui::End();
|
||||
}
|
||||
Reference in New Issue
Block a user