I have noticed that there is no z-order or priority order for GUI buttons. I bring up this concern because I have created GUIs where I have overlapping buttons. I do this, actually, because one of the buttons is not a button at all, but rather a "highlight". So, to highlight a button, I simply make visible the other button on top of it. The problem is, when the button on top is now visible, I can no longer click the button underneath it.
This wasn't a problem with older versions of AGS... like 2.7. I recompiled my game today with 2.72 and this problem took place. As long as the button on top is invisible, I can click the one underneath. I'd change the priority order, but that doesn't seem possible. It seems priority (z-order) is based on the order in which the buttons were created. Newest buttons being on top.
Does my problem make sense? Any suggestions without having to completely rework the system I have?
Thanks,
Rich
Actually the reason that you're having problems after recompiling was becasue GUI z-order WAS indeed implemented since V2.72.
From changes.txt, about V2.72 updated features:
Quote- Added GUI Control z-order support (right-click Bring To Front / Send
Ã, Ã, To Back options in editor, as well as BringToFront/SendToBack script
Ã, Ã, commands).
Ahh! That did the trick. I saw that priority had been added, but I thought that was between GUIs, not between their controls. Thanks much. I fixed it all up. :) Feel free to lock this thread now.