Game Development Community

Bitmap button class done.

by Phil Carlisle · in Torque Game Engine · 08/26/2001 (6:47 am) · 10 replies

Ok.. well.. Here's something. Ive done a bitmap button class for everyone (basically works exactly like the guibutton class (which it derives from) but displays a bitmap image. Its something we'll need anyway, so I thought I'd do it while I was thinking of it.

Now.. this is derived from V12 source code. So its not publicly available (i.e. I break the license to hand it out).

So....

Can someone official setup a place to add quick "tweaks" to the engine files? (i.e. not CVS, which would be additions to the "core" files, but rather a place where only licensees can gain access to mods and other files that contain source changes).

Its ok posting tutorials about script. But as I know diddly about scripts, Ive been trying to keep myself inside the engine source for now.

Phil.

#1
08/26/2001 (6:56 am)
isn't this area a "licensee only" area?

or are the changes too extensive to post in a thread?
#2
08/26/2001 (9:40 am)
I also just made a BitmapButton control (w/two states for when the mouse is over the button and not over the button) Mine was derived from GuiControl and basically merged the functionality of GuiBitmapCtrl and GuiButtonCtrl and added some code for the different states... It's pretty much exactly like LabRat's bitmap button code, except moved from scripts into hardcode (not that it's any better in code, I just wanted to make my own control :)

I'd be interested in finding out what you did to implement yours and am more than willing to share my code with your, or anyone else who's interested for that matter. I'm in the process of writing a tutorial covering gui controls and profiles as well so the section over creating your own GUI Control is going to be a little hard to follow without being able to post code...

Anyway, its lunch time so I need to eat, but I, along with you, am interested in finding out if GarageGames has plans for hosting usermade tutorials in their V12 protected area... atleast for those tutorials that'll be code-heavy and probably can't be posted on public V12 tutorial sites..

-nohbdy
#3
08/26/2001 (9:58 am)
So I am. I would like to share source code of my controls but do not know where to put it.

My tutorial on 3D controls : perso.wanadoo.fr/hysteria/docs/guiCtrls.html

or forum post www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=1471
#4
08/26/2001 (2:11 pm)
Ed, the controls are basically derived from buttonctrl.. but theyre just so much simpler if we post a zip file that everyone can grab and copy into the correct dirs.
#5
08/26/2001 (2:13 pm)
nohbdy: mines just a ten minute hack around the bitmapctrl and buttonctrl too.. I was going to have 5 states (ala windows buttons), but ended up only using 3 so far (the extra ones being for disabled and default).

i guess I should add them before I post the final controls.. but sod it, you should understand what Ive done from the code.. its so well commmented... erm... :)

Phil.
#6
08/27/2001 (4:09 pm)
I think that GG-v12 site has it's own repository, so maybe you should try to put code there, and if they don't like it they can remove it?
#7
08/28/2001 (11:46 am)
K, sorry to be a pain just this SDK is so much more than I expected so I don't want to start reinventing hot water because I don't know it is already there.
As long as you guys are to create bitmap button could you please also create a masked bitmap button, one where you have a mask of active and inactive areas (to get shapes other than rectangular one). When I think of it, it would be cool to have at least 16 or 256 color bmp mask, so you can detect more than one areas. TIA, Sasha.
#8
06/29/2005 (6:55 am)
I would like to know how i can add mouseEvents in Gui BitmapCtrl. I would like that it works how ButtonCtrl.

PS:Please send the answer for this email naianaazevedo@gmail.com.
#9
06/29/2005 (6:59 am)
1) Check the date of the last post before replying - this thread is four years old.

2) Use the search feature to see if what you need has already been posted.

A quick simple search turned up this resource right off the bat.

~Hope this helps.
#10
06/29/2005 (7:02 am)
Abelmon, if you want someone to take his time and answer you, you should take your time and check the thread again.. not ask for an answer over email.

And it's appropriate to start a new thread, not necro a 4 year old one.

Edit: Kirby beat me to it :)