Game Development Community

Bitmap buttons.

by Ferret · in Technical Issues · 07/16/2003 (2:25 am) · 5 replies

Hi,
Can i use bitmaps for buttons using scripting or do i need code to do that?
I found some resources about it but they all need coding.
What is the bitmapControll for, can i make it act like a button?
Thx.

#1
07/16/2003 (2:45 am)
Yeah, you really should use one of the 4 resources that each require you to add code to the engine. There is that bitmapControll, but its command variable doesnt seem to activate when you click on it (or at least I couldnt get it to) I usualy just use that bitmapcontroll for displaying pictures and rollover effects. I'd definitely go with one of the guibitmapbuttonctrl resources. If your problem is that your new to coding then dont worry, you dont actualy have to code anything, just add two already written files and compile the engine. if the problem is you dont have a compiler... your screwed, sorry
#2
07/16/2003 (4:45 am)
Yes theres a way to do this with pictures, but you'de have to modify the engine. There's not really anything you'de be able to do via scripting. But the engine coding for it wouldnt be too hard i'de imagine.

Basically just copy the code in the engine for the bitmaps and make it so that it loads two bitmaps, then when you mousever, sets a var, then has it render the second bitmap or something.
#3
07/17/2003 (4:56 am)
Ok, thx for the info.
#4
09/10/2003 (8:11 am)
Here is the best resource on bitmap buttons so far: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3857
#5
09/10/2003 (8:14 am)
If you dont have access to Torque code, you can fake it with a bitmap ctrl and mouseevent ctrl.
(which is basically all a bitmap button is)