move 'devtools:console' binding handler to __vc_on_hud_open

This commit is contained in:
MihailRis
2024-11-20 12:15:09 +03:00
parent e842b217da
commit f4f479d389
4 changed files with 10 additions and 11 deletions
-8
View File
@@ -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();