Game Development Community

GuiControlProfile::constructBitmapArray() has some bug ?[Solved]

by YisionChan · in Torque 3D Professional · 07/06/2014 (11:25 pm) · 2 replies

I found some picture was normal,but another is not.When I used the picture for slider.About slider picture what I should care about? The constructBitmapArray() has a bug ?

#1
07/07/2014 (6:59 am)
constructBitmapArray() is just very tricky.

The separator for parts is taken from the first pixel in the image (top left pixel). All parts must be divided using that color. Do not use that color for anything else in the image.

Different controls expect different numbers of parts, and sometimes the order they're expected is sort of arbitrary.
#2
07/07/2014 (11:03 pm)
Thank you very mush!I have found out the promblem.Because the UI editor
draw the wrong color,top left pixed RGU(255,0,0) and other RGU(253.0.0)
-_-