[SOLVED] showMessageBox button choice always returns -1
Posted: Sun Apr 17, 2016 3:41 pm
HOW TO FIX : Compile and install the last commited version from the official bitbucket : https://bitbucket.org/rude/love
Hi everyone
I'm currently trying to show a message box so the user can make a choice. This is my code :
But whatever button I press, pressedButton seems to always be set to -1. This is my first lua project, so it may be a stupid mistake, but the box does show up and every thing seems to be working, except for the return value.
I tried to search on this forum but I saw no post about showMessageBox returing -1. The wiki doesn't even aknowledge this as possible return value.
Did I do something very stupid or is this a bug ?
EDIT: Forgot to give some infos about my setup:
I'm on archlinux, using i3
I installed lua and löve via yaourt, so they are up-to-date
Hi everyone
I'm currently trying to show a message box so the user can make a choice. This is my code :
Code: Select all
local buttons = {"Yes", "No", escapebutton = 2, enterbutton = 1}
local pressedButton = love.window.showMessageBox("Make a choice", "Your choice ?", buttons)
print(pressedButton)
I tried to search on this forum but I saw no post about showMessageBox returing -1. The wiki doesn't even aknowledge this as possible return value.
Did I do something very stupid or is this a bug ?
EDIT: Forgot to give some infos about my setup:
I'm on archlinux, using i3
I installed lua and löve via yaourt, so they are up-to-date