hair in grids in Developer Help
|
|
Code:
proc/hairGrid() var/list/hairs = list(new/obj/Hair/buzz_cut, new/obj/Hair/afro) var/i = 0 for(var/obj/Hair/h in hairs) i++ winset(src, "id", "current-cell=1,[i]") src << output(h, "id") winset(src, "id", "cells=[i]")
obj/Hair Click() usr << "You clicked it!"
|
Problem description:
The "You clicked it!" Message doesn't show up. What am I doing wrong?
P.S. The objs show just fine in the grid.
|
Also, you can combine the "current-cell" setting into the output() command:
And your cells setting should be two-dimensional:
You can find some more interesting info on grids in the skin reference