Author Topic: UI positioning  (Read 1854 times)

Kamo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
UI positioning
« on: May 14, 2014, 01:21:29 PM »
How can I position e.g. 5 buttons inside a container (e.g. horizontally) so that they are equally apart from each other, so if the container gets wider the gap between buttons gets bigger? Something like setting the scaling style on UIRoot pixel perfect but without the scaling  :)

Kamo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: UI positioning
« Reply #1 on: May 14, 2014, 02:00:56 PM »
I guess the easiest way is to anchor the buttons to the container with the custom (percentage) anchor and setting the appropriate float or is there any other nicer way? :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI positioning
« Reply #2 on: May 14, 2014, 11:56:07 PM »
That's the right way -- relative anchoring.