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.
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.
About the author
#22
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";
};
09/25/2009 (4:09 pm)
Well so far image appear in the menu but i dont have any feedback when i click itnew 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
"canvas.setContent(startMissionGui);";
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
The people here are so freindly :D
And need a model il make :P
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.
Associate Scott Burns
GG Alumni
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.