mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add 'Show Generator Minimap' checkbox
This commit is contained in:
parent
dc8bad2af6
commit
80e48ae302
3 changed files with 19 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue