Game Development Community

dev|Pro Game Development Curriculum

Bitmap Button Class.

by Phil Carlisle · 09/08/2001 (12:13 pm) · 5 comments

Download Code File

This is a simple add in bitmap button class, there is a text file describing what to do in the zipfile.

More to come when I've had some time to change a few things. Ideally to put em in line with Pat's hud items too. This one is a simple gui add in so it might as well be as it is.

Phil.

#1
09/22/2001 (2:18 pm)
This seems to work only if you rename the button fields so they don't have spaces. eg. "pressed bitmap" becomes "pressedbitmap".
#2
10/09/2001 (8:27 pm)
He means rename them in the C++.

Just renaming them in the script will do nothing but confuse neophytes :)

Otherwise, tres cool, Phil, thanks!
#3
10/19/2001 (3:09 pm)
this *still* doesnt work even after you change the add fields to get rid of the spaces.
#4
11/02/2001 (9:26 am)
Hmm, what happens? do you get a rectangle?

Its easy enough to change the code so that the field names mean something more to you (pressed, highlight etc).

Do the actual edit fields show up alright?

make sure your paths are valid to the bitmap you want, I used the gg logo image directory and made all my images relative to that, it might be that the bitmap images arent available for loading from the resource manager.

Also, dont forget to click "apply" when you change the bitmaps.

Phil.
#5
05/18/2004 (12:00 am)
根本不能用,你这个骗子!!!