add 'Show Generator Minimap' checkbox

This commit is contained in:
MihailRis
2024-11-06 00:34:38 +03:00
parent dc8bad2af6
commit 80e48ae302
3 changed files with 19 additions and 1 deletions
+3 -1
View File
@@ -56,6 +56,8 @@
using namespace gui;
bool Hud::showGeneratorMinimap = false;
// implemented in debug_panel.cpp
extern std::shared_ptr<UINode> create_debug_panel(
Engine* engine,
@@ -361,7 +363,7 @@ void Hud::update(bool visible) {
}
cleanup();
if (player->debug) {
if (player->debug && showGeneratorMinimap) {
updateWorldGenDebugVisualization();
}
}