Limen Framework 0.1 Help

ULimenNumberPad

Overview

ULimenNumberPad is a custom UMG widget designed to allow users to input numeric codes. It consists of a grid of number buttons (0-9), a submit button, and a clear button. The widget maintains the current code being entered and provides an event for when the submitted code is checked against a predefined solution.

Properties

Type

Name

Access

Description

FText

SubmitButtonText

EditAnywhere

Text displayed on the submit button.

FText

ClearButtonText

EditAnywhere

Text displayed on the clear button.

FString

Solution

EditAnywhere

The correct code to be submitted.

int32

MaxDigits

EditAnywhere

Maximum number of digits allowed in the code.

FSlateBrush

ScreenBrush

EditAnywhere

Brush used for the background of the screen.

FButtonStyle

ButtonStyle

EditAnywhere

Style applied to all buttons.

FSlateFontInfo

ButtonFont

EditAnywhere

Font used for button text.

FSlateFontInfo

ScreenFont

EditAnywhere

Font used for the code display on the screen.

FMargin

ButtonPadding

EditAnywhere

Padding applied to each button.

Functions

Return Type

Signature

Description

void

ClearScreen()

Clears the current code displayed on the screen.

TSharedRef<SWidget>

RebuildWidget()

Constructs and returns the widget's visual representation.

void

NumberPressed(ULimenStandardButton* Button)

Handles the event when a number button is pressed, updating the displayed code.

void

ClearPressed(ULimenStandardButton* Button)

Handles the event when the clear button is pressed, resetting the screen.

void

SubmitPressed(ULimenStandardButton* Button)

Handles the event when the submit button is pressed, checking if the entered code matches the solution and broadcasting the result via OnCodeSubmitted.

Usage & Implementation Notes

  • Threading Constraints: This widget does not perform any operations that require threading constraints.

  • Replication Requirements: No replication is required for this widget as it operates purely on client-side data.

  • Memory Lifetime Management: The widget manages memory for the buttons and screen using smart pointers (TSharedPtr and TStrongObjectPtr). Ensure proper management of these objects to avoid memory leaks.

  • Initialization Dependencies: This widget depends on ULimenStandardButton for its functionality. Ensure that this class is properly defined and available in your project.

Events

Type

Name

Description

FLimenNumberPadCodeSubmited

OnCodeSubmitted

Event triggered when the submitted code is checked against the solution.

22 May 2026