Game Development Community

Clicking "through" a button

by Mattias Oldenborg · in Torque Game Engine · 02/19/2007 (1:46 am) · 2 replies

I'm wondering if anyone here knows a way to make a GuiBitmapButtonCtrl or GuiBitmapCtrl ignore a click, thereby making an underlying button receive the click instead.
To explain myself further, what I want to do is create a button consisting of a number of different layers. The bottom layer is a background image, it's for this image I need the usual _d _h _i _n functionality. On top of this is a layer showing a unit icon (differing slightly based on the status of the unit), last I have a layer with a number of images showing equipment of the unit. So, what I need is for the second and third layers to ignore or forward any mouseover and click action to the bottom layer, if anyone has done this or knows how it should be done please let me know.

#1
02/19/2007 (2:03 am)
Why not just overlay 2 GuiBitmapCtrls over the GuiBitmapButtonCtrl?
#2
02/19/2007 (2:37 am)
Thing of it is, I still want mouseover and clicking functionality on the background layer no matter where on the composed button the mousepointer is. Only having this functionality in the places where the background isn't covered by another image wouldn't be very user friendly (for lack of better words).