Author Topic: A GUI  (Read 777 times)

Ok let me get too the point I am trying to make a GUI but I need to know the basic's of the display for it such as what I would use for a button the background ect..

List of what I need to know...
 
1.Basic button display-What control do I use to make a button GUI button base?

2.The GUI canvas-What do I use for the background of the GUI such as GUI Window Ctrl?

3.A Text box for entering a number-And how to make it linked to a button such as DropCoins-Amount

4.The command box?-For the command after clicking on somthing do I enter the name of a function in the box to make it so the button will activate that function on open?

Ok let me get too the point I am trying to make a GUI but I need to know the basic's of the display for it such as what I would use for a button the background ect..

List of what I need to know...
 
1.Basic button display-What control do I use to make a button GUI button base?

2.The GUI canvas-What do I use for the background of the GUI such as GUI Window Ctrl?

3.A Text box for entering a number-And how to make it linked to a button such as DropCoins-Amount

4.The command box?-For the command after clicking on somthing do I enter the name of a function in the box to make it so the button will activate that function on open?

1) You mean blocklands buttons here? I always copy/paste them. :P

2) Theres a GuiBitmapCtrl IIRC. Just make it cover the entire window.

3) Well, give the textbox a name, then you can use Name.getValue();.
You can use this in the buttons command.

4) It is like in the console, I'd recommend not putting alot there, like just ButtonName_OnPress(); or something.

Copy the Admin Menu or something with the controls you want into your new GUI, then you'll have a working window base and some buttons. Make sure to change the Name parts of everything so it doesn't conflict.

Thank's  :cookieMonster:

Note:How do I save my GUI when I saved it and went to make my code for it I couldn't find it in the list.

Thank's  :cookieMonster:

Note:How do I save my GUI when I saved it and went to make my code for it I couldn't find it in the list.
Get the saved file, and put it where you need it (in the zip), then in the .cs exec it.

Ok, Could you give me an example of a GUI button function? I'm not shure if it is like a normal script or what...Like

Code: [Select]
function(%client)
{
//Blah
}