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