Game Development Community

Can Torque do tooltips?

by Geom · in Torque Game Engine · 10/13/2006 (8:54 am) · 3 replies

I'd like to show a tooltip window when a user hovers over a gui button (e.g. a GuiBitmapButtonCtrl). I can't find any support for this in TGE 1.3 though.

#1
10/13/2006 (9:00 am)
Yes. Each GUI area has a tooltip entry, you just need to add the Tooltipprofile to the GUI part and enter some text.
#2
10/13/2006 (9:30 am)
Thanks, I hadn't looked at 1.4, and it looks like tooltip support got added that release. I bet it can be back-ported to 1.3 without too much trouble.
#3
10/13/2006 (7:37 pm)
Success!

For anyone else who needs this (tooltips in Torque 1.3), it's pretty easy to get. You only need to change:

guiControl.{h,cc}, and
guiCanvas.{h,cc}

Just search for "tooltip" and "hover" in the 1.4 files and you'll find what to copy pretty quickly.