GuiProfile for GuiButton
by Kyle Cook · in Torque Game Engine · 05/31/2006 (2:30 pm) · 4 replies
I was wondering if there is any way (I am sure there is) to replace the standard blocked buttons in the Gui with a default set of images - one for normal, mouse over, and pressed. The button should still be able to write text in the middle of the image and function just like a button, but have a fancy skin over it.
Also is it possible to make some sort of small tileable background for the larger gui windows so they are not one solid color, but display a tiles image in their background.
Also is it possible to make some sort of small tileable background for the larger gui windows so they are not one solid color, but display a tiles image in their background.
#2
Nevermind I found it, but it doesn't like my PNG. Are there restrictions on the dimensions of it?
06/03/2006 (5:15 pm)
What file is that in?Nevermind I found it, but it doesn't like my PNG. Are there restrictions on the dimensions of it?
#3
http://tdn.garagegames.com/wiki/GUI/Profiles/ControlList
06/03/2006 (5:27 pm)
Launch TGE and press F10, Click drop down under New Control you will see it. The file is mainMenuGui, but if you have not use it before you may not see it. You need to create four button for it. This should help too.http://tdn.garagegames.com/wiki/GUI/Profiles/ControlList
#4
There is four button per button
button_n (normal)
button_h (hilight)
button_d (depressed)
button_i (inactive)
1. Launch TGE.
2. Press F10 key
3. Click Drop Down Box for New Control.
4. Click GuiBitmapButtonCtrl.
5. Scroll down to Command field under Parent selection.
6. Enter command in the field.
7. Scroll to the top for bitmap field.
8. Click the Drop Down Box.
9. Navigate to starter.fps/client/ui/myStart. // this is my folder I create
10. Click button_n.png.
11. Click Load button.
12. Click in the bitmap field box and use the arrow key to scroll until you see the word button.
13. Delete everything after the word button. The following is what you should have now in the bitmap field: starter.fps/client/ui/myStart/button
14. Scroll down to the Profile field under Parent selection.
15. Click Drop Down Box.
16. Click GuiButtonProfile.
17. Scroll down to the Extent field under Parent selection.
18. Change Extent field to 128 52.
19. Change the HoziSizing and vertSizing to "relative"
20. Click and drag button to the position on screen you want.
21. Click Apply button.
22. Click the File at the top of the GUI Editor.
23. Click the Save Gui option.
24. Navigate to starter.fps/client/ui.
25. Click mainMenuGui.gui.
26. Click Save button.
27. Press F10 key and relaunch TGE.
06/03/2006 (6:51 pm)
For my buttons I use 256 X 104 because that give a more detail render, I normal render my images from 3ds or obj model in gamespace or poser. I reduce tthesize I want with extent. Here simple tutorial way I do it.There is four button per button
button_n (normal)
button_h (hilight)
button_d (depressed)
button_i (inactive)
1. Launch TGE.
2. Press F10 key
3. Click Drop Down Box for New Control.
4. Click GuiBitmapButtonCtrl.
5. Scroll down to Command field under Parent selection.
6. Enter command in the field.
7. Scroll to the top for bitmap field.
8. Click the Drop Down Box.
9. Navigate to starter.fps/client/ui/myStart. // this is my folder I create
10. Click button_n.png.
11. Click Load button.
12. Click in the bitmap field box and use the arrow key to scroll until you see the word button.
13. Delete everything after the word button. The following is what you should have now in the bitmap field: starter.fps/client/ui/myStart/button
14. Scroll down to the Profile field under Parent selection.
15. Click Drop Down Box.
16. Click GuiButtonProfile.
17. Scroll down to the Extent field under Parent selection.
18. Change Extent field to 128 52.
19. Change the HoziSizing and vertSizing to "relative"
20. Click and drag button to the position on screen you want.
21. Click Apply button.
22. Click the File at the top of the GUI Editor.
23. Click the Save Gui option.
24. Navigate to starter.fps/client/ui.
25. Click mainMenuGui.gui.
26. Click Save button.
27. Press F10 key and relaunch TGE.
Torque Owner Fucifer