fix trash slot list[] offset

(only noticable when listcolors[] allows slots to be visible,
i.e. on mouseover)
This commit is contained in:
Vanessa Dannenberg 2021-03-10 12:26:28 -05:00
parent a84ce24067
commit afb295ec22

View File

@ -317,7 +317,7 @@ function ui.make_trash_slot(xpos, ypos)
return
ui.single_slot(xpos, ypos)..
"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
function ui.make_inv_img_grid(xpos, ypos, width, height, bright)