Game Development Community

GuiScrollCtrl - Background

by Nicolai Dutka · in Torque Game Engine Advanced · 11/29/2010 (8:53 pm) · 1 replies

I'm trying to change the background of the GuiScrollCtrl to transparent, but nothing seems to work. It stays a solid white and that simply will not do... Any suggestions?

#1
11/29/2010 (9:05 pm)
Sorry... Guess I'm just a bit rusty... :P

I made a custom profile:

if (isObject(GuiScrollAlphaProfile)) GuiScrollAlphaProfile.delete();
new GuiControlProfile (GuiScrollAlphaProfile : GuiScrollProfile)
{
   opaque = false;
};

Now I can leave all the editor scrollers alone and have my own with a transparent background. Works perfect.