if you mean “panel” when you say “window” then yes, this is the way it works.
you can always create a layer (or panel) with childLayout=“absolute” and position the elements in this layer by simply given them x, y, width and height properties if this is something you’re more comfortable with.
EDIT:
Not sure why you need 14 layers tho - care to share your XML-File?
im also using nifty a lot atm for my menus (still getting the hang of it). Is there a way to get the buttons to be resolution dependent using static xml? my buttons and text are always the same size regardless. I can set the width and height to a % but the text stays the same size, thanks for any info
NOTE: This is a common problem across the internet, so I just wanted you to know I’m not trying to pick on you.
It’s “you’re dead” unless of course you’re trying to specify the number of corpses the player has created.
The word “your” is a possessive term signifying that something belongs to you.
The conjunction “you’re” or “you are” describes a state of being, in this case dead.
So in your (as in belonging to you) menu screen draft you’re (you are) basically stating that the user somehow has possession of dead. The statement is a valid statement but not in the context you are going for.
Again, not trying to single you out but this is a world-wide problem and I try to bring this up whenever I can.
You seem to be obsessed with childLayout=“center”
The drawback with using the center childLayout is, that it will only really care about the very first child element. But when you use another panel as the first (and only child) you can indeed use a different childLayout.
The “centered-stuff” panel will be centered in “parent-stuff” while “first-text”, “second-text” and “third-text” will be aligned vertical in the “centered-stuff” panel.
I’ve left out all of the width and height values because you’ll need to adjust them so that it fits you screen layout but this is the basic idea.