added hud.get_second_inventory

This commit is contained in:
Xertis 2026-02-28 22:23:47 +03:00
parent 2cec6c3f9a
commit cb1b113181
4 changed files with 25 additions and 0 deletions

View file

@ -725,6 +725,16 @@ std::shared_ptr<Inventory> Hud::getBlockInventory() {
return blockUI->getInventory();
}
std::shared_ptr<Inventory> Hud::getSecondInventory() {
if (blockUI) {
return blockUI->getInventory();
}
if (secondInvView) {
return secondInvView->getInventory();
}
return nullptr;
}
bool Hud::isContentAccess() const {
return showContentPanel;
}