So I have a lot of buttons in my game made using shape construction. They are mostly implemented like this:
playBtn = widget.newButton{ label = "Play Now", shape = "rect", width = 154, height = 40, onRelease = onPlayBtnRelease, font = gameSettings.defaultFont, strokeWidth = 2, strokeColor = { default = gameSettings.buttonStroke, over = gameSettings.buttonOverStroke}, fillColor = { default = gameSettings.fill, over = gameSettings.fill }, labelColor = { default = gameSettings.buttonStroke, over = gameSettings.buttonOverStroke}, }
I’ve had an issue with tap detection on these buttons, however. I’ve noticed that they only detect taps when the label is taped, not when the rest of the rectangle is taped. Is this normal? What would y’all recommend to fix it?
Thanks in advance!