Gornova / MarteEngine

MarteEngine is a Java Engine for videogames
http://randomtower.blogspot.com
Other
74 stars 20 forks source link

How to implement a popup window in marte? #65

Closed cere closed 13 years ago

cere commented 13 years ago

Hi all,

I've been trying to create a popup (window) entity in marte, however the button entities that should be behind the popup window are always placed in the foreground. It seems that the entities are being sorted. Could you please give tips/algo on how to handle this.

Thanks.

thaaks commented 13 years ago

Use the depth instance var of entities to enable z ordering. A bigger depth value means in the foreground. So for example the popup window frame entity has a depth of 10 and the buttons should have a depth > 10.

Hope that helps, Tommy

cere commented 13 years ago

thank you so much :)

thaaks commented 13 years ago

I close this issue then - assuming it's working ;-)