IconMenuDelegate
- class omni.kit.menu.utils.scripts.utils.IconMenuDelegate
Bases:
MenuDelegate
Methods
build_item
(self, item)This method must be reimplemented to generate custom item.
Attributes
COLOR_LABEL_DISABLED
COLOR_LABEL_ENABLED
COLOR_SEPARATOR
COLOR_TICK_DISABLED
COLOR_TICK_ENABLED
EXTENSION_FOLDER_PATH
HOTKEY_SPACING
ICON_PATH
ICON_SIZE
ICON_SPACING
ITEM_SPACING
MARGIN_SIZE
MENU_STYLE
ROOT_SPACING
SUBMENU_ICON_SIZE
SUBMENU_PRE_SPACING
SUBMENU_SPACING
TICK_SIZE
TICK_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.