obj
hair
layer = 97
short
long
spiky
puffy
New()
var/t = src.name
var/icon/i = new(file("hair/[t].dmi"))
src.icon = i
f// if I dont have this loop right here, the hair icons never appear on the players icon. I just don't see it.
spawn(20) goto f
Click()
usr.overlays.Remove(src)//this never works! i have to make "overlays = 0" to remove the hair.
if(src.name != "bald")
usr.overlays.Add(src)
usr.hairId = src
mob/proc
hair(var/i = 0)
set background = 1
winset(src, "hairGrid", null)
if(gender == "male")
var/list/groom=list()
var/A = new/obj/hair/spiky
var/B = new/obj/hair/long
var/C = new/obj/hair/short
var/D = new/obj/hair/puffy
groom.Add(A,B,C,D)
for(var/Z in groom)src << output(Z, "hairGrid:[++i]")
//this is basically how i am implementing the hair objects onto the grid.
Problem description: Okay so I made a window that holds a grid that displays the different hair styles a player can choose from. My problem is that without a loop under the hair objects, the hair never appears. In addition, I can't remove the hair without doing "usr.overlays = 0"