mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2024-08-20 13:24:10 +02:00
fix trash slot list[] offset
(only noticable when listcolors[] allows slots to be visible, i.e. on mouseover)
This commit is contained in:
parent
a84ce24067
commit
afb295ec22
2
api.lua
2
api.lua
@ -317,7 +317,7 @@ function ui.make_trash_slot(xpos, ypos)
|
|||||||
return
|
return
|
||||||
ui.single_slot(xpos, ypos)..
|
ui.single_slot(xpos, ypos)..
|
||||||
"image["..xpos..","..ypos..";1.25,1.25;ui_trash_slot_icon.png^[opacity:95]"..
|
"image["..xpos..","..ypos..";1.25,1.25;ui_trash_slot_icon.png^[opacity:95]"..
|
||||||
"list[detached:trash;main;"..xpos..","..ypos..";1,1;]"
|
"list[detached:trash;main;"..(xpos + ui.list_img_offset)..","..(ypos + ui.list_img_offset)..";1,1;]"
|
||||||
end
|
end
|
||||||
|
|
||||||
function ui.make_inv_img_grid(xpos, ypos, width, height, bright)
|
function ui.make_inv_img_grid(xpos, ypos, width, height, bright)
|
||||||
|
Loading…
Reference in New Issue
Block a user