Game Development Community

MainMenu

by Allan Stewart · in Torque Game Engine · 03/20/2005 (1:36 pm) · 2 replies

With in the main menu I did up new buttons with textures on them. The problem I'm having is screen resolutions,

On 800 by 600 there centered where i want them and look great.

But on lower and higher res there all out of place. I'm thinking i will have to do up new GUI buttons for each res and if this is the case where would one add the code for the call up when the res is changed. And or is it just a matter of chaning the res on the back ground image enough, Meaing have like 4 back ground images different sizes.

I also noticed in the book looking at the screen shots there i see no res button to choose from. If you look at this picture located here on the site

www.garagegames.com/docs/torque/general/images/gui/2-1.jpgIn the top it has a resolution button, Is it because this image is from an older version or maybe a newer one.

My texture images are called Image1_n and Image1_h

Image1_n being the top visable button and..
Image2_h being the bottom image button when the above is pressed

While i was inputing the textured bitmap buttons and watching the log window, i seen that it would put out errors on 2 images such as Image1_i and Image1_d , So i wondered what they were being they started after i placed my images in the folder, So i copied and pasted the original Image1 and Image2 and renamed them as per the errors and then re ran the game again and no errors came up

Image1_n & Image1_d are the exact same .
Image1_h & Image1_i are the exact same.

Any reason i need 2 of each. I did try to change the size on the _i and _d images to see if they would change through the cycling of screen resolutions but no change.

Needless to say i'm a bit stumped here on this one. And having one screen res working and not the rest sort looks funny and not very proper lol

Thanks for any advise in advance.

#1
03/20/2005 (2:13 pm)
I can't remember the exact order but you need icons for the following actions:

active
inactive
mouse over
mouse click

As for getting the buttons to stay put, you need to set the horizSizing and vertSizing to 'relative' for each of the buttons.
#2
03/20/2005 (3:03 pm)
Ahh rgr now i see totally forgot buttons did that Doh!!!


Quote:active
inactive
mouse over
mouse click

I got that all sorted out thx mate, Thx for the info on the buttons as well mate, Works like a charm , I just need to redo the textures a bit again to match with the back ground,


Just a side note ,Wasn't working with relative till i change the backgrond to relative as well,