IconMenuDelegate
- class omni.kit.menu.utils.scripts.IconMenuDelegate
Bases:
MenuDelegateMethods
build_item(self, item)This method must be reimplemented to generate custom item.
Attributes
COLOR_LABEL_DISABLEDCOLOR_LABEL_ENABLEDCOLOR_SEPARATORCOLOR_TICK_DISABLEDCOLOR_TICK_ENABLEDEXTENSION_FOLDER_PATHHOTKEY_SPACINGICON_PATHICON_SIZEICON_SPACINGITEM_SPACINGMARGIN_SIZEMENU_STYLEROOT_SPACINGSUBMENU_ICON_SIZESUBMENU_PRE_SPACINGSUBMENU_SPACINGTICK_SIZETICK_SPACING- __init__(self: omni.ui._ui.MenuDelegate, **kwargs) → None
Constructor.
- `kwargsdict`
See below
### Keyword Arguments:
- `on_build_item`
Called to create a new item.
- `on_build_title`
Called to create a new title.
- `on_build_status`
Called to create a new widget on the bottom of the window.
- `propagate`
Determine if Menu children should use this delegate when they don’t have the own one.
- build_item(self: omni.ui._ui.MenuDelegate, item: omni::ui::MenuHelper) → None
This method must be reimplemented to generate custom item.