Author Topic: Color Picker  (Read 797 times)

I need to make a color picker like the one in the event dialog. Anyone know how this is done or where to look for more info?

What exactly do you mean? Like for a gui?

Lilboarder I am suprised you dont remember,

http://forum.blockland.us/index.php?topic=73846.0

After all you posted in that topic about it.

What exactly do you mean? Like for a gui?
Yes. In the events window, when you do brick -> setColor. It gives you a little popup with a list of colors.

Lilboarder I am suprised you dont remember,

http://forum.blockland.us/index.php?topic=73846.0

After all you posted in that topic about it.
I just wasn't sure what he wanted, it doesn't mean I'm clueless.

Yes. In the events window, when you do brick -> setColor. It gives you a little popup with a list of colors.
Alright, then in the registerOutputEvent, put "paintColor 0" as one of the arguments for the parameters of the event.

Such as: registerOutputEvent(fxDTSBrick, eventName, "paintColor 0");

I was not saying you where clueless I was just saying it looked like a fimiallar situation is all.

To get the TDM mod.  it re-used that color picker.
I used the same thing in my mining mod ore editor.

Use those 2 as an example and you should be able to get yours working.

Alright, then in the registerOutputEvent, put "paintColor 0" as one of the arguments for the parameters of the event.

Such as: registerOutputEvent(fxDTSBrick, eventName, "paintColor 0");
I'm trying to put one in my own GUI.

To get the TDM mod.  it re-used that color picker.
I used the same thing in my mining mod ore editor.

Use those 2 as an example and you should be able to get yours working.
Ah, thanks. I'll take a look at those.

Thanks for the tip, it works very nicely.

Locking