Game Development Community

How to apply ColorpickerDlg in TGEA

by ChenJian · in Torque Game Engine Advanced · 06/11/2007 (4:54 am) · 2 replies

In TGE, we can use the ColorpickerDlg to chose color. But TGEA seems not support this feature. I noticed that there indeed is a ColorPickerDlg.gui in common\ui directory, and in canvas.cs I found this script:
....
exec("~/ui/ConsoleDlg.gui");
//exec("~/ui/ColorPickerDlg.gui");
exec("~/ui/MessageBoxOkDlg.gui");
exec("~/ui/MessageBoxYesNoDlg.gui");
exec("~/ui/MessageBoxOKCancelDlg.gui");
exec("~/ui/MessagePopupDlg.gui");
exec("~/ui/HelpDlg.gui");
exec("~/ui/RecordingsDlg.gui");
....
I tried to reactivate the "exec("~/ui/ColorPickerDlg.gui");", however, I got no effect.
I think I must missed something , so anyone would be kindly to help me. Thanks.

#1
06/11/2007 (7:00 am)
Hi, the colour picker code (the gui control that implements the colour picker) was never ported to TGEA. It contains a number of opengl calls that need changing to GFX calls and requires a readback that I believe was the main problem for not porting it initially.

So, the colour picker needs updating to TGEA for it to work.
#2
06/11/2007 (5:32 pm)
Thanks, it seems that the only thing I can do now is just to seat with a coffee and wait : )
Hope this feature will be coming soon.
Anyway, thanks again.