generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: GUI Positioning

Previous Thread :: Next Thread 
MasterDaniel is not online. MasterDaniel
Joined: 28 Nov 2008
Total Posts: 2866
07 Sep 2011 09:54 AM
When using edit mode to edit GUI's (Which is the only way) the centre of the screen isn't the centre of the screen of a normal player, so how can I do it correctly? Is there any positions I should know?
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
07 Sep 2011 09:56 AM
[ Content Deleted ]
Report Abuse
MasterDaniel is not online. MasterDaniel
Joined: 28 Nov 2008
Total Posts: 2866
07 Sep 2011 10:02 AM
I mean without scripting, just positioning it in StarterGUI, I might have put this in the wrong forum :/
Report Abuse
GoldenUrg is not online. GoldenUrg
Joined: 23 Aug 2009
Total Posts: 6428
07 Sep 2011 10:18 AM
That's not a script thing, it's a properties window value.

If you drag a gui around, you'll get a "offset" based position. In the properties window, you'll see the position as
{0,something}, {0, something}. If you want to position it scaled to the window size, you need to use the "scale" values: {0.30,0}, {0.40,0} same for size.

I didn't find a good description on the wiki. If anyone knows of one let me know.

Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Sep 2011 01:29 PM
For the canter of a screen you need to set the scale position as {0.5, 0}. for both X and Y positions.
Report Abuse
MasterDaniel is not online. MasterDaniel
Joined: 28 Nov 2008
Total Posts: 2866
08 Sep 2011 10:54 AM
To scale this, do you mean in the command bar?
Report Abuse
Fl0xData is not online. Fl0xData
Joined: 01 Aug 2011
Total Posts: 18
08 Sep 2011 10:56 AM
No.
Editing the properties in the Studio Properties window.
Report Abuse
MasterDaniel is not online. MasterDaniel
Joined: 28 Nov 2008
Total Posts: 2866
08 Sep 2011 11:09 AM
I can't seem to find it?
Report Abuse
Fl0xData is not online. Fl0xData
Joined: 01 Aug 2011
Total Posts: 18
08 Sep 2011 11:11 AM
Roblox Studio [> Edit your place] > View > Properties
Navigate to your Gui in Explorer > Look at the properties window > Size > Click on it to edit.
Report Abuse
MasterDaniel is not online. MasterDaniel
Joined: 28 Nov 2008
Total Posts: 2866
08 Sep 2011 11:12 AM
I have the properties open, are we talking about Billboard GUI's? Because I use Frames. (Which is probably the wrong thing to use)
Report Abuse
Apocalyps is not online. Apocalyps
Joined: 15 Feb 2009
Total Posts: 816
08 Sep 2011 11:14 AM

Set the gui's position to

{0.5-X_Scale_Size/2, -X_Offset_Size/2},{0.5-Y_Scale_Size, -Y_Offset_Size/2}

so if the size of the gui would be {0.4, 100},{0, 40}
then the position would be:

{0.5-0.2, -50},{0.5, -20}
Report Abuse
MasterDaniel is not online. MasterDaniel
Joined: 28 Nov 2008
Total Posts: 2866
08 Sep 2011 11:23 AM
{0, 1300}, {0, 100}
This is the Frame, which is inside the Billboard GUI, what size would I set it to, I am slightly confused?
Report Abuse
MasterDaniel is not online. MasterDaniel
Joined: 28 Nov 2008
Total Posts: 2866
08 Sep 2011 11:23 AM
Thats the size.
Report Abuse
MasterDaniel is not online. MasterDaniel
Joined: 28 Nov 2008
Total Posts: 2866
08 Sep 2011 11:24 AM
Oh and the position is:

{0, -10}, {0, 470}
Report Abuse
Apocalyps is not online. Apocalyps
Joined: 15 Feb 2009
Total Posts: 816
08 Sep 2011 11:25 AM
{0.5, -650},{0.5, -50}
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
08 Sep 2011 11:26 AM
OMG its apocalyps! YAY
Report Abuse
MasterDaniel is not online. MasterDaniel
Joined: 28 Nov 2008
Total Posts: 2866
08 Sep 2011 11:29 AM
"{0.5, -650},{0.5, -50}"

This didn't seem to work.
Just for the info: I am trying to create a "Dashboard" GUI that covers the screen, But when I go ingame and maximise the gui moves!

I am using the StarterGUI right now aswell.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
08 Sep 2011 11:30 AM
try

{1, 0},{1, 0}
that will cover the whole screen..
Report Abuse
Apocalyps is not online. Apocalyps
Joined: 15 Feb 2009
Total Posts: 816
08 Sep 2011 11:30 AM
Is this gui object inside an other gui object? like a frame? that could be causing it to move...
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
08 Sep 2011 11:32 AM
@Apocalys He could use zindex --Not sure how to spell it..
Report Abuse
Apocalyps is not online. Apocalyps
Joined: 15 Feb 2009
Total Posts: 816
08 Sep 2011 11:32 AM
What has ZIndex to do with this?...
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
08 Sep 2011 11:33 AM
just to change layers like in GIMP2 and i bet you use that in your place too!
Report Abuse
MasterDaniel is not online. MasterDaniel
Joined: 28 Nov 2008
Total Posts: 2866
08 Sep 2011 11:34 AM
The Hierachy is:
StarterGUI
Billboard GUI
Mainframe (Frame)
TextLabel

I want the mainframe to cover a part of the screen, wherever, or however it is resized.

MD
Report Abuse
Apocalyps is not online. Apocalyps
Joined: 15 Feb 2009
Total Posts: 816
08 Sep 2011 11:34 AM
Ofcourse i use ZIndex, but that has nothing to do with this guys problem...
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
08 Sep 2011 11:35 AM
I can't believe there is soo many teens around roblox..
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image