ID:160652
 
I was wondering how I would do something to make the following pop up:



obj/Tools
icon = 'Tools.dmi'
Change_Color
icon_state = "Color Change"
Click()
if(!usr.isdrawing) return
//Some code goes here to make the color change thing above show up.


Then in some way make it the actual color the person is drawing with. Maybe using rgb()?
You can use what A.T.H.K told you to, and you can use pixels as far as the color boxes though (256 colors per tile that way). You can also use a browser popup probably, though that could involve learning some of another language.
Howey wrote:
I was wondering how I would do something to make the following pop up:



> 
> obj/Tools
> icon = 'Tools.dmi'
> Change_Color
> icon_state = "Color Change"
> Click()
> if(!usr.isdrawing) return
> //Some code goes here to make the color change thing above show up.
>

Then in some way make it the actual color the person is drawing with. Maybe using rgb()?

I personally find those color-picker boxes to be spectacularly annoying, and would rather provide hexadecimal values for my desired color, which is why I started using Paint.NET in place of MSPaint(originally, anyway). The rgb proc returns hexadecimal anyway...

Anyways, as suggested, you'll either end up using Flick's F_ColorSelection or learning/employing JavaScript to accomplish the same effect, as BYOND does not provide a way to evoke that color selection window.