mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix generator minimap checkbox
This commit is contained in:
parent
cfa5365b95
commit
616c63b115
2 changed files with 6 additions and 3 deletions
|
|
@ -194,11 +194,11 @@ Hud::Hud(Engine* engine, LevelFrontend* frontend, Player* player)
|
|||
|
||||
assets->store(Texture::from(debugImgWorldGen.get()), DEBUG_WORLDGEN_IMAGE);
|
||||
|
||||
add(HudElement(hud_element_mode::permanent, nullptr,
|
||||
guiutil::create(
|
||||
debugMinimap = guiutil::create(
|
||||
"<image src='"+DEBUG_WORLDGEN_IMAGE+
|
||||
"' pos='0' size='256' gravity='top-right' margin='0,20,0,0'/>"
|
||||
), true));
|
||||
);
|
||||
add(HudElement(hud_element_mode::permanent, nullptr, debugMinimap, true));
|
||||
}
|
||||
|
||||
Hud::~Hud() {
|
||||
|
|
@ -367,6 +367,7 @@ void Hud::update(bool visible) {
|
|||
}
|
||||
cleanup();
|
||||
|
||||
debugMinimap->setVisible(player->debug && showGeneratorMinimap);
|
||||
if (player->debug && showGeneratorMinimap) {
|
||||
updateWorldGenDebugVisualization();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue