britzl / monarch

Monarch is a Defold screen manager with transition support and a straight forward API
MIT License
163 stars 23 forks source link

Way to find out if the screen is a popup #69

Closed u546342 closed 3 years ago

u546342 commented 3 years ago

It would be very useful to have a method that tells whether the screen is a popup.

eg: monarch.is_popup(screen_id)

In my case I’m trying to show blackout under popups via separate gui component. I subscribed to monarch events via monarch.add_listener() but the only way to know that the screen is a popup is to compare the screen_id with the list of popups ids.

What do you think about it? Thanks.

britzl commented 3 years ago

Closed by https://github.com/britzl/monarch/pull/70