GUI: Split gui to interface, potentially new ui interface is possible

This commit is contained in:
Er2
2023-12-09 13:58:05 +03:00
parent 7b5f2b61f9
commit 5e311cbbb3
31 changed files with 460 additions and 202 deletions

View File

@@ -172,14 +172,14 @@ void IngameBlockSelectionScreen::mouseReleased(int x, int y, int type)
void IngameBlockSelectionScreen::removed()
{
m_pMinecraft->m_gui.inventoryUpdated();
m_pMinecraft->m_pGui->onInventoryUpdated();
}
void IngameBlockSelectionScreen::selectSlotAndClose()
{
Inventory* pInv = getInventory();
pInv->selectItem(m_selectedSlot, m_pMinecraft->m_gui.getNumUsableSlots());
pInv->selectItem(m_selectedSlot, m_pMinecraft->m_pGui->getNumUsableSlots());
m_pMinecraft->m_pSoundEngine->play("random.click");
m_pMinecraft->setScreen(nullptr);