GUI editor path dont work...
by Alex Ethier · in Torque Developer Network · 02/15/2006 (11:49 pm) · 2 replies
T2D
In the gui Editor if I create a new GUI,
mySplash - GuiFadeinBitmapCtrl.
How can I read a image to fade in?
I am following a tutorial but it doesn't say how the gui editor want the path to be.
under the misc tab then bitmap
I tried
My bitmap is under C:\ and is named mybitmap.jpg
if I do ::
C:/mybitmap
C:\mybitmap
C://mybitmap
C:\\mybitmap
it doesn't read my bitmap and in the console I get cannot load texture...
I moved my bitmap to my T2D client dir under images
again I try to set the path like this
~/client/images/mybitmap -- convert to common/client/images/mybitmap
~\client\images\mybitmap
If I copy the path from a windows explorer and paste the following path:
C:\Torque\Torque2D\SDK\example\T2D\client\images
when I click on apply I get this
C:TorqueTorque2DSDKexampleT2D\\client\\images
???
I am a bit confused, how am I supposed to load that image?
Thanks
Alex
In the gui Editor if I create a new GUI,
mySplash - GuiFadeinBitmapCtrl.
How can I read a image to fade in?
I am following a tutorial but it doesn't say how the gui editor want the path to be.
under the misc tab then bitmap
I tried
My bitmap is under C:\ and is named mybitmap.jpg
if I do ::
C:/mybitmap
C:\mybitmap
C://mybitmap
C:\\mybitmap
it doesn't read my bitmap and in the console I get cannot load texture...
I moved my bitmap to my T2D client dir under images
again I try to set the path like this
~/client/images/mybitmap -- convert to common/client/images/mybitmap
~\client\images\mybitmap
If I copy the path from a windows explorer and paste the following path:
C:\Torque\Torque2D\SDK\example\T2D\client\images
when I click on apply I get this
C:TorqueTorque2DSDKexampleT2D\\client\\images
???
I am a bit confused, how am I supposed to load that image?
Thanks
Alex
#2
for instance :
.../client/ui/My.gui
.../client/ui/background.jpg
content of My.gui.gui :
....
bitmap = "./background.jpg";
...
02/16/2006 (2:42 am)
The simplest solution is to put the image where your "xxxx.gui" is savedfor instance :
.../client/ui/My.gui
.../client/ui/background.jpg
content of My.gui.gui :
....
bitmap = "./background.jpg";
...
Torque Owner Philip Mansfield
Default Studio Name