Image as button



  • Using the m5stack core2, uiflow, and blockly. Am I missing some obvious way to use an image as a button on the touch screen? I can't find a way to assign an image to a button, nor can I find a way to assign some sort of listener to the image.

    Is my only option to get screen coordinates of a touch? That seems like a handful.



  • Hello @jjshoe

    have you tried to put a button behind a picture? Use the layer value to hide the button behind the picture. Works for me.

    Thanks
    Felix



  • This works great, thanks!