Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
01edf9e76e | |||
bde0f2c7c3 | |||
83bbac2cd1 |
2
external/solanaceae_message3
vendored
2
external/solanaceae_message3
vendored
Submodule external/solanaceae_message3 updated: e6f4f18f00...7c28b232a4
@ -56,8 +56,8 @@
|
|||||||
] ++ self.packages.${system}.default.dlopenBuildInputs;
|
] ++ self.packages.${system}.default.dlopenBuildInputs;
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"TOMATO_ASAN=1"
|
"-DTOMATO_ASAN=OFF"
|
||||||
"CMAKE_BUILD_TYPE=RelWithDebInfo"
|
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
|
||||||
];
|
];
|
||||||
|
|
||||||
# TODO: replace with install command
|
# TODO: replace with install command
|
||||||
|
@ -208,10 +208,17 @@ int main(int argc, char** argv) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: use scope for the unique ptrs
|
||||||
|
|
||||||
|
screen.reset();
|
||||||
|
|
||||||
ImGui_ImplSDLRenderer3_Shutdown();
|
ImGui_ImplSDLRenderer3_Shutdown();
|
||||||
ImGui_ImplSDL3_Shutdown();
|
ImGui_ImplSDL3_Shutdown();
|
||||||
ImGui::DestroyContext();
|
ImGui::DestroyContext();
|
||||||
|
|
||||||
|
renderer.reset();
|
||||||
|
window.reset();
|
||||||
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -215,9 +215,24 @@ Screen* MainScreen::render(float time_delta, bool&) {
|
|||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
if (ImGui::BeginMenu("Settings")) {
|
if (ImGui::BeginMenu("Settings")) {
|
||||||
if (ImGui::MenuItem("ImGui Style Editor")) {
|
ImGui::SeparatorText("ImGui");
|
||||||
|
|
||||||
|
if (ImGui::MenuItem("Style Editor")) {
|
||||||
_show_tool_style_editor = true;
|
_show_tool_style_editor = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ImGui::MenuItem("Metrics")) {
|
||||||
|
_show_tool_metrics = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ImGui::MenuItem("Debug Log")) {
|
||||||
|
_show_tool_debug_log = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ImGui::MenuItem("ID Stack Tool")) {
|
||||||
|
_show_tool_id_stack = true;
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
ImGui::EndMenuBar();
|
ImGui::EndMenuBar();
|
||||||
@ -234,6 +249,18 @@ Screen* MainScreen::render(float time_delta, bool&) {
|
|||||||
ImGui::End();
|
ImGui::End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_show_tool_metrics) {
|
||||||
|
ImGui::ShowMetricsWindow(&_show_tool_metrics);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_show_tool_debug_log) {
|
||||||
|
ImGui::ShowDebugLogWindow(&_show_tool_debug_log);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_show_tool_id_stack) {
|
||||||
|
ImGui::ShowIDStackToolWindow(&_show_tool_id_stack);
|
||||||
|
}
|
||||||
|
|
||||||
if constexpr (false) {
|
if constexpr (false) {
|
||||||
ImGui::ShowDemoWindow();
|
ImGui::ShowDemoWindow();
|
||||||
}
|
}
|
||||||
|
@ -76,6 +76,9 @@ struct MainScreen final : public Screen {
|
|||||||
ToxDHTCapHisto tdch;
|
ToxDHTCapHisto tdch;
|
||||||
|
|
||||||
bool _show_tool_style_editor {false};
|
bool _show_tool_style_editor {false};
|
||||||
|
bool _show_tool_metrics {false};
|
||||||
|
bool _show_tool_debug_log {false};
|
||||||
|
bool _show_tool_id_stack {false};
|
||||||
|
|
||||||
bool _window_hidden {false};
|
bool _window_hidden {false};
|
||||||
uint64_t _window_hidden_ts {0};
|
uint64_t _window_hidden_ts {0};
|
||||||
|
Reference in New Issue
Block a user