Game Development Community

GUI Here , GUI there GUI everywhere :)

by Ian Roach · in Torque Game Engine · 01/08/2002 (6:49 pm) · 3 replies

Hi guys being a complete newbie to this engine i have no idea where to begin when it comes to modifying both the menus and teh in game HUD's.

My first question is :

1) How do i alter the initial load screen ? including position of buttons/colours/ background picture everything. Are these contained in scripts i.e the example folder or in the engine folder ?

2) In Regards to the maps how do i configure what maps are shown (i.e only show the test map for example).

3) The in game HUD. What are the requirements for the in game HuD ? Can pictures be any size ? where are they located e.t.c how to i position them ? In the wolrd editor ? If so are they saved when i reload the demo ?

4) Finally the biggest and probably the most hardest one will be can i create movable HUDS whilst playing ? For example can i make the HUD move and shake when im running , or make it skew so it looks like its bending with me as i look left and right ?

Thanks in advance to any help you can give me.

PS: I have searched the forums for HUD and GUI and have found some useful information but mainly there just quick rundowns. Are there any in depth tutorials on how the GUI works . What files are needed e.t.c ?

Thanks

#1
01/08/2002 (8:01 pm)
Iwill try to answer the best i can Iwill go by the latest version fron cvs
Quote:1) How do i alter the initial load screen ? including position of buttons/colours/ background picture everything. Are these contained in scripts i.e the example folder or in the engine folder ?

You can start by replacing the background.jpg in D:\torque\example\fps\client\ui usin photoshop or somthing of the likes.
Then makesure everything in the example folder has its properties checkbox unchecked and load up torque and hit f10 when the first screen is up,move the mouse over a button (like start mission) and click it, it should self explanitor from there to resize/move it, just move one the click save a popup will show you where it is saved.
Quote:2) In Regards to the maps how do i configure what maps are shown (i.e only show the test map for example).

same as above only when you get ingame pressf11

Quote:3) The in game HUD. What are the requirements for the in game HuD ? Can pictures be any size ? where are they located e.t.c how to i position them ? In the wolrd editor ? If so are they saved when i reload the demo ?

answered above
Quote:4) Finally the biggest and probably the most hardest one will be can i create movable HUDS whilst playing ? For example can i make the HUD move and shake when im running , or make it skew so it looks like its bending with me as i look left and right ?
the best thing i can think of is get textpadits free and very usefull the screen shakes when you point a weapon at your feet and fire so you could set text pad up to search .cs and .gui and search for shake or shake screen

just another note!ctrlandalt being pressed at the same time will let you scale stuf in the world.

since im kinda newbe my self i remember things by puting them on my webe pages at the NoESCape site
#2
01/09/2002 (3:05 am)
Thanks for the tips.

Few more questions after experimenting with it a bit more.

When movie the gui controls around the co-ordinates are messed up. For example if i move a Gui control to the top right of the screen then exit the Gui editor it only moves to teh centre of teh screen ?

Anotehr question is how do i put images on has my HUD ? Like a radar e.t.c ?

I noticed the controls the demo comes with doesnt use a image so how do i go about creating one ?????

Also how can i edit the background of buttons e.t.c on the menu (i.e texture em)

Thanks
#3
01/09/2002 (5:29 am)
Quote:When movie the gui controls around the co-ordinates are messed up. For example if i move a Gui control to the top right of the screen then exit the Gui editor it only moves to teh centre of teh screen ?
heres a link to a basic inventory tutorial that will explain a lot of things for you
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=1842

Quote:Anotehr question is how do i put images on has my HUD ? Like a radar e.t.c ?
seeabove

Quote:I noticed the controls the demo comes with doesnt use a image so how do i go about creating one ?????
what i did was open up an existing image (background) in photoshop and ereased it with the eraser then put my image on it and saved it (best way to get the image/canvas size

Quote:Also how can i edit the background of buttons e.t.c on the menu (i.e texture em)
im not real sure but i imagine it would be along the same lines as in the inventory tut