summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2020-12-27 15:18:47 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2020-12-27 15:18:47 +0300
commitca8c794d0422f2e64a0afa0dab9b31a6589c7024 (patch)
tree212aa7b42b45d863e1f3884f56e10bba1ff05eeb /doc/classes
parentd55e335026e4848d4d2ec21db8f334a9429c8cc8 (diff)
Added optional id parameter to `PopupMenu::add_separator`
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/PopupMenu.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/classes/PopupMenu.xml b/doc/classes/PopupMenu.xml
index 04798c04e9..2532af9a0c 100644
--- a/doc/classes/PopupMenu.xml
+++ b/doc/classes/PopupMenu.xml
@@ -205,8 +205,10 @@
</return>
<argument index="0" name="label" type="String" default="&quot;&quot;">
</argument>
+ <argument index="1" name="id" type="int" default="-1">
+ </argument>
<description>
- Adds a separator between items. Separators also occupy an index.
+ Adds a separator between items. Separators also occupy an index, which you can set by using the [code]id[/code] parameter.
A [code]label[/code] can optionally be provided, which will appear at the center of the separator.
</description>
</method>