HydraMenu is a menu module for MicroHydra. In the latest update, echo-lalia completely overhauled the code, optimizing it and making it easier to use.
Documentation by echo-lalia. I just grouped it into the text below.
Parent class for HydraMenu Menu Items.
Args shared by every item:
- text (str):
- Display text of the menu item.
- value:
- The value that the menu item controls.
- callback (callable):
- Callback to call when menu item is updated. (optional)
- instant_callback (callable):
- Callback for any time menu item is changed, even before changes are confirmed. (optional)
BoolItems just work as a toggle switch, and return bool
DoItems are used just for calling a specific callback.
This is an item which selects a 16 bit "RGB 565" color. The returned value will be a single integer, representing the color choice.
IntItems are for creating Integer selection options.
Args:
- min_int (int):
- The minimum allowed value.
- max_int (int):
- The maximum allowed value.
WriteItem allows the user to enter some text. Its value is a string.
Args:
- hide (bool):
- Whether or not to hide the entered text.