Module LM.GUI

LM.GUI is a user interface module that is built on top of Anime Studio's cross-platform user interface library. Scripts can use the user interface widgets in this module to build dialog boxes, and to set up custom interfaces for toolbar buttons.

Methods:

Name Returns Description Ver
Alert int Presents the user with an alert box < 9.5
AngleWidget LM_AngleWidget Creates a new LM_AngleWidget object < 9.5
Button LM_Button Creates a new LM_Button object < 9.5
CheckBox LM_CheckBox Creates a new LM_CheckBox object < 9.5
ColorSwatch LM_ColorSwatch Creates a new LM_ColorSwatch object < 9.5
Cursor LM_Cursor < 9.5
Divider LM_Divider Creates a new LM_Divider object < 9.5
DynamicText LM_DynamicText Creates a new LM_DynamicText object < 9.5
ImageButton LM_Button < 9.5
ImagePopupMenu LM_PopupMenu Added in version 11.1 11.1
ImageTextList LM_ImageTextList Creates a new LM_ImageTextList object 12.2
Menu LM_Menu Creates a new LM_Menu object < 9.5
OpenFile char Prompts the user to select a file to open < 9.5
PopupDialog LM_PopupDialog Creates a new LM_PopupDialog object < 9.5
PopupMenu LM_PopupMenu Creates a new LM_PopupMenu object < 9.5
RadioButton LM_RadioButton Creates a new LM_RadioButton object < 9.5
SaveFile char Prompts the user to select a file to save < 9.5
ScrollBar LM_ScrollBar Creates a new LM_ScrollBar object < 9.5
SelectFolder char Added in version 11 11.0
ShortColorSwatch LM_ColorSwatch Added in version 10 10.0
SimpleDialog LM_SimpleDialog Creates a new LM_SimpleDialog object < 9.5
Slider LM_Slider Creates a new LM_Slider object < 9.5
StaticText LM_StaticText Creates a new LM_StaticText object < 9.5
TextControl LM_TextControl Creates a new LM_TextControl object < 9.5
TextList LM_TextList Creates a new LM_TextList object < 9.5

Constants:

Alert boxes

Name Description Ver
ALERT_INFO This type of alert is used to give the user non-critical information. < 9.5
ALERT_QUESTION This type of alert is used to as the user a question. < 9.5
ALERT_WARNING This type of alert is used to warn the user (perhaps that they are about to perform some action that cannot be undone). < 9.5

Control alignment

Name Description Ver
ALIGN_BOTTOM Align control on the bottom side of its container < 9.5
ALIGN_CENTER Align control in the center of its container < 9.5
ALIGN_FILL Resize control to fill its container < 9.5
ALIGN_LEFT Align control on the left side of its container < 9.5
ALIGN_RIGHT Align control on the right side of its container < 9.5
ALIGN_TOP Align control on the top side of its container < 9.5

Dialog messages

Name Description Ver
MSG_CANCEL The user clicked Cancel or pressed escape < 9.5
MSG_OK The user clicked OK or pressed enter < 9.5

Follow

Name Description Ver
FOLLOW_BOTTOM < 9.5
FOLLOW_LEFT < 9.5
FOLLOW_RIGHT < 9.5
FOLLOW_TOP < 9.5

Key codes

Name Description Ver
KEY_BACKSPACE The Backspace key < 9.5
KEY_BIND Added in version 11 11.0
KEY_DELETE The Delete key < 9.5
KEY_DESELECT Added in version 11 11.0
KEY_DOWN The down arrow key < 9.5
KEY_END The End key < 9.5
KEY_ESCAPE The Escape key < 9.5
KEY_F1 The F1 key < 9.5
KEY_F10 The F10 key < 9.5
KEY_F11 The F11 key < 9.5
KEY_F12 The F12 key < 9.5
KEY_F2 The F2 key < 9.5
KEY_F3 The F3 key < 9.5
KEY_F4 The F4 key < 9.5
KEY_F5 The F5 key < 9.5
KEY_F6 The F6 key < 9.5
KEY_F7 The F7 key < 9.5
KEY_F8 The F8 key < 9.5
KEY_F9 The F9 key < 9.5
KEY_HOME The Home key < 9.5
KEY_LEFT The left arrow key < 9.5
KEY_PAGEDOWN The Page Down key < 9.5
KEY_PAGEUP The Page Up key < 9.5
KEY_RETURN The Return or Enter key < 9.5
KEY_RIGHT The right arrow key < 9.5
KEY_TAB The Tab key < 9.5
KEY_UP The up arrow key < 9.5

Layout padding

Name Description Ver
DEFAULT_INDENT The default amount of indentation < 9.5
DEFAULT_PADDING The default amount of padding < 9.5

Text controls

Name Description Ver
FIELD_FLOAT A text control that only accepts floating-point input < 9.5
FIELD_INT A text control that only accepts integer input < 9.5
FIELD_NODIGITS A text control that does not accept any numerical input < 9.5
FIELD_TEXT A regular text control < 9.5
FIELD_UFLOAT A text control that only accepts non-negative floating-point input < 9.5
FIELD_UINT A text control that only accepts non-negative integer input < 9.5

View mode

Name Description Ver
VIEW_MODE_PIXEL Added in version 10 10.0
VIEW_MODE_VECTOR Added in version 10 10.0