Skip to main content
Version: Matrix OS 4.0 🚧

NumberEditor UI Utility

Experimental API

This utility does not follow the same design style as the rest of the UI framework. For new interfaces, prefer building the control directly with the UI framework.

The NumberEditor UI utility allows you to display a number editor on the screen with a specified color, name, and value range.

The source file for this UI utility is located in OS/UI/UIUtilities.h and it is implemented in OS/UI/Utilities/NumberEditor8x8.cpp.​

Method​

int32_t NumberSelector8x8(int32_t value, Color color, string name, int32_t lower_limit, int32_t upper_limit, int32_t* custom_modifier)

Displays a number editor on the screen with the specified color, name, value range, and custom modifier.

Parameters:

  • value (int32_t): The initial value of the number editor.
  • color (Color): The color of the number editor.
  • name (string): The name of the number editor.
  • lower_limit (int32_t): The lower limit of the number editor.
  • upper_limit (int32_t): The upper limit of the number editor.
  • custom_modifier (int32_t*, optional): A pointer to a int32_t[8] array custom modifier. It will be used to adjust the value of the number editor. Defaults to nullptr.

Comments