Allow for layers to have set Z levels.
TerdyTheTerd opened this issue · 5 comments
Describe your idea
Ability to modify the render order, or z-index, of menu items after they have been added. The current behavior is inconsistent. If I add an image that is a transparent shadow, then add buttons, the buttons will render over the shadow image while editing, but after saving the shadow image will then render over the buttons. When full screening the game, the buttons once again render over the shadow image as intended.
This is both a bug and a feature request, as it would still be amazing to be able to specify render orders for menu items so users can stack items.
Does it frustrate you to not already have this feature in the mod?
I can live without it, but it most certainly limits what can be done without being able to effectively layer screen elements over one another.
A feature to change the order of objects in the layout (via editor) is planned, but there will always be problems with the order of vanilla buttons. I can't really change the render order of already existing objects of menus, that's why I added the layout rendering order to set a layout to either render in the background
or foreground
.
A layout with the background
rendering order will always be rendered behind all default objects of a menu.
When rendered with the foreground
order, they will be in front of all default objects.
How to find the rendering order in the layout editor: Rightclick the empty editor background -> Renderorder
//Edit: What you're describing sounds like you're talking about how the focused object in the layout editor looks like. The focused object will always be rendered in the foreground (to edit it). When it looses focus, it will again be rendered at its real position. All manually added objects should always render in the same order. This isn't the case for default objects like vanilla buttons and other stuff.
But I can create separate layouts you mean, the background items on one and the buttons on the other?