Game Development Community

DAmn bitmap button

by Devon Ly · in Torque Game Engine · 11/08/2003 (4:20 am) · 1 replies

Hi People,
I'm trying to add a bitmap to a bitmap button gui control but the darn thing doesn't seem to want to work.

i've placed "startmission.png" into the "common/ui" directory

and have added "common/ui/startmission.png" into the bitmap field but never seems to work. I also didn't forget to hit apply.

Upon checking the console it says
unable to find common/ui/startmission.png_n
unable to find common/ui/startmission.png_d
unable to find common/ui/startmission.png_h
unable to find common/ui/startmission.png_i

What the heck are these n d h i extentions. I even tried renaming the actual image to match those extensions but that just cause my client to crash ;(

Anyway, any help would be much appreciated.

#1
11/08/2003 (7:11 am)
_n = normal
_h hilight
_d down
_i inactive

So, you need to have at least 3 buttons

startmission_n.png
startmission_h.png
startmission_d.png

In the editor, you type only startmission as the bitmap name, and it will search for all those buttons

[edit] Just tough of it :) You can just have startmission_n.png if you don't want them 3states. But write "startmission" in the editor, not "startmission_n.png"[/edit]