Guibitmapbutton help
by Chris Newman · in Torque Game Engine · 04/24/2005 (2:59 pm) · 8 replies
Im not sure if im using it right
No matter what i do, i cannot get a image to appear on the button.
I have a regular bitmap control and that displays the image fine, but if i copy the bitmap location in the gui editor to the bitmapbuttoncontrol it still does not display the image.
No matter what i do, i cannot get a image to appear on the button.
I have a regular bitmap control and that displays the image fine, but if i copy the bitmap location in the gui editor to the bitmapbuttoncontrol it still does not display the image.
new GuiBitmapCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "relative";
position = "72 200";
extent = "108 20";
minExtent = "8 2";
visible = "1";
bitmap = "./images/ngbutton";
wrap = "0";
};
new GuiBitmapButtonCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "relative";
position = "302 222";
extent = "140 30";
minExtent = "8 2";
visible = "1";
text = "Button";
groupNum = "0";
buttonType = "PushButton";
bitmap = "./images/ngbutton";
};
#2
04/26/2005 (5:38 pm)
Just out of curiosity try that with a png image
#3
If that doesn't work (or you are already doing that), then you are probably specifying the wrong folder.
04/26/2005 (5:51 pm)
What's the name of your image files? Referencing ngbutton causes the engine to look for the four files ngbutton_n for the normal state, ngbutton_h for the hover state, ngbutton_d for the depressed state, and ngbutton_i for the inactive state. It shouldn't make a difference whether you're using pngs or jpgs.If that doesn't work (or you are already doing that), then you are probably specifying the wrong folder.
#4
04/26/2005 (5:53 pm)
I totally blanked on that lol... yeah that T2D Starter Gui Tutorial covers that Chris :)
#5
lol Matt, must have missed that when i skimmed through it a few days ago on this issue.
04/26/2005 (5:58 pm)
Ill give that a shot.lol Matt, must have missed that when i skimmed through it a few days ago on this issue.
#7
In other words, creating and placing a new button (or whatever) bitmap in another app while you are in Gui Editor doesn't work until you restart with any new bitmaps.
05/03/2005 (10:12 pm)
Seems obvious now, but one issue I had in getting the button bitmaps working was realizing I needed to make sure all my referenced bitmaps needed to exisit before I start up the game.In other words, creating and placing a new button (or whatever) bitmap in another app while you are in Gui Editor doesn't work until you restart with any new bitmaps.
#8
05/04/2005 (1:27 am)
Or you reset your mod path. No restart needed.
Torque Owner Chris Newman
hmmm now on to figuring out what im doing wrong.