Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

GUI Menus Tutorial

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

GUI Menus Tutorial

Post by Leo_V117 »

Heres a tutuorial planned by me and Arc (arcones) to assist you guys in creating your own GUI menus.

Heres a list of Functuions that allow you to create/open the menu:

newgui - Format:

Code: Select all

newgui "Name" [
- Function: Creates the Menu.

showgui - Format:

Code: Select all

[showgui "Name"]
- Function: Works well with "guibutton" as the function to open the menu.

cleargui - Format:

Code: Select all

cleargui
- Function: Works well with guibutton to close the menu.


Heres a list of known and used commands and what they do:

guitext - Format:

Code: Select all

guitext "text"
- Function: Creates a text area for information to be added.

guibutton - Format:

Code: Select all

guibutton "name" [function] icon
- Function: Creates a Button that allows other options in the menu.

guibar - Format:

Code: Select all

guibar
- Function: Creates a bar that splits options and text within menus.

guilist - Format:

Code: Select all

guilist [
]
- Function: Allows a list to be created in a Menu.

guitab - Format:

Code: Select all

guitab "Title"
- Function: Allows Tabs to be used in menus.

guistayopen - Format:

Code: Select all

guistayopen [
- Function: Allows options to be selected in a menu without closing the menu.

guititle - Format:

Code: Select all

guititle "Title"
- Function: Creates the Title of the menu above the menu content.

guiimage - Format:

Code: Select all

guiimage "location" *size*
- Function: Allows an image to be placed in the menu.

guicheckbox - Format:

Code: Select all

guicheckbox "name" *function*
- Function: Creates a Checkbox that Toggles effects on/off.

guilistslider - Format:

Code: Select all

guilistslider *function* "range"
- Function: Creates a scroll slider in the menu that allows you to change Volume/Frames/MapSize etc.

guifield - Format:

Code: Select all

guifield *function* -"textrange"
- Function: Creates a Text Box in the menu that allows data to be added.


Heres a list of commands that allow certain functions to be used:

sp - Format:

Code: Select all

[sp "mapname"]
- Function: Works well with guibutton to load a map with the name set.

exec - Format:

Code: Select all

[exec "*code_location/code_name*.cfg"]
- Function: Works well with guibutton to execute a code.

movie - Format

Code: Select all

[movie $movname]
- Function: Works well with guibutton and guikeyfield to start/stop recording a movie.

*continue list*
Last edited by Leo_V117 on September 17th, 2010, 12:34 pm, edited 1 time in total.
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: GUI Menus Tutorial

Post by Leo_V117 »

*Reseved for Examples*
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: GUI Menus Tutorial

Post by Leo_V117 »

*Reserved for Used Codes*
User avatar
PizzaLover101
Member
Member
Posts: 1751
Joined: October 23rd, 2009, 1:33 pm
Name: NAME
IRC Username: DaItsicle
Location: By a computer
Contact:

Re: GUI Menus Tutorial

Post by PizzaLover101 »

Can you have it all in one so that we can copy/paste it?
Project 1: Da Chest Collector [TBD]
Project 2: Tis a secret [End of summer] announcement June 22 2011
Project 3: An even bigger secret!

http://pizzagametime.tk/
http://forums.pizzagametime.tk/
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: GUI Menus Tutorial

Post by chocolatepie33 »

Are you gonna update this soon?
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: GUI Menus Tutorial

Post by Leo_V117 »

Yeah... Now...
daltonds1
Member
Member
Posts: 368
Joined: September 13th, 2010, 12:26 am
Name: Dalton
IRC Username: Daltonds1
Location: Tomball, Texas

Re: GUI Menus Tutorial

Post by daltonds1 »

Wrong Section?
Shouldn't this be in tuts

Any way nice job
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: GUI Menus Tutorial

Post by chocolatepie33 »

Well, maybe people go here cuz support q's get answered here faster, so it'd just be easier...

Leo, on Sandbox, when I start a map, it says "unknown command: ]" three times. Three ] in a row. I think it has to do with my autoexec.cfg.
I added the Recorder (B button), Easy Edit (I button) and Crosshairs (O button).
Can you try to fix up a new file for me so it doesn't say that?

(We are in support, and it is about scripting commands.)
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: GUI Menus Tutorial

Post by Leo_V117 »

Send me the file and ill fix it up for you. And a quick update for the rest of you... Theres a very long example code coming up for the new recorder system of mine. Its a very clever piece of code, so chocolatepie33: you may want to take that one instead, I managed to stop all the errors.
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: GUI Menus Tutorial

Post by chocolatepie33 »

alright, as long as I can keep my crosshairs and easy edit apps too.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Locked