mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2025-06-29 23:10:45 +02:00
Draw the trash slot by overlaying the bare trash can icon
over the single slot image instead of baking it in.
This commit is contained in:
3
init.lua
3
init.lua
@ -102,6 +102,9 @@ for _, style in ipairs({ui.style_full, ui.style_lite}) do
|
||||
ui.imgscale*8, ui.imgscale*4)
|
||||
end
|
||||
|
||||
ui.trash_slot_img = string.format("%f,%f;ui_single_slot.png^(ui_trash_slot_icon.png^[opacity:95)",
|
||||
ui.imgscale, ui.imgscale)
|
||||
|
||||
-- Disable default creative inventory
|
||||
local creative = rawget(_G, "creative") or rawget(_G, "creative_inventory")
|
||||
if creative then
|
||||
|
Reference in New Issue
Block a user