Module |
|
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
(
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
)
Adds a sub-menu which is a menu within a menu
Parameter |
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 |