carouselMenu
A left-and-right scrollable menu that can show lots of text at once, as well as how many items are in the menu
Initializing
To initialize, just pass the tpil
object to this class when it is being defined to a variable
Drawing
To draw, call the .draw()
function.
Parameters:
text: The main text - this is the main part of the menu - e.g. name, mac, and rssi of a bluetooth client as a string
caption: Menu caption, e.g. "Bluetooth Clients"
Returns nothing.
Detecting back/next from user
This function is not a thread, so you must manage the user's input yourself, in your plugin's function. Use tpil.waitForKey()
and check if the user wants to go next (right) or back (left).
Last updated