Skip to content
anotak edited this page Jun 29, 2018 · 2 revisions

AddParameter(key, label, defaultvalue)

Adds a parameter to ask from the user. You need to call AskForParameters() for this to do anything. The default value is optional.

AskForParameters()

Pops up a dialog box and asks the user for input based on the parameters you added with AddParameter(). If the user cancels at this window, it will terminate your script and undo all changes. The parameters are cleared afterward, so if you want to reask for the same parameters you should either add new ones, or use AskForParametersNoClear() instead.

AskForParametersNoClear()

useful if you want to repeatedly ask for the same parameters.

ClearParameters()

clears/deletes any parameters added through AddParameter()

LogLine(line)

after your script is done, if LogLine() was called, all the lines are shown in a popup message box.

DebugLogLine(line)

like LogLine(), but only pops up in the case of a warning or an error.

GetMouseMapPosition()

GetMouseMapPosition(snaptogrid)

GetMouseMapPosition(snaptogrid,snaptonearest)

Clone this wiki locally