Why does the frame Center after adjusting the anchor?
The most likely cause is that the frame is anchored by default to the other side.
For example, the minimappanel is anchored by default to the bottom left, if I would just add the anchors to anchor it to the top right, then the minimappanel would end up in the middle of the screen.
This can be fixed by adding the reset anchors for the side you do not want it to be anchored. Reset Anchors:
There can be multiple reasons for this. Look through the following checklist and see if you've got all those set correctly.
All values are between quotes (")
All opening tags (<...>) have a corresponding closing tag (</...>) or are single line (<.../>)
All elements are Camel-Case. (Anchor, Frame, TextureType, etc.)
All properties are lowercase (side, pos, val, layer, etc.)
After going through this list we have 1 more special case, elements which don't accept changes onto themselves directly. For these you'll need to specify the parent of it and then the element and the change.
In this FAQ I'll post the most common of questions and their answers concerning the UI.
Questions
FAQ
Why does the frame Center after adjusting the anchor?
The most likely cause is that the frame is anchored by default to the other side.
For example, the minimappanel is anchored by default to the bottom left, if I would just add the anchors to anchor it to the top right, then the minimappanel would end up in the middle of the screen.
This can be fixed by adding the reset anchors for the side you do not want it to be anchored.
Reset Anchors:
Why does my adjustment not work?
There can be multiple reasons for this. Look through the following checklist and see if you've got all those set correctly.
After going through this list we have 1 more special case, elements which don't accept changes onto themselves directly. For these you'll need to specify the parent of it and then the element and the change.
example: This doesn't move the CommandTooltip.
but when changed to this it does work: