keyLegend
A overlay for the UI that shows what each key does
Initializing
Same as before. Pass the tinyPillow
object aswell as a dictionary object for the keys.
legend = tpil.gui.keyLegend(tpil, {"left": "Go Back", "right": "Next"})
Drawing
This class is not threaded, so you must draw again after you are done drawing everything else, so the key legend overlays the UI.
To draw, just call .draw()
.
legend.draw()
Returns nothing.
Last updated