Hi,
I'm really struggling to understand how to draw a gui to the screen then have it persist in the same relative positions even when the resolution has changed.
For example; an action bar that sticks to the bottom of the screen as well as a button that floats directly in the middle of the screen.
I understand that to change the resolution of a window you recall .Create with the new resolution. This causes everything drawn to the screen to remain in the same place without scaling. However, GUI elements will remain in the same position when they need to sort of expand to there original position (for example, something more to the left would be further to the left if the resolution increased, or something to the right would be further from the right if the resolution decreased).
I figured each element could just have it's own code to reposition it using the original arithmetic to set its position. However, is there no way of making all elements complete this task in the same way?
As well as this when the window is manually resized, via dragging the corners or maximising the screen, how does one stop the gui elements from resizing but keep them in the same relative position (as described above)?
Thanks for any help, I really can't wrap my head around this.