Game Development Community

Image Buttons

by Minesh · in Torque Game Engine · 09/24/2009 (5:49 pm) · 25 replies

Well i need help on making a set of Image Buttons like
Instead of having a plain button Saying Start
I made a Image of text saying Start and have another one when u put your mouse over it but i dont know how to get it working.
Page«First 1 2 Next»
#21
09/25/2009 (4:04 pm)
Ok, well syntax all seems correct.

If the path to the textures is correct like Michael mentioned then try renaming SM_n to just SM. This is how I've always done my buttons.
#22
09/25/2009 (4:09 pm)
Well so far image appear in the menu but i dont have any feedback when i click it

new GuiBitmapCtrl(StartMissionButton) {
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "top";
position = "220 0";
Extent = "198 41";
MinExtent = "8 2";
Visible = "1";
Command = "canvas.setContent(startMissionGui)";
groupNum = "-1";
buttonType = "PushButton";
bitmap = "./SM";
};
#23
09/25/2009 (4:15 pm)
Oops. Looks like I made a typo when I posted that example, there's a missing semicolon.

"canvas.setContent(startMissionGui);";
#24
09/25/2009 (4:19 pm)
Huurah it workss :D Thanks Scott
The people here are so freindly :D
And need a model il make :P
#25
09/25/2009 (4:23 pm)
No problem, glad it's working now.
Page«First 1 2 Next»