mob
var/tmp/bagE=1
verb
openbag()
set category = null
if(usr.bagE==1)
usr.bagE=0
winset(usr, "bag","is-visible=true")
winset(usr,"bag","pos=[winget(usr,"pstion.Locbag","pos")]")
src.client.screen = null
for(var/Column = 1 to 7) for(var/Row = 1 to 6) //
var/obj/Grid/G = new
G.screen_loc = "bagmap:[Row],[Column]"
src.client.screen += G
for(var/obj/Itens/I in src.contents) src.AddItems(I)
else
usr.bagE=1
winset(usr, "bag", "is-visible=false")
mob/proc/AddItems(obj/Itens/I)
for(var/obj/Grid/G in src.client.screen)
if(G.used) continue
I.screen_loc = G.screen_loc ; src.client.screen+=I
G.used =1 ; return
obj/Grid
parent_type = /obj
icon = 'GridI.dmi'
var/used = 0
Can anyone tell me why the items are not centered in this code?