GUI Button priority (Z-order) (SOLVED)

Started by rich, Tue 08/08/2006 05:53:29

Previous topic - Next topic

rich

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
I'm so excited!

Gilbert

#1
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).

rich

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.
I'm so excited!

SMF spam blocked by CleanTalk