summaryrefslogtreecommitdiff
path: root/doc/base/classes.xml
diff options
context:
space:
mode:
authorIvan P. Skodje <Tybobobo@users.noreply.github.com>2016-12-23 15:43:45 +0100
committerRĂ©mi Verschelde <rverschelde@gmail.com>2016-12-23 15:43:45 +0100
commitda950cd0f27a4f1f2a2d596efae846d1c22442a2 (patch)
tree74595ac5affca7325782cf7c2244d29fe79de723 /doc/base/classes.xml
parent2c8a1729152f5bcb1cb81d24b1e642634bff7174 (diff)
PopupMenu upgrade: Hide on item selection (#7306)
* Added the option to set hide on item selection. Usable in GDScript and from within the source code when you want to specify popup menus you don't want to close immediately when selecting an item * Renamed getter from get_ to is_, fixed parent/child behavior, renamed bool variable to match most code and added ADD_PROPERTYNO to save some memory
Diffstat (limited to 'doc/base/classes.xml')
-rw-r--r--doc/base/classes.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index 07e2f719f9..75bd08d160 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -30931,6 +30931,13 @@
Clear the popup menu, in effect removing all items.
</description>
</method>
+ <method name="is_hide_on_item_selection">
+ <return type="bool">
+ </return>
+ <description>
+ Returns a boolean that indicates whether or not the PopupMenu will hide on item selection.
+ </description>
+ </method>
<method name="get_item_ID" qualifiers="const">
<return type="int">
</return>
@@ -31050,6 +31057,13 @@
Removes the item at index "idx" from the menu. Note that the indexes of items after the removed item are going to be shifted by one.
</description>
</method>
+ <method name="set_hide_on_item_selection">
+ <argument index="0" name="enable" type="bool">
+ </argument>
+ <description>
+ Sets whether or not the PopupMenu will hide on item selection.
+ </description>
+ </method>
<method name="set_item_ID">
<argument index="0" name="idx" type="int">
</argument>