Game Development Community

GuiBitMapButton

by Scott Burns · in Torque Game Engine · 02/04/2004 (5:51 pm) · 9 replies

I have some questions about this gui control. When you attace a bitmap to shouldn't it have the bitmap picture on it. I having trouble with this and I am looking for suggestions on how to use button with jpgs on thems.

#1
02/04/2004 (6:58 pm)
Oh the bitmaps need to be named as so:

//up
_n.jpeg

//hover
_h.jpeg

//down
_d.jpeg

//inactive
_i.jpeg

and in the editor you just put in the part.

EDIT:format.
#2
02/05/2004 (7:37 am)
Thank you very much, I'm going to give that a try right now.

One more question - Do you put all of those in the one bitmap section? or does it not matter?

Edit:
No dice McBane, it didn't work =(
#3
02/05/2004 (8:27 am)
Scott, have you look at this resource?

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5086

It has an example that implements GuiBitMapButton.
#4
02/05/2004 (9:31 am)
Awesome, I don't think I've seen that one!

Thanks a bunch!
#5
02/05/2004 (10:13 am)
Awesome, I don't think I've seen that one!

Thanks a bunch!
#6
02/05/2004 (10:16 am)
Thanks very much y'all, I got that working.

Now, does anyone have any idea how you might open a Web Browser and send em to a specific site Via a GUI Script Command? I know how to do the Hyper Link, like in the about box, but I would much prefer it to send them straight to my website as soon as they click on my logo.

Edit:
Nevermind! I figured it out! Thank you anyways though!!
#7
03/18/2005 (9:24 pm)
I also have a problem with guibitmapbuttonctrl that it does not show bitmap image on button i tried name started with _ but that does not solve my problem can anyone have solution for this.
#8
03/18/2005 (9:31 pm)
Button Example

In your GUI, the button would simply be called Air (don't add in the _n or the .jpeg/.png, the code does all that).
#9
03/18/2005 (9:32 pm)
Thanks i got the solution for that on given url..
http://www.garagegames.com/mg/forums/result.thread.php?qt=13968