ID:272643
 
I love the new interface bar, works wonders. I had a question though. With it being able to do sliders also.

http://img377.imageshack.us/my.php?image=hmmfl0.png

Is there a way in my character creation that I can use the slider to change the rbg of my characters hair ? If so, how would I go about it ?
Dranzer_Solo wrote:
I love the new interface bar, works wonders. I had a question though. With it being able to do sliders also.

http://img377.imageshack.us/my.php?image=hmmfl0.png

Is there a way in my character creation that I can use the slider to change the rbg of my characters hair ? If so, how would I go about it ?

You can use this, yes, although you'd be better off using an input() with the new "as color" setting.

If you do use a slider, you'll need to have three sliders (red, green, and blue), and create a verb to handle changes, then give each slider an on-change command that activates that verb.

mob/verb/Color_Slider_Changed()
set hidden = 1
var/colorparams = winget(usr, "colorwindow.*", "value")
var/list/colors = params2list(colorparams)
var/r, g, b
r = text2num(colors["red_slider.value"]) * 2.55
g = text2num(colors["green_slider.value"]) * 2.55
b = text2num(colors["blue_slider.value"]) * 2.55
var/new_color = rgb(r, g, b)
...
// Make changes to the icon


Lummox JR
In response to Lummox JR
Thanks Lummox, I got it, changes icons colours perfectly :D. Keep up the good work on the cool features :D