This commit is contained in:
kevinz000
2020-04-09 09:16:46 -07:00
parent e3c6ebb81e
commit e6f98fa270
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -327,7 +327,7 @@
if(check_locked())
close_all()
/datui_um/component/storage/proc/close(mob/M)
/datum/component/storage/proc/close(mob/M)
ui_hide(M)
/datum/component/storage/proc/close_all()
+3
View File
@@ -106,6 +106,7 @@
// define outside for marginal performance boost
var/obj/item/I
var/pixel = 0
for(var/i in percentage_by_item)
I = i
var/percent = percentage_by_item[I]
@@ -131,6 +132,8 @@
var/xshift = FLOOR(pixel / icon_size, 1)
var/px = pixel % world.icon_Size
B.screen_loc = I.screen_loc = "[screen_start_x + xshift]:[px + px_add],[screen_start_y+rows-1]:[screen_pixel_y]"
// add the used pixels to pixel after we place the object
pixel += pixels_to_use
// finally add our things.
. += B