mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
move 'devtools:console' binding handler to __vc_on_hud_open
This commit is contained in:
parent
e842b217da
commit
f4f479d389
4 changed files with 10 additions and 11 deletions
|
|
@ -229,17 +229,9 @@ void Hud::processInput(bool visible) {
|
|||
setPause(true);
|
||||
}
|
||||
}
|
||||
if (!pause && Events::jactive(BIND_DEVTOOLS_CONSOLE)) {
|
||||
showOverlay(
|
||||
assets->get<UiDocument>("core:console"),
|
||||
false,
|
||||
dv::list({std::string("console")})
|
||||
);
|
||||
}
|
||||
if (!Window::isFocused() && !pause && !isInventoryOpen()) {
|
||||
setPause(true);
|
||||
}
|
||||
|
||||
if (!pause && visible && Events::jactive(BIND_HUD_INVENTORY)) {
|
||||
if (inventoryOpen) {
|
||||
closeInventory();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue