NumberCounter - LiruJ/GuiCookie GitHub Wiki

Overview

The NumberCounter controller binds together two buttons, a label, and stores an integer value. The buttons are used to increment and decrement the integer value, and the label is used to display the current value of the integer.

Element Properties

In order of retrieval:

Label

ITextable, OnFullSetup(), "Label"

This is used to display the current value.

IncrementButton

Button, OnFullSetup(), "IncrementButton"

This is used to increment the value.

DecrementButton

Button, OnFullSetup(), "DecrementButton"

This is used to decrement the value.

Properties

Value

int

Gets or sets the value of the counter, automatically updating the label.

Signals

OnValueChanged

Is fired when the value is changed. Note that the value has to actually change for this signal to fire.

⚠️ **GitHub.com Fallback** ⚠️