[SOLVED] Unwanted elements showing on my popup (gui render order)

Hi everyone!

I’m having an issue with Monarch in my current project.

When I open a popup, some GUI elements from the previous screen remain visible on top, while the semi-transparent black background gets pushed all the way to the back.

Here’s the collection containing the screens:

Opening the popup:

local data = { region_id = self.region_id }
lib.monarch.show(“popup_region”, nil, data)

My popup GUI:

As far as I remember, it was working fine in my previous projects. I quickly checked and can’t figure out what I’m doing differently here…

If anyone can explain what I’m doing wrong, I’d really appreciate it! :pray:

try replace all lib.monarch with just monarch in your project to see if it helps

1 Like

You are probably not defining a correct render order for your gui components:

1 Like

I’m using an extra module to centralize my extension ‘require’ statements (that’s why there’s ‘lib.’), but I don’t think it changes anything for the rest of the project. :nerd_face:

That was it, thanks! Nothing to do with Monarch.
I’ll edit my post title consequently.

1 Like