obj
Choice
layer = MOB_LAYER+99
Gender
name = ""
icon = 'BoyOrGirl.bmp'
Boy
icon = 'BoyChoice.png'
Click()
usr.overlays+=/obj/Eyes/Backlayer
usr.overlays+=/obj/Eyes/Forelayer
var/icon/I = new('forelayer.dmi')
var/new_rgb = F_Color_Selector.Get_Color(src)
I.Blend(new_rgb)
Problem description: It will not blend the eye icon with the color. It wont even bring up the color selector.
This is the runtime error
runtime error: undefined variable /obj/Choice/Gender/Boy/var/client
proc name: Get Color (/f_color_selector_handler/proc/Get_Color)
usr: the fds (/mob/C)
src: /f_color_selector_handler (/f_color_selector_handler)
call stack:
/f_color_selector_handler (/f_color_selector_handler): Get Color( (/obj/Choice/Gender/Boy))
(/obj/Choice/Gender/Boy): Click(the turf (2,10,2) (/turf))
runtime error: bad icon operation
proc name: Blend (/icon/proc/Blend)
usr: the fds (/mob/C)
src: /icon (/icon)
call stack:
/icon (/icon): Blend(null, null)
(/obj/Choice/Gender/Boy): Click(the turf (2,10,2) (/turf))