make exchange slot available as 'hud.exchange-slot'

This commit is contained in:
MihailRis 2025-11-12 12:29:07 +03:00
parent 1c777746a0
commit 371aaaa9f5

View File

@ -469,6 +469,7 @@ void Hud::showExchangeSlot() {
gui,
SlotLayout(-1, glm::vec2(), false, false, nullptr, nullptr, nullptr)
);
exchangeSlot->setId("hud.exchange-slot");
exchangeSlot->bind(exchangeSlotInv->getId(), exchangeSlotInv->getSlot(0), &content);
exchangeSlot->setColor(glm::vec4());
exchangeSlot->setInteractive(false);