mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add 'slotIndex' ui slot property
This commit is contained in:
parent
1ef174f204
commit
dfa9656871
4 changed files with 23 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue