Setting UI Layers

adan_eslavo

Archmage of all Pixels
Supporter
Joined
Apr 23, 2017
Messages
3,488
Location
Łódź, Poland
I added new icons to the map to fix the civ 5 restriction (only fixed number of them could be visible even if they had icons). I did that manually in lua and xml files. But the thing is, they always show on top of other UI elements, and even IGE.

How can I move their layer down and hide behind the more important UI elements.

@whoward69 Maybe you know the solution?

1663698197593.png
 

Attachments

  • UI.zip
    1.8 KB · Views: 16
Last edited:
Anyone?
 
Bit late, but you can check the precedence of the layers in InGame.xml, and then use to lua to set the parent of your ui object to whichever layer (xml context) you want it to be.
 
Bit late, but you can check the precedence of the layers in InGame.xml, and then use to lua to set the parent of your ui object to whichever layer (xml context) you want it to be.
No problem. It's not gamebreaking bug, but a bit annoying.
Can you provide some example code? It would be easier to understand.
XML context is one of the files I attached to the post above or is it something totally different?
 
Top Bottom