Skip to content
Angelo Geels edited this page May 3, 2015 · 7 revisions

print

Prints a line to console.

Parameters:

  • String strLine The line to print.

Example:

print("Hello world")

Anchor

Returns an anchor for Control.Anchor properties.

Parameters:

  • bool left Whether to set the AnchorStyles.Left flag.
  • bool right Whether to set the AnchorStyles.Right flag.
  • bool up Whether to set the AnchorStyles.Up flag.
  • bool down Whether to set the AnchorStyles.Down flag.

Returns:

An enum of type AnchorStyles ready for the Control.Anchor property.

Example:

logbox.Anchor = Anchor(true, true, true, false)

InterfaceThemeControl

Themes the given control by user settings.

Parameters:

  • Control root The control to modify. Can be a form, too.

Example:

InterfaceThemeControl(container)

DoFile

Execute a lua script file. Prefer to use this instead of lua's builtin dofile, as this is also able to load scripts from zip packages (useful for Steam Workshop).

Parameters:

  • String strFilename The filename of the lua file to execute.

Returns:

Whatever the file returns.

Example:

DoFile("functions.lua")