Author Topic: Best way to make resolution independent UI  (Read 3070 times)

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Best way to make resolution independent UI
« on: November 19, 2013, 05:27:33 AM »
Hello !

Let's say I want to make this UI :


Each blue rectangle must have a width and height in % of the screen.
And inside each blue rectangle, I want to be able to add whatever I want, a single sprite, a sprite + label, a button etc... and I want it to be centered and not streched or whatever inside the blue rectangle, just resized.

How would you do that ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Best way to make resolution independent UI
« Reply #1 on: November 19, 2013, 09:18:05 PM »