|
| 19 Mar 2011 07:57 PM |
| My god, I feel like positioning a GUI is harder than writing the actual code. |
|
|
| Report Abuse |
|
|
Emess
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 13331 |
|
|
| 19 Mar 2011 07:59 PM |
| It'd be cool if making GUIs could be similar to how you make 2D elements on Visual Studio. |
|
|
| Report Abuse |
|
|
| |
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 19 Mar 2011 08:20 PM |
| I think a GUI-studio would be nice. Would work just like Visual Studio. |
|
|
| Report Abuse |
|
|
ENET
|
  |
| Joined: 01 Jan 2010 |
| Total Posts: 4820 |
|
| |
|
Charl3s7
|
  |
| Joined: 07 Dec 2007 |
| Total Posts: 4146 |
|
| |
|
acid1103
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 1574 |
|
|
| 19 Mar 2011 08:28 PM |
@MNN I was gonna to do that a few weeks ago, but then I got lazy and didn't feel like doing all the work, so I threw the project out. |
|
|
| Report Abuse |
|
|
Charl3s7
|
  |
| Joined: 07 Dec 2007 |
| Total Posts: 4146 |
|
|
| 19 Mar 2011 08:32 PM |
| I'm so going to make this :o |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
| |
|
|
| 19 Mar 2011 08:37 PM |
| i woulod be cool if you select the resize/move on axis tool and selcted the gui your can resize/move guis like bricks |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2011 08:38 PM |
Oh, quit whining. Gui positioning isn't hard.
My approach: make main containment frames be positioned by scale + offset, and sized by offset only. Everything inside is easy to work with, then. |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Mar 2011 08:41 PM |
@blobbyblob thats what i do, unless the size is across the screen.Its easier to just put 1,0,1,0 it would be alot easier with the resize/move on axis tool |
|
|
| Report Abuse |
|
|
LPGhatguy
|
  |
 |
| Joined: 27 Jun 2008 |
| Total Posts: 4725 |
|
|
| 19 Mar 2011 08:52 PM |
Heck, it's a lot easier than in a real game-situation, I must admit.
I built a rather small GUI engine using C# and XNA awhile back, and I ended up creating a structure similar to the UDim2 object in ROBLOX. |
|
|
| Report Abuse |
|
|
Aaaboy97
|
  |
| Joined: 05 Apr 2009 |
| Total Posts: 6612 |
|
|
| 19 Mar 2011 09:12 PM |
| Would you rather have to deal with pesky layout managers like in Java? |
|
|
| Report Abuse |
|
|
Emess
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 13331 |
|
|
| 19 Mar 2011 09:15 PM |
@blobbyblob Yeah, modifying numbers sure is fun... |
|
|
| Report Abuse |
|
|
Samacado
|
  |
| Joined: 16 Feb 2008 |
| Total Posts: 25119 |
|
| |
|
miloguy
|
  |
| Joined: 19 Dec 2009 |
| Total Posts: 7702 |
|
|
| 20 Mar 2011 12:30 AM |
UDim2.XY=function(x,y) return UDim2.new(0,x,0,y) end local Vector2={new=UDim2.XY} local Point=Vector2
Now you can say someframe.Position=UDim2.XY(100,100) or someframe.Position=Vector2.new(100,100) or someframe.Position=Point.new(100,100)
Whatever you like best |
|
|
| Report Abuse |
|
|
miloguy
|
  |
| Joined: 19 Dec 2009 |
| Total Posts: 7702 |
|
|
| 20 Mar 2011 12:31 AM |
@Aaa set layout to null then you can just say setBounds() to buttons and labels and stuff |
|
|
| Report Abuse |
|
|
|
| 20 Mar 2011 12:44 PM |
| Wouldnt work as we must have both size and offset on size and position so we can make stuff... |
|
|
| Report Abuse |
|
|
|
| 20 Mar 2011 12:47 PM |
Two things:
Would it be based on position or offset?
Roblox needs GUI rotation. |
|
|
| Report Abuse |
|
|
Bluemew99
|
  |
| Joined: 13 Oct 2010 |
| Total Posts: 222 |
|
|
| 20 Mar 2011 12:58 PM |
| how about a drag-and-drop type of positioning, and you can enable or disable a snap-to tool for it so you can have precise positioning? |
|
|
| Report Abuse |
|
|
|
| 20 Mar 2011 02:18 PM |
| Ya! Make an external program to make guis |
|
|
| Report Abuse |
|
|
miloguy
|
  |
| Joined: 19 Dec 2009 |
| Total Posts: 7702 |
|
|
| 20 Mar 2011 04:34 PM |
| Drag and drop with GUIs would be soooo useful |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 20 Mar 2011 05:32 PM |
*scrolls down to the bottom of the page*
WELL HOW DO YOU PROPOSE WE MAKE IT EASIER? WE NEED IT TO FIT SCREEN SIZES. [/caps] |
|
|
| Report Abuse |
|
|