smaller imgui impl improvements
This commit is contained in:
@@ -12,6 +12,20 @@ KaizenGui::KaizenGui() noexcept : window(SDL_CreateWindow("Kaizen", 1280, 720, S
|
||||
}
|
||||
};
|
||||
|
||||
about.setFunc([&]() {
|
||||
ImGui::Text("Kaizen is a Nintendo 64 emulator that strives");
|
||||
ImGui::Text("to offer a friendly user experience and compatibility.");
|
||||
ImGui::Text("Kaizen is licensed under the BSD 3-clause license.");
|
||||
ImGui::Text("Nintendo 64 is a registered trademarks of Nintendo Co., Ltd.");
|
||||
if(ImGui::Button("OK")) {
|
||||
about.setOpened(false);
|
||||
}
|
||||
});
|
||||
|
||||
statusBar.setFunc([&]() {
|
||||
ImGui::Text("GUI FPS: %.2f, Emulation FPS: %.2f", ImGui::GetIO().Framerate, fpsCounter);
|
||||
});
|
||||
|
||||
menuBar.addMenu({"File",
|
||||
{
|
||||
{"Open", [&]() {
|
||||
@@ -43,12 +57,7 @@ KaizenGui::KaizenGui() noexcept : window(SDL_CreateWindow("Kaizen", 1280, 720, S
|
||||
menuBar.addMenu({"Help",
|
||||
{
|
||||
{"About", [&]() {
|
||||
gui::PopupWindow about{"About Kaizen", [&]() {
|
||||
ImGui::Text("Kaizen is a Nintendo 64 emulator that strives");
|
||||
ImGui::Text("to offer a friendly user experience and compatibility.");
|
||||
ImGui::Text("Kaizen is licensed under the BSD 3-clause license.");
|
||||
ImGui::Text("Nintendo 64 is a registered trademarks of Nintendo Co., Ltd.");
|
||||
}};
|
||||
about.setOpened(true);
|
||||
}},
|
||||
}
|
||||
});
|
||||
@@ -81,11 +90,7 @@ int KaizenGui::run() {
|
||||
|
||||
menuBar.render();
|
||||
|
||||
// TODO VULKAN CANVAS
|
||||
|
||||
gui::StatusBar statusBar{[&]() {
|
||||
ImGui::Text("GUI FPS: %.2f, Emulation FPS: %.2f", ImGui::GetIO().Framerate, fpsCounter);
|
||||
}};
|
||||
about.render();
|
||||
|
||||
statusBar.render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user