getDialogProperties

From RPTools Wiki
Revision as of 18:27, 14 March 2023 by Taustin (talk | contribs) (Text replacement - "source>" to "syntaxhighlight>")
Jump to navigation Jump to search

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

getDialogProperties() Function

Introduced in version 1.5.4
Returns a json object holding the properties associated with a given dialog. The properties are width, height, temporary, title, and value.

Usage

<source lang="mtmacro" line> getDialogProperties(name) </syntaxhighlight>

Parameters

  • name - The name of the dialog.

Example

Opening up a dialog

<source lang="mtmacro" line> [dialog("Dialog Test", "width=300; height=200; temporary=0; title=A new title; value=data of relevance"): {test}] </syntaxhighlight>

Getting the properties of the dialog:

<source lang="mtmacro" line> [getDialogProperties("Dialog Test")] </syntaxhighlight>

The output will be: <source lang="mtmacro" line>

{"width":300,"height":200,"temporary":0,"title":"A new title","value":"data of relevance"}
</syntaxhighlight>