Game Development Community

Mouse Click for GUI Control

by RedCore · in Torque Game Engine · 03/16/2004 (6:42 pm) · 4 replies

I'v writen my own GUI control, but i need some help with a button type thing..

I want to be able to detect if i'v clicked on a dts object that i'v added to the scene. Anyone know of a way to do this?

Thx,
RedCore

#1
03/16/2004 (6:55 pm)
Have you checked resources? I think someone did something like this... J. Donavan Stanley, perhaps.

-Eric F
#2
03/16/2004 (7:30 pm)
RedCore,

What you're trying to do is called 'picking'. There is a resource called, of all things, Click n Pick that covers this.
-Ed
#3
03/16/2004 (7:30 pm)
Hi Eric F,

Thanks for the reply, i checked out his J. Donavan Stanley's guiShadowButton Resource, assuming thats the resource you were talking about, but i didnt see anything relative to what i want to do..

Thanks again for the reply.
#4
03/16/2004 (7:36 pm)
Hey Ed,

Thanks alot! That seems to be exactly what i needed!

Thanks again,

RedCore