Skip to content
Snippets Groups Projects
Commit ff95789d authored by dg's avatar dg
Browse files

Fixed levelup screen

git-svn-id: http://svn.net-core.org/repos/t-engine4@5306 51575b47-30f0-44d4-a5cc-537603b46e54
parent 25eb372a
No related branches found
No related tags found
No related merge requests found
......@@ -186,14 +186,14 @@ function _M:generate()
if not done then game.tooltip_x = nil self.last_mz = nil end
end)
self.key:addBinds{
ACCEPT = function() self:onUse(self.last_mz.item, true) end,
ACCEPT = function() if self.last_mz then self:onUse(self.last_mz.item, true) end end,
MOVE_UP = function() self:moveSel(-1, 0) end,
MOVE_DOWN = function() self:moveSel(1, 0) end,
MOVE_LEFT = function() self:moveSel(0, -1) end,
MOVE_RIGHT = function() self:moveSel(0, 1) end,
}
self.key:addCommands{
[{"_RETURN","ctrl"}] = function() self:onUse(self.last_mz.item, false) end,
[{"_RETURN","ctrl"}] = function() if self.last_mz then self:onUse(self.last_mz.item, false) end end,
[{"_UP","ctrl"}] = function() self.key:triggerVirtual("MOVE_UP") end,
[{"_DOWN","ctrl"}] = function() self.key:triggerVirtual("MOVE_DOWN") end,
[{"_LEFT","ctrl"}] = function() self.key:triggerVirtual("MOVE_LEFT") end,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment