Game Development Community

is the GuiFadeinBitmapCtrl defined the same as the other Gui Controls

by hbomega · in Torque 2D Beginner · 08/26/2013 (12:09 pm) · 5 replies

I am having somne problem creating a GuiFadeinBitmapCtrl object i am not sure exactly how to create one do i go about it like the other Gui controls, how would i use it after that

#1
08/26/2013 (8:10 pm)
new GuiFadeinBitmapCtrl(MyFader)
{
   bitmap = "^Assets/assets/images/1234.png";
   fadeinTime = 1500;
   fadeoutTime = 2500;
   waitTime = 500;
};
Canvas.pushdialog(MyFader);

You can then call MyFader from anywhere in the script.

Alternatively, you can create a .gui.taml file and load it when you need it

MyModule.add( TamlRead("./gui/MyFaderControl.gui.taml") );
#2
08/26/2013 (8:11 pm)
This is a follow up to this discussion : www.garagegames.com/community/forums/viewthread/134860/
#3
08/26/2013 (8:45 pm)
thanks Simon got it working now to get it to do what i want thanks alot i'll get back to you about my button flashing problem when i got this working how i want it hanks again Simon for your patience
#4
08/26/2013 (9:11 pm)
No prob hb!

Never be afraid to ask questions; that's why we're here
#5
08/26/2013 (10:26 pm)
i'm very happy to hear that Simon