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:
Vanessa Dannenberg
2021-03-08 09:53:25 -05:00
parent 8e94d86420
commit 60d7a6d213
5 changed files with 7 additions and 5 deletions

View File

@ -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