Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/MultiBox > API/Runtime/Slate/Framework/MultiBox/FMenuBuilder > API/Runtime/Slate/Framework/MultiBox/FMenuBuilder/AddSubMenu
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/MultiBox/MultiBoxBuilder.h |
| Include | #include "Framework/MultiBox/MultiBoxBuilder.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Framework/MultiBox/MultiBoxBuilder.cpp |
void AddSubMenu
&40;
const TAttribute< FText > & InMenuLabel,
const TAttribute< FText > & InToolTip,
const FNewMenuDelegate & InSubMenu,
const FUIAction & InUIAction,
FName InExtensionHook,
const EUserInterfaceActionType InUserInterfaceActionType,
const bool bInOpenSubMenuOnClick,
const FSlateIcon & InIcon,
const bool bInShouldCloseWindowAfterMenuSelection
&41;
Remarks
Adds a sub-menu which is a menu within a menu
Parameters
| Name | Description |
|---|---|
| InMenuLabel | The text that should be shown for the menu |
| InToolTip | The tooltip that should be shown when the menu is hovered over |
| InSubMenu | Sub-Menu object which creates menu entries for the sub-menu |
| InUIAction | Actions to execute on this menu item. |
| InExtensionHook | The section hook. Can be NAME_None |
| InUserInterfaceActionType | Type of interface action |
| bInOpenSubMenuOnClick | Sub-menu will open only if the sub-menu entry is clicked |
| InIcon | The icon to use |
| bInShouldCloseWindowAfterMenuSelection | Whether the submenu should close after an item is selected |