fix disabled slots display
This commit is contained in:
parent
1a00a91b60
commit
e8ee3e04b1
@ -135,7 +135,7 @@ void SlotView::draw(const DrawContext* pctx, Assets* assets) {
|
|||||||
const int slotSize = InventoryView::SLOT_SIZE;
|
const int slotSize = InventoryView::SLOT_SIZE;
|
||||||
|
|
||||||
const ItemStack& stack = *bound;
|
const ItemStack& stack = *bound;
|
||||||
glm::vec4 tint(1.0f);
|
glm::vec4 tint(1, 1, 1, isEnabled() ? 1 : 0.5f);
|
||||||
glm::vec2 pos = calcPos();
|
glm::vec2 pos = calcPos();
|
||||||
glm::vec4 color = getColor();
|
glm::vec4 color = getColor();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user