mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
fix disabled slots display
This commit is contained in:
parent
1a00a91b60
commit
e8ee3e04b1
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue