Advanced Menu System
1.0
|
Input setting line widget. More...
#include <KeyBindingWidget.h>
Public Member Functions | |
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnKeySelected, FInputChord, SelectedKey) | |
DECLARE_DYNAMIC_MULTICAST_DELEGATE (FOnIsSelectingKeyChanged) | |
UKeyBindingWidget (const FObjectInitializer &ObjectInitializer) | |
virtual void | NativeConstruct () override |
virtual void | SynchronizeProperties () override |
void | CheckInputType () |
void | SetSelectedKey (const FInputChord &InSelectedKey) |
FInputChord | GetSelectedKey () const |
void | SetKeySelectionText (FText InKeySelectionText) |
const FText & | GetKeySelectionText () const |
void | SetNoKeySpecifiedText (FText InNoKeySpecifiedText) |
const FText & | GetNoKeySpecifiedText () const |
void | SetAllowModifierKeys (bool bInAllowModifierKeys) |
bool | AllowModifierKeys () const |
void | SetAllowGamepadKeys (bool bInAllowGamepadKeys) |
bool | AllowGamepadKeys () const |
bool | GetIsSelectingKey () const |
void | SetSelectionBlockVisibility (const ESlateVisibility InVisibility) |
void | SetButtonStyle (const FButtonStyle &ButtonStyle) |
void | SetButtonStyle (const FButtonStyle *ButtonStyle) |
const FButtonStyle & | GetButtonStyle () const |
void | SetTextStyle (const FTextBlockStyle &InTextStyle) |
const FTextBlockStyle & | GetTextStyle () const |
void | SetMargin (const FMargin &InMargin) |
const FMargin & | GetMargin () const |
void | SetEscapeKeys (const TArray< FKey > &InKeys) |
void | UpdateIcon (FInputChord Key) |
Public Member Functions inherited from USettingsParamBase | |
USettingsParamBase (const FObjectInitializer &ObjectInitializer) | |
virtual void | NativeConstruct () override |
virtual void | SynchronizeProperties () override |
virtual void | PostLoad () override |
void | SetTitleText (FText Text) |
void | SetTitleTextColor (FColor Color) |
void | SetTitleTextFont (FSlateFontInfo Font) |
void | UpdateTextBlock () |
Public Attributes | |
class UInputKeySelector * | InputKeySelector |
EKeyBindingTypes | Type |
FButtonStyle | WidgetButtonStyle |
FTextBlockStyle | TextStyle |
FInputChord | SelectedKey |
FMargin | Margin |
FText | KeySelectionText |
FText | NoKeySpecifiedText |
bool | bAllowModifierKeys |
bool | bAllowGamepadKeys |
TArray< FKey > | EscapeKeys |
FOnKeySelected | OnKeySelected |
FOnIsSelectingKeyChanged | OnIsSelectingKeyChanged |
EKeyBindingTypes | KeyBindingType |
TArray< FButtonIcon > | ButtonIcons |
Public Attributes inherited from USettingsParamBase | |
class UTextBlock * | TitleTextBlock |
FText | TitleText |
FColor | TitleTextColor |
FSlateFontInfo | TitleTextFont |
Input setting line widget.
UKeyBindingWidget::UKeyBindingWidget | ( | const FObjectInitializer & | ObjectInitializer | ) |
bool UKeyBindingWidget::AllowGamepadKeys | ( | ) | const |
Returns true if gamepad keys are allowed, otherwise returns false.
bool UKeyBindingWidget::AllowModifierKeys | ( | ) | const |
Returns true if modifier keys keys are allowed, otherwise returns false.
void UKeyBindingWidget::CheckInputType | ( | ) |
UKeyBindingWidget::DECLARE_DYNAMIC_MULTICAST_DELEGATE | ( | FOnIsSelectingKeyChanged | ) |
UKeyBindingWidget::DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam | ( | FOnKeySelected | , |
FInputChord | , | ||
SelectedKey | |||
) |
const FButtonStyle & UKeyBindingWidget::GetButtonStyle | ( | ) | const |
Returns the style of the button used to start key selection mode.
bool UKeyBindingWidget::GetIsSelectingKey | ( | ) | const |
Returns true if the widget is currently selecting a key, otherwise returns false.
const FText & UKeyBindingWidget::GetKeySelectionText | ( | ) | const |
Returns the text which is displayed while selecting keys.
const FMargin & UKeyBindingWidget::GetMargin | ( | ) | const |
Returns the amount of blank space around the text used to display the currently selected key.
const FText & UKeyBindingWidget::GetNoKeySpecifiedText | ( | ) | const |
Returns the text to display when no key text is available or not selecting a key.
FInputChord UKeyBindingWidget::GetSelectedKey | ( | ) | const |
Returns the currently selected key.
const FTextBlockStyle & UKeyBindingWidget::GetTextStyle | ( | ) | const |
Returns the style of the text used inside the button.
|
overridevirtual |
Reimplemented from USettingsParamBase.
void UKeyBindingWidget::SetAllowGamepadKeys | ( | bool | bInAllowGamepadKeys | ) |
Sets whether or not gamepad keys are allowed in the selected key.
void UKeyBindingWidget::SetAllowModifierKeys | ( | bool | bInAllowModifierKeys | ) |
Sets whether or not modifier keys are allowed in the selected key.
void UKeyBindingWidget::SetButtonStyle | ( | const FButtonStyle & | ButtonStyle | ) |
Sets the style of the button used to start key selection mode.
void UKeyBindingWidget::SetButtonStyle | ( | const FButtonStyle * | ButtonStyle | ) |
Sets the style of the button used to start key selection mode.
void UKeyBindingWidget::SetEscapeKeys | ( | const TArray< FKey > & | InKeys | ) |
Sets escape keys.
void UKeyBindingWidget::SetKeySelectionText | ( | FText | InKeySelectionText | ) |
Sets the text which is displayed while selecting keys.
void UKeyBindingWidget::SetMargin | ( | const FMargin & | InMargin | ) |
Sets the amount of blank space around the text used to display the currently selected key.
void UKeyBindingWidget::SetNoKeySpecifiedText | ( | FText | InNoKeySpecifiedText | ) |
Sets the text to display when no key text is available or not selecting a key.
void UKeyBindingWidget::SetSelectedKey | ( | const FInputChord & | InSelectedKey | ) |
Sets the currently selected key.
void UKeyBindingWidget::SetSelectionBlockVisibility | ( | const ESlateVisibility | InVisibility | ) |
Sets the visibility of the text block.
void UKeyBindingWidget::SetTextStyle | ( | const FTextBlockStyle & | InTextStyle | ) |
Sets the style of the text used inside the button.
|
overridevirtual |
Reimplemented from USettingsParamBase.
void UKeyBindingWidget::UpdateIcon | ( | FInputChord | Key | ) |
bool UKeyBindingWidget::bAllowGamepadKeys |
When true gamepad keys are allowed in the input chord representing the selected key, otherwise they are ignored.
bool UKeyBindingWidget::bAllowModifierKeys |
When true modifier keys such as control and alt are allowed in the input chord representing the selected key, if false modifier keys are ignored.
TArray<FButtonIcon> UKeyBindingWidget::ButtonIcons |
TArray<FKey> UKeyBindingWidget::EscapeKeys |
When true gamepad keys are allowed in the input chord representing the selected key, otherwise they are ignored.
class UInputKeySelector* UKeyBindingWidget::InputKeySelector |
EKeyBindingTypes UKeyBindingWidget::KeyBindingType |
FText UKeyBindingWidget::KeySelectionText |
Sets the text which is displayed while selecting keys.
FMargin UKeyBindingWidget::Margin |
The amount of blank space around the text used to display the currently selected key.
FText UKeyBindingWidget::NoKeySpecifiedText |
Sets the text to display when no key text is available or not selecting a key.
FOnIsSelectingKeyChanged UKeyBindingWidget::OnIsSelectingKeyChanged |
Called whenever the key selection mode starts or stops.
FOnKeySelected UKeyBindingWidget::OnKeySelected |
Called whenever a new key is selected by the user.
FInputChord UKeyBindingWidget::SelectedKey |
The currently selected key chord.
FTextBlockStyle UKeyBindingWidget::TextStyle |
The button style used at runtime
EKeyBindingTypes UKeyBindingWidget::Type |
FButtonStyle UKeyBindingWidget::WidgetButtonStyle |