Added first frame (data tables) to the test application.
This commit is contained in:
@@ -13,6 +13,7 @@ bool Application::init()
|
||||
setMainWindowFlags(raid::DEFAULT_MAIN_WINDOW_FLAGS | ImGuiWindowFlags_MenuBar | ImGuiWindowFlags_NoDocking);
|
||||
setMainWindowStyle(ImGuiStyleVar_WindowPadding, ImVec2());
|
||||
setMainWindowStyle(ImGuiStyleVar_WindowBorderSize, 0.f);
|
||||
std::ranges::fill(mFrameOpen, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -35,14 +36,35 @@ void Application::render()
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
if (ImGui::BeginMenu("Frames"))
|
||||
{
|
||||
for (std::size_t idx = 0; idx < NUM_FRAMES; ++idx) {
|
||||
ImGui::MenuItem(FRAMES[idx].title, nullptr, &mFrameOpen[idx]);
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
if (ImGui::BeginMenu("Debug"))
|
||||
{
|
||||
ImGui::MenuItem("ImGui Metrics", nullptr, &mShowMetrics);
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
ImGui::EndMenuBar();
|
||||
}
|
||||
ImGui::Text("hi");
|
||||
|
||||
ImGui::ShowMetricsWindow();
|
||||
ImGui::Begin("Test");
|
||||
ImGui::Text("Test Content");
|
||||
ImGui::End();
|
||||
const ImGuiID dockID = ImGui::GetID(this);
|
||||
ImGui::DockSpace(dockID);
|
||||
|
||||
if (mShowMetrics) {
|
||||
ImGui::ShowMetricsWindow(&mShowMetrics);
|
||||
}
|
||||
|
||||
for (std::size_t idx = 0; idx < NUM_FRAMES; ++idx)
|
||||
{
|
||||
ImGui::SetNextWindowDockID(dockID, ImGuiCond_FirstUseEver);
|
||||
if (mFrameOpen[idx]) {
|
||||
FRAMES[idx].render(mFrameOpen[idx]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::string Application::getFolderName()
|
||||
|
||||
Reference in New Issue
Block a user