playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Align GUI Elements to right side of the screen?[SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Align GUI Elements to right side of the screen?[SOLVED] (Read 3934 times)
nelsonn
Playmaker Newbie
Posts: 31
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
»
Logged
Follow me on Twitter
and check out my
portfolio!
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
Logged
nelsonn
Playmaker Newbie
Posts: 31
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.
Logged
Follow me on Twitter
and check out my
portfolio!
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Align GUI Elements to right side of the screen?[SOLVED]