diff options
| author | Pedro J. Estébanez | 2018-04-09 19:55:24 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-04-28 22:17:08 +0200 |
| commit | 02f767fe0d8716a6745c13fd557a2564cbfd046f (patch) | |
| tree | 98281dc8ebad28972a4d9dfbba14e87c828da383 /doc/classes | |
| parent | 20fa30bde68ba2bff79a791da4e37f3416896e34 (diff) | |
| download | godot-02f767fe0d8716a6745c13fd557a2564cbfd046f.tar.gz godot-02f767fe0d8716a6745c13fd557a2564cbfd046f.tar.zst godot-02f767fe0d8716a6745c13fd557a2564cbfd046f.zip | |
Add support for radio-looking items with icon
Letting users of `PopupMenu` use them. `OptionButton` was one of those interested and is updated in this commit.
Fixes #18063.
(cherry picked from commit b964a9e678a969bdc28972c55655d7f0667d68b7)
Diffstat (limited to 'doc/classes')
| -rw-r--r-- | doc/classes/PopupMenu.xml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/classes/PopupMenu.xml b/doc/classes/PopupMenu.xml index 8e7b37d47..f6b1423c7 100644 --- a/doc/classes/PopupMenu.xml +++ b/doc/classes/PopupMenu.xml @@ -77,6 +77,21 @@ created from the index. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. </description> </method> + <method name="add_icon_radio_check_item"> + <return type="void"> + </return> + <argument index="0" name="texture" type="Texture"> + </argument> + <argument index="1" name="label" type="String"> + </argument> + <argument index="2" name="id" type="int" default="-1"> + </argument> + <argument index="3" name="accel" type="int" default="0"> + </argument> + <description> + The same as [method add_icon_check_item] but the inserted item will look as a radio button. Remember this is just cosmetic and you have to add the logic for checking/unchecking items in radio groups. + </description> + </method> <method name="add_icon_check_shortcut"> <return type="void"> </return> |
