Advanced Menu System
1.0
|
Input setting param widget. More...
#include <ControlsSettingsWidget.h>
Public Member Functions | |
UControlsSettingsWidget (const FObjectInitializer &ObjectInitializer) | |
virtual void | NativeConstruct () override |
virtual void | SynchronizeProperties () override |
void | SetTitleTextColor (FColor Color) |
Sets text color for each setting. More... | |
void | SetTitleTextFont (FSlateFontInfo Font) |
Setting text font for each setting. More... | |
void | SetDefaultKeyArray (TArray< FEnhancedActionKeyMapping > Array) |
virtual void | SaveInputMappings () |
This function saves input mappings into the save. More... | |
virtual bool | IsSettingsSaved () |
This function checks whether or not settings are saved. More... | |
virtual void | LoadInputMappings () |
This function loads data from game save into this class. More... | |
virtual void | ResetSettings () |
Public Attributes | |
UScrollBox * | ScrollBox |
Scroll box. Controlls will be added here. More... | |
UCanvasPanel * | CanvasPanel |
class UButton * | ApplyButton |
Apply settings button. More... | |
TArray< UKeyBindingWidget * > | KeyBindingParamLineArr |
Key Bindings Setting widgets array. More... | |
TArray< FEnhancedActionKeyMapping > | KeyArray |
TSubclassOf< UKeyBindingWidget > | KeyBindingWidgetClass |
Save which stores all controlls info. More... | |
bool | bInstantApply |
Instant setting apply More... | |
EKeyBindingTypes | KeyBindingType |
Key binding type. Text or icons. More... | |
TArray< FButtonIcon > | ButtonIcons |
Key binding icons. Only if KeyBindingType == EKeyBindingTypes::Icons. More... | |
UInputMappingContext * | PlayerInputMapping |
TArray< FEnhancedActionKeyMapping > | DefaultKeyArray |
bool | bCustomTitleTextStyle |
True if update the title text. More... | |
class UButton * | ResetButton |
TSubclassOf< UControlsSave > | ControlsSaveClass |
Protected Member Functions | |
void | AddKeyBindingParamLine (int KeyIndex) |
This function adds a setting line to the scroll box. More... | |
void | UpdateTextBlock () |
This function updates style for all settings. More... | |
void | OnApplyPress () |
This function runs on apply button press. Apply and save changes into save class. More... | |
Protected Attributes | |
FColor | TitleTextColor |
Title text color of the key binding setting. More... | |
FSlateFontInfo | TitleTextFont |
Title text font of the key binding setting. More... | |
Input setting param widget.
UControlsSettingsWidget::UControlsSettingsWidget | ( | const FObjectInitializer & | ObjectInitializer | ) |
|
protected |
This function adds a setting line to the scroll box.
KeyIndex |
|
virtual |
This function checks whether or not settings are saved.
|
virtual |
This function loads data from game save into this class.
|
overridevirtual |
Apply
|
protected |
This function runs on apply button press. Apply and save changes into save class.
|
virtual |
|
virtual |
This function saves input mappings into the save.
void UControlsSettingsWidget::SetDefaultKeyArray | ( | TArray< FEnhancedActionKeyMapping > | Array | ) |
void UControlsSettingsWidget::SetTitleTextColor | ( | FColor | Color | ) |
Sets text color for each setting.
Color |
void UControlsSettingsWidget::SetTitleTextFont | ( | FSlateFontInfo | Font | ) |
Setting text font for each setting.
Font |
|
overridevirtual |
|
protected |
This function updates style for all settings.
class UButton* UControlsSettingsWidget::ApplyButton |
Apply settings button.
bool UControlsSettingsWidget::bCustomTitleTextStyle |
True if update the title text.
bool UControlsSettingsWidget::bInstantApply |
Instant setting apply
TArray<FButtonIcon> UControlsSettingsWidget::ButtonIcons |
Key binding icons. Only if KeyBindingType == EKeyBindingTypes::Icons.
UCanvasPanel* UControlsSettingsWidget::CanvasPanel |
TSubclassOf<UControlsSave> UControlsSettingsWidget::ControlsSaveClass |
TArray<FEnhancedActionKeyMapping> UControlsSettingsWidget::DefaultKeyArray |
TArray<FEnhancedActionKeyMapping> UControlsSettingsWidget::KeyArray |
TArray<UKeyBindingWidget*> UControlsSettingsWidget::KeyBindingParamLineArr |
Key Bindings Setting widgets array.
EKeyBindingTypes UControlsSettingsWidget::KeyBindingType |
Key binding type. Text or icons.
TSubclassOf<UKeyBindingWidget> UControlsSettingsWidget::KeyBindingWidgetClass |
Save which stores all controlls info.
Key binding widget class which will be used for each key setting.
UInputMappingContext* UControlsSettingsWidget::PlayerInputMapping |
class UButton* UControlsSettingsWidget::ResetButton |
UScrollBox* UControlsSettingsWidget::ScrollBox |
Scroll box. Controlls will be added here.
|
protected |
Title text color of the key binding setting.
|
protected |
Title text font of the key binding setting.