Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Wretched on Tue 03/05/2005 13:54:31

Title: V2.7 GUI button click through
Post by: Wretched on Tue 03/05/2005 13:54:31
Just testing a 2.6 game in the new 2.7.
I have a GUI button which acts as an overlay for the GUI to give a nice edge to the 'save game picture' buttons underneath, however when I click on the GUI(in game and in editor) I always get button 7, the overlay button, and not the buttons beneath it. This used to work in 2.62.
I've tried SetGUIObjectEnabled(4, 7, 0); to disable the button but it still blocks clicks to buttons beneath it.
 
Title: Re: V2.7 GUI button click through
Post by: strazer on Tue 03/05/2005 15:09:47
This is due to a bugfix.
In AGS v2.62, the clickable z-order was the opposite of the visual z-order, meaning GUI controls that were in front of other GUI controls would not be clickable.

Without knowing the exact layout of your GUI, I'm unable to suggest a workaround. How about making the border part of the GUI background picture?

Disabled GUI controls are still clickable and don't let clicks through to GUI controls beneath. So you may have to wait until a GUIControl.Clickable property is implemented.
Title: Re: V2.7 GUI button click through
Post by: Wretched on Tue 03/05/2005 15:14:24
Ok thanks, I'll try using an extra non clickable GUI, over the current one.
Title: Re: V2.7 GUI button click through
Post by: strazer on Tue 03/05/2005 15:35:28
Yes, good idea!