Animated GUI Button
by Andrew H · in Torque Game Builder · 08/10/2011 (5:55 pm) · 5 replies
I have decided to use the GUI editor to make...uh...GUI. Anyway, I need buttons (GASP!) and I want those buttons to animate when you mouse over them. How would I do this?
About the author
I do everything for my game company. Including the legal stuff.
#2
08/11/2011 (2:38 pm)
@Rpahut, Oh, okay. Sorry - I didn't mean to make a nuisance of myself.
#3
There are downsides to that as well (such as having to manually pass mouse events to sceneWindow2D), though so far I am enjoying it. I really enjoy being able to use the level builder to create my GUI screens and customize them via script.
08/11/2011 (7:56 pm)
If you have extensive problems building a GUI, you could potentially take this route as well: overlay a transparent "GUIWindow2D" over your "SceneWindow2D" (by editing your mainscreen.gui file), then use scene objects on that scenewindow as GUI controls. They can take all the mouse callbacks (including "onMouseEnter" and "onMouseLeave", which would help with what you want), and you're probably already familiar with manipulating them.There are downsides to that as well (such as having to manually pass mouse events to sceneWindow2D), though so far I am enjoying it. I really enjoy being able to use the level builder to create my GUI screens and customize them via script.
#4
I believe all the engines share the same GUI system so that should work with the naming scheme.
08/12/2011 (12:59 pm)
docs.garagegames.com/torque-3d/official/content/documentation/GUI%20Editor/Tutor...I believe all the engines share the same GUI system so that should work with the naming scheme.
#5
08/13/2011 (3:01 pm)
@Derek, Thanks a bunch! This should help a LOT.
Torque Owner Rpahut