Closed iddm closed 7 years ago
Okay, I understand. This happened because luigi
menu hooked escape
event but left other keys to work normally. Removing the menu from the layout or changing key
check to anything else but escape
makes it work.
But calling these functions does not hide the layout actually.. So, I am able to call the functions, but self.layout:hide()
does not hide it, it remains on the screen.
Again, my fail. The code was not calling this delegate directly.
I want to implement my options dialog in my game with using luigi. Here is what I have:
And the
layout.options
is the copy ofexample/layout/main.lua
file. Everything works fine (it shows) then I call "draw" ofOptions
object but I don't see any way to hide it. I want to be able to hide it by pressingescape
as you can see in theOptions:keypressed
method.P.S. If you are interested in my
keypressed
,draw
methods - they are simply a delegates oflove.keypressed
,love.draw
and other functions; I use custom stacked-view widget which passes it's top value to thelove
and it's top object's functions are called.