ID:1569195
 
Keywords: atom, grid, name
(See the best response by Crazah.)
Code:
    if(!src.client)
return
var/X=0
for(var/obj/Traits/O in src.Traits)
winset(src, "Traits.TraitList", "current-cell=1,[++X]") //Add multiple cells horizontally for each obj
src << output(O, "Traits.TraitList")//Send the obj's in src.list to the Grid
winset(src,"Traits.TraitList", "cells=[X]")


Problem description:

No matter what I seem to do, the name of the said Atom (any atom) that appears within this grid doesn't appear. The entry and icon of the atom itself appear fine, minus the name. Anyone have a pointer for this? Also, I have went into my skin file and checked off "Show names of atoms in grid" and "Grid is a flexible list of entries". Thanks in advance.
Bump.
Best response
Untick 'is a flexible list of entries.' This is for using CSS with a grid element, and by checking it, you're only outputting the image of an object to a presumably empty stylesheet.

EDIT: I didn't even look at your code. Try doing it this way.
    var/X=0
for(var/obj/Traits/O in src.Traits)
X++//Increment row by one so the grid doesn't overlap.
src << output(O, "Traits.TraitList:1,[X]")//Send an obj to the column 1 and row of X.
In response to Crazah
Thank you. Your advice resolved my problem wonderfully.