A overlay for the UI that shows what each key does
Same as before. Pass the tinyPillow object aswell as a dictionary object for the keys.
tinyPillow
legend = tpil.gui.keyLegend(tpil, {"left": "Go Back", "right": "Next"})
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().
.draw()
legend.draw()
Returns nothing.
Last updated 1 year ago