Limen Framework 0.1 Help

ULimenSelectionSetting

Overview

ULimenSelectionSetting is an abstract base class that extends ULimenSetting, implementing interfaces for editable and readable settings. It manages a list of possible selections, a current selection, and an applied selection. The class provides functionality to get and set the current value, check if a value is valid, and apply the current setting.

Properties

Type

Name

Access

Description

TArray<FString>

PossibleSelections

EditAnywhere

List of possible selections for this setting.

FString

DefaultSelection

EditAnywhere

The default selection value.

FString

CurrentSelection

Private

The current selected value.

FString

PreviousSelection

Private

The previous selected value.

FString

AppliedSelection

SaveGame

The applied selected value, saved across sessions.

Functions

Return Type

Signature

Description

const TArray<FString>&

GetSettingValues() const

Returns the list of possible selections.

FString

GetCurrentValue() const

Returns the current selected value.

FString

GetPreviousValue() const

Returns the previous selected value.

FString

GetAppliedValue() const

Returns the applied selected value.

bool

IsValueValid(const FString& Test)

Checks if a given selection is valid.

bool

CanEdit() const

Determines if the setting can be edited.

bool

SetNewValue(const FString& NewSelection)

Sets a new selection and updates the state accordingly.

void

SetDefaults()

Resets the settings to their default values.

void

PostDataLoaded()

Called after data is loaded, setting up initial states.

bool

IsEnabled() const

Checks if the current selection is enabled.

void

ApplyCurrentSetting(bool bUserRequest)

Applies the current selected value and updates the applied state.

Usage & Implementation Notes

  • The class uses a TArray<FString> to store possible selections, ensuring that only valid values can be set.

  • It maintains CurrentSelection, PreviousSelection, and AppliedSelection to track changes and apply settings across sessions.

  • Error handling is included in the SetNewValue function to log errors when setting an invalid value.

22 May 2026