getMacroProps

From RPTools Wiki
Revision as of 22:22, 22 March 2009 by Verisimilar (talk | contribs)
Jump to navigation Jump to search

getMacroProps() Function

Introduced in version 1.3b48
Returns a property list of the properties for a macro button for the Current Token. You can retrieve the index of a macro button with the getMacroIndexes() function.The type of the value returned depends on the delimiter parameter.

Usage

getMacroProps(label)
getMacroProps(index)
getMacroProps(label, delim)
getMacroProps(index, delim)

Where

  • label is the label for the macro button. If you specify a label then all macro buttons on the token that have that label will be updated.
  • index is the index of the macro button.
  • delim is the delimiter used to separate the values in the string property list which defaults to ';' if not specified.

Valid Properties for Macro Buttons

  • autoExec - true/false - Will the macro be automatically executed when the button is clicked on.
  • color - The name of the color for the button.
  • fontColor - The name of the font color for the button.
  • includeLabel - true/false - Will the label be output when the button is clicked.
  • group - The name of the group that the button is in.
  • sortBy - The sort by value of the macro button.
  • index - The index of the button.
  • label - the lavle of the button.
  • fontSize - The size of the font for the button.
  • minWidth - the minimum width of the button.


Version Changes

  • 1.3b49 - Added json delimiter option.