mob/proc/SwapColor()
if(!client) return
var/cc,ac
cc = input(src, "What clothing color do you want?","Clothes Color") as null|anything in colorlist
if(!cc || !client) return
usr<<"<b>Your Clothes are <font color =[cc]><u>[cc]</u></b></font>"
ac = input(src, "What accessory color do you want?","Accessory Color") as null|anything in colorlist
usr<<"<b>Your Accessories are <font color =[ac]><u>[ac]</u></b></font>"
if(!ac || !client) return
clothes_color = colorlist[cc]
accessory_color = colorlist[ac]
BuildIcon()
mob/proc/BuildIcon()
var/icon/I = new('sage.dmi')
I.SwapColor("#00ab47",clothes_color)
I.SwapColor("#fff",accessory_color)
icon = I
var
clothes_color = rgb(0,171,71)
accessory_color = rgb(255,255,255)
how can i use more than 1 icon with icon states?
However what is a problem is your HTML. You must never ever do this:
Totally wrong. Never put a space between the attribute and the value. It should look like this:
You also shouldn't be closing the <b> tag until after the <font> tag closes, because <b> was opened first. This is an illegal overlap.
Lummox JR