getDialogProperties

From RPTools Wiki
Revision as of 09:26, 20 August 2019 by Merudo (talk | contribs) (Created page with "{{stub}} {{MacroFunction |name=getDialogProperties |version=1.5.4 |description= Returns a json object holding the properties associated with a given dialog. The properties are...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

getDialogProperties(name)

Parameters

  • name - The name of the dialog.

Example

Opening up a dialog
[dialog("Dialog Test", "width=300; height=200; temporary=0; title=A new title; value=data of relevance"): {test}]

Getting the properties of the dialog:

[getDialogProperties("Dialog Test")]

The output will be:

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