playMaker

Author Topic: Align GUI Elements to right side of the screen?[SOLVED]  (Read 3933 times)

nelsonn

  • Playmaker Newbie
  • *
  • Posts: 31
    • check out my portfolio :)
Align GUI Elements to right side of the screen?[SOLVED]
« on: November 15, 2013, 05:15:39 PM »
Hi there,

I was wondering if there was a way to align GUI Layout elements to the right side of the screen.
I'm using images for my HUD and for readability I'd like evenly distribute elements on screen. Since the measurement for all these elements seems to start in the top left corner and the screen resolution will be adjustable I don't see how I could align an image to the top right corner.

Any ideas?
« Last Edit: November 19, 2013, 07:44:23 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Align GUI Elements to right side of the screen?
« Reply #1 on: November 18, 2013, 02:10:40 AM »
Hi,

 For this, create a horyzontalLayout, and first have a FlexibleSpace, then your gui item, it will then be pushed to the right.

 Bye,

 Jean

nelsonn

  • Playmaker Newbie
  • *
  • Posts: 31
    • check out my portfolio :)
Re: Align GUI Elements to right side of the screen?
« Reply #2 on: November 19, 2013, 06:43:19 AM »
...and once again you provided the solution. Thanks a lot Jean!  :)

Btw, can I group the entire GUI in one GUI Layout Begin/End Area block or do I have to start a new block for every item that uses different formatting (like the align to the right)?

For now, I have a block for every item that doesn't share the same formatting.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Align GUI Elements to right side of the screen?
« Reply #3 on: November 19, 2013, 07:44:09 AM »
Hi,

 I think you'll need one block for each.

Bye,

 Jean