V2.7 GUI button click through

Started by Wretched, Tue 03/05/2005 13:54:31

Previous topic - Next topic

Wretched

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.
 

strazer

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.

Wretched

Ok thanks, I'll try using an extra non clickable GUI, over the current one.

strazer


SMF spam blocked by CleanTalk