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