Base menu builder 更多...
#include <MultiBoxBuilder.h>
类 FBaseMenuBuilder 继承关系图:Public 成员函数 | |
| void | AddMenuEntry (const TAttribute< FText > &InLabel, const TAttribute< FText > &InToolTip, const FSlateIcon &InIcon, const FUIAction &UIAction, FName InExtensionHook=NAME_None, const EUserInterfaceActionType UserInterfaceActionType=EUserInterfaceActionType::Button, FName InTutorialHighlightName=NAME_None) |
| Adds a menu entry without the use of a command 更多... | |
| void | AddMenuEntry (const TSharedPtr< const FUICommandInfo > InCommand, FName InExtensionHook=NAME_None, const TAttribute< FText > &InLabelOverride=TAttribute< FText >(), const TAttribute< FText > &InToolTipOverride=TAttribute< FText >(), const FSlateIcon &InIconOverride=FSlateIcon(), FName InTutorialHighlightName=NAME_None) |
| Adds a menu entry 更多... | |
| FBaseMenuBuilder (const EMultiBoxType InType, const bool bInShouldCloseWindowAfterMenuSelection, TSharedPtr< const FUICommandList > InCommandList, bool bInCloseSelfOnly, TSharedPtr< FExtender > InExtender=TSharedPtr< FExtender >(), const ISlateStyle *InStyleSet=&FCoreStyle::Get(), FName InTutorialHighlightName=NAME_None, FName InMenuName=NAME_None) | |
| Constructor 更多... | |
Public 成员函数 继承自 FMultiBoxBuilder | |
| void | AddEditableText (const FText &InLabel, const FText &InToolTip, const FSlateIcon &InIcon, const TAttribute< FText > &InTextAttribute, const FOnTextCommitted &InOnTextCommitted=FOnTextCommitted(), const FOnTextChanged &InOnTextChanged=FOnTextChanged(), bool bInReadOnly=false) |
| Adds an editable text entry 更多... | |
| bool | ExtendersEnabled () const |
| FMultiBoxBuilder (const EMultiBoxType InType, FMultiBoxCustomization InCustomization, const bool bInShouldCloseWindowAfterMenuSelection, const TSharedPtr< const FUICommandList > &InCommandList, TSharedPtr< FExtender > InExtender=TSharedPtr< FExtender >(), FName InTutorialHighlightName=NAME_None, FName InMenuName=NAME_None) | |
| Constructor 更多... | |
| FMultiBoxCustomization | GetCustomization () const |
| TSharedRef< class FMultiBox > | GetMultiBox () |
| Get the multi-box being built. 更多... | |
| const FName & | GetStyleName () const |
| const ISlateStyle * | GetStyleSet () const |
| TSharedPtr< const FUICommandList > | GetTopCommandList () |
| virtual TSharedRef< class SWidget > | MakeWidget (FMultiBox::FOnMakeMultiBoxBuilderOverride *InMakeMultiBoxBuilderOverride=nullptr, uint32 MaxHeight=INT_MAX) |
| Creates a widget for this MultiBox 更多... | |
| void | PopCommandList () |
| Pops the current command list. | |
| void | PopExtender () |
| Pops the current extender. | |
| void | PushCommandList (const TSharedRef< const FUICommandList > CommandList) |
| Pushes a new command list onto the stack. 更多... | |
| void | PushExtender (TSharedRef< FExtender > InExtender) |
| Pushes a new extender onto the stack. 更多... | |
| void | SetExtendersEnabled (bool bEnabled) |
| Sets extender support | |
| void | SetStyle (const ISlateStyle *InStyleSet, const FName &InStyleName) |
| Sets the style to use on the multibox widgets | |
Protected 属性 | |
| bool | bCloseSelfOnly |
| True if clicking on a menu entry closes itself only and its children and not the entire stack | |
Protected 属性 继承自 FMultiBoxBuilder | |
| bool | bExtendersEnabled |
| If extenders are enabled | |
| TArray< TSharedPtr< const FUICommandList > > | CommandListStack |
| A stack of command lists which map command infos to delegates that should be called. 更多... | |
| TArray< TSharedPtr< class FExtender > > | ExtenderStack |
| The extender stack holding all the possible extensions for this menu builder | |
| FName | MenuName |
| Name of the menu | |
| TSharedRef< class FMultiBox > | MultiBox |
| The MultiBox we're building up | |
| FName | TutorialHighlightName |
| Name to identify this widget and highlight during tutorials | |
额外继承的成员函数 | |
Protected 成员函数 继承自 FMultiBoxBuilder | |
| virtual void | ApplyHook (FName InExtensionHook, EExtensionHook::Position HookPosition)=0 |
| Applies any potential extension hooks at the current place | |
| virtual void | ApplySectionBeginning () |
| Applies the beginning of a section, including the header and relevant separator | |
Base menu builder
| FBaseMenuBuilder::FBaseMenuBuilder | ( | const EMultiBoxType | InType, |
| const bool | bInShouldCloseWindowAfterMenuSelection, | ||
| TSharedPtr< const FUICommandList > | InCommandList, | ||
| bool | bInCloseSelfOnly, | ||
| TSharedPtr< FExtender > | InExtender = TSharedPtr< FExtender >(), |
||
| const ISlateStyle * | InStyleSet = &FCoreStyle::Get(), |
||
| FName | InTutorialHighlightName = NAME_None, |
||
| FName | InMenuName = NAME_None |
||
| ) |
Constructor
| InType | Type of MultiBox |
| bInShouldCloseWindowAfterMenuSelection | Sets whether or not the window that contains this multibox should be destroyed after the user clicks on a menu item in this box |
| InCommandList | The action list that maps command infos to delegates that should be called for each command associated with a multiblock widget |
| bInCloseSelfOnly | True if clicking on a menu entry closes itself only and its children but not the entire stack |
| InTutorialHighlightName | Optional name to identify this widget and highlight during tutorials |
| void FBaseMenuBuilder::AddMenuEntry | ( | const TAttribute< FText > & | InLabel, |
| const TAttribute< FText > & | InToolTip, | ||
| const FSlateIcon & | InIcon, | ||
| const FUIAction & | UIAction, | ||
| FName | InExtensionHook = NAME_None, |
||
| const EUserInterfaceActionType | UserInterfaceActionType = EUserInterfaceActionType::Button, |
||
| FName | InTutorialHighlightName = NAME_None |
||
| ) |
Adds a menu entry without the use of a command
| InLabel | Label to show in the menu entry |
| InToolTip | Tool tip used when hovering over the menu entry |
| InIcon | The icon to use |
| UIAction | Actions to execute on this menu item. |
| InExtensionHook | The section hook. Can be NAME_None |
| UserInterfaceActionType | Type of interface action |
| InTutorialHighlightName | Optional name to identify this widget and highlight during tutorials |
| void FBaseMenuBuilder::AddMenuEntry | ( | const TSharedPtr< const FUICommandInfo > | InCommand, |
| FName | InExtensionHook = NAME_None, |
||
| const TAttribute< FText > & | InLabelOverride = TAttribute< FText >(), |
||
| const TAttribute< FText > & | InToolTipOverride = TAttribute< FText >(), |
||
| const FSlateIcon & | InIconOverride = FSlateIcon(), |
||
| FName | InTutorialHighlightName = NAME_None |
||
| ) |
Adds a menu entry
| InCommand | The command associated with this menu entry |
| InExtensionHook | The section hook. Can be NAME_None |
| InLabelOverride | Optional label override. If omitted, then the action's label will be used instead. |
| InToolTipOverride | Optional tool tip override. If omitted, then the action's label will be used instead. |
| InIconOverride | Optional name of the slate brush to use for the tool bar image. If omitted, then the command's icon will be used instead. |
| InTutorialHighlightName | Optional name to identify this widget and highlight during tutorials |