GUI Menus Tutorial
Posted: June 7th, 2010, 1:18 pm
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: - Function: Creates the Menu.
showgui - Format: - Function: Works well with "guibutton" as the function to open the menu.
cleargui - Format: - Function: Works well with guibutton to close the menu.
Heres a list of known and used commands and what they do:
guitext - Format: - Function: Creates a text area for information to be added.
guibutton - Format: - Function: Creates a Button that allows other options in the menu.
guibar - Format: - Function: Creates a bar that splits options and text within menus.
guilist - Format: - Function: Allows a list to be created in a Menu.
guitab - Format: - Function: Allows Tabs to be used in menus.
guistayopen - Format: - Function: Allows options to be selected in a menu without closing the menu.
guititle - Format: - Function: Creates the Title of the menu above the menu content.
guiimage - Format: - Function: Allows an image to be placed in the menu.
guicheckbox - Format: - Function: Creates a Checkbox that Toggles effects on/off.
guilistslider - Format: - Function: Creates a scroll slider in the menu that allows you to change Volume/Frames/MapSize etc.
guifield - Format: - 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: - Function: Works well with guibutton to load a map with the name set.
exec - Format: - Function: Works well with guibutton to execute a code.
movie - Format - Function: Works well with guibutton and guikeyfield to start/stop recording a movie.
*continue list*
Heres a list of Functuions that allow you to create/open the menu:
newgui - Format:
Code: Select all
newgui "Name" [
showgui - Format:
Code: Select all
[showgui "Name"]
cleargui - Format:
Code: Select all
cleargui
Heres a list of known and used commands and what they do:
guitext - Format:
Code: Select all
guitext "text"
guibutton - Format:
Code: Select all
guibutton "name" [function] icon
guibar - Format:
Code: Select all
guibar
guilist - Format:
Code: Select all
guilist [
]
guitab - Format:
Code: Select all
guitab "Title"
guistayopen - Format:
Code: Select all
guistayopen [
guititle - Format:
Code: Select all
guititle "Title"
guiimage - Format:
Code: Select all
guiimage "location" *size*
guicheckbox - Format:
Code: Select all
guicheckbox "name" *function*
guilistslider - Format:
Code: Select all
guilistslider *function* "range"
guifield - Format:
Code: Select all
guifield *function* -"textrange"
Heres a list of commands that allow certain functions to be used:
sp - Format:
Code: Select all
[sp "mapname"]
exec - Format:
Code: Select all
[exec "*code_location/code_name*.cfg"]
movie - Format
Code: Select all
[movie $movname]
*continue list*