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 Creates a button with a .png image background < 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
ShortButton LM_ShortButton Creates a new LM_ShortButton object 13.5.2
ShortColorSwatch LM_ColorSwatch Added in version 10 10
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 Value Description Ver
ALERT_INFO 0 This type of alert is used to give the user non-critical information. < 9.5
ALERT_QUESTION 2 This type of alert is used to as the user a question. < 9.5
ALERT_WARNING 1 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 Value Description Ver
ALIGN_BOTTOM 2 Align control on the bottom side of its container < 9.5
ALIGN_CENTER 1 Align control in the center of its container < 9.5
ALIGN_FILL 3 Resize control to fill its container < 9.5
ALIGN_LEFT 0 Align control on the left side of its container < 9.5
ALIGN_RIGHT 2 Align control on the right side of its container < 9.5
ALIGN_TOP 0 Align control on the top side of its container < 9.5

Dialog messages

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

Follow

Name Value Description Ver
FOLLOW_BOTTOM 8 < 9.5
FOLLOW_LEFT 1 < 9.5
FOLLOW_RIGHT 4 < 9.5
FOLLOW_TOP 2 < 9.5

Key codes

Name Value Description Ver
KEY_BACKSPACE -4 The Backspace key < 9.5
KEY_BIND -50 Added in version 11 11
KEY_DELETE -5 The Delete key < 9.5
KEY_DESELECT -51 Added in version 11 11
KEY_DOWN -13 The down arrow key < 9.5
KEY_END -7 The End key < 9.5
KEY_ESCAPE -2 The Escape key < 9.5
KEY_F1 -20 The F1 key < 9.5
KEY_F10 -29 The F10 key < 9.5
KEY_F11 -30 The F11 key < 9.5
KEY_F12 -31 The F12 key < 9.5
KEY_F2 -21 The F2 key < 9.5
KEY_F3 -22 The F3 key < 9.5
KEY_F4 -23 The F4 key < 9.5
KEY_F5 -24 The F5 key < 9.5
KEY_F6 -25 The F6 key < 9.5
KEY_F7 -26 The F7 key < 9.5
KEY_F8 -27 The F8 key < 9.5
KEY_F9 -28 The F9 key < 9.5
KEY_HOME -6 The Home key < 9.5
KEY_LEFT -10 The left arrow key < 9.5
KEY_PAGEDOWN -9 The Page Down key < 9.5
KEY_PAGEUP -8 The Page Up key < 9.5
KEY_RETURN -1 The Return or Enter key < 9.5
KEY_RIGHT -12 The right arrow key < 9.5
KEY_TAB -3 The Tab key < 9.5
KEY_UP -11 The up arrow key < 9.5

Layout padding

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

Text controls

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

Units

Name Value Description Ver
UNIT_DEGREES 2 Added in version 14.0 14.0
UNIT_FPS 3 Added in version 14.0 14.0
UNIT_FRAMES 5 Added in version 14.0 14.0
UNIT_MULT 4 Added in version 14.0 14.0
UNIT_NONE -1 Added in version 14.0 14.0
UNIT_PERCENT 0 Added in version 14.0 14.0
UNIT_PIXELS 1 Added in version 14.0 14.0

View mode

Name Value Description Ver
VIEW_MODE_PIXEL 1 Added in version 10 10
VIEW_MODE_VECTOR 2 Added in version 10 10