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 » Scripters
Home Search
 

Re: My MenuBarComponent

Previous Thread :: Next Thread 
ENET is not online. ENET
Joined: 01 Jan 2010
Total Posts: 4820
05 Dec 2011 05:39 PM
This is an example of it so far...

x=createMenuBar('MyMenu',UDim2.new(0,400,0,20));
x.Parent = workspace;
c = createMenu('-1');
c1 = createMenu('-5');
c2 = createLabel('Jump');
c2.Col_Len = 3;
c3 = createMenu('+1');
x.add(c,c1,c2,c3);

Here is what the code does....

1: Create a menu bar component.
2: Set the menu bar into workspace.
3: Create a menu item named -1 with text -1
4: Create a menu item named -5 with text -5
5: Create a label named and text set to 'Jump'
6: Set its horizontal length to 3
7: Create a menu item named +1 with text +1
8: Add all the components to the menu bar.

Lets say this is our bar length....
===========
=c=c1=-c2-=c3=
Where - and the name both represent 1. The c2 counts as 3 buttons so it is 3 times longer than any other given component. The objects are set in scale as to make it resizable. I will release this component soon. It is Lua OOPed so it shouldn't be hard to use. I would be glad if anyone can give suggestions.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
05 Dec 2011 05:44 PM
Use a replaceable frame. Like x = script.Parent.Frame

It's a love-hate relationship....
Report Abuse
ENET is not online. ENET
Joined: 01 Jan 2010
Total Posts: 4820
05 Dec 2011 09:35 PM
What? You can get the frame by saying....

x = CreateMenuBar(name, size);
x() --returns the frame
Of course it is safer to do anything you want to using x.property = value; because I have it set to make sure the property exists before editing it. If it don't exist, the output will say....

[name] 'property' doesn't exist!
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
05 Dec 2011 10:10 PM
So basically you can create buttons in workspace using bricks.... O.o

It's a love-hate relationship....
Report Abuse
ENET is not online. ENET
Joined: 01 Jan 2010
Total Posts: 4820
05 Dec 2011 10:59 PM
Oh, no.... I just set it to workspace then move it... It was just to test if it worked properly. You would actually include the methods into your gui. I've just yet to release the sauce code yet. I want to make sure it is spicy before I release it.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
05 Dec 2011 11:01 PM
Your ideas confuzzle me. Explain what it does?

It's a love-hate relationship....
Report Abuse
ENET is not online. ENET
Joined: 01 Jan 2010
Total Posts: 4820
06 Dec 2011 08:17 PM
Makes a menubar that is easy to add components to and keep it ordered neatly. ColLen is similar to the Colspan property in html of tables.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
06 Dec 2011 09:38 PM
Like the XML easy GUI thing?

It's a love-hate relationship....
Report Abuse
ENET is not online. ENET
Joined: 01 Jan 2010
Total Posts: 4820
06 Dec 2011 10:08 PM
Not sure what you are talking about...
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
07 Dec 2011 06:41 AM
You mean like it makes a menu bar, and then puts the buttons there so that they all fit in that space?

I think its easier to just do it manually. Unless you need to change it during run time.
Report Abuse
ENET is not online. ENET
Joined: 01 Jan 2010
Total Posts: 4820
07 Dec 2011 07:00 AM
@Radio pretty much. For now, but I expect to add drop down menu compatibility.
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
07 Dec 2011 09:03 AM
You should check out ROBLOX's CoreGui frame functions...
Because they already have a drop-down menu capability...

Although, how did you make the buttons fit to the menu frame? That's cool...

~ Cows moo, ducks quack, I post. ~
Report Abuse
ENET is not online. ENET
Joined: 01 Jan 2010
Total Posts: 4820
07 Dec 2011 04:36 PM
@Candy....

1 / #of items = percentage = scale
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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