add 'slotIndex' ui slot property

This commit is contained in:
MihailRis 2025-12-10 21:58:08 +03:00
parent 1ef174f204
commit dfa9656871
4 changed files with 23 additions and 3 deletions

View file

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