From 6c1e73a48c014456b8a386b3a3bcea1436f4e0a4 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Mon, 3 Dec 2012 20:11:06 +0000 Subject: [PATCH] fix levleup git-svn-id: http://svn.net-core.org/repos/t-engine4@5883 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/dialogs/elements/TalentTrees.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/game/modules/tome/dialogs/elements/TalentTrees.lua b/game/modules/tome/dialogs/elements/TalentTrees.lua index 3ce20f413d..0ef2276cb5 100644 --- a/game/modules/tome/dialogs/elements/TalentTrees.lua +++ b/game/modules/tome/dialogs/elements/TalentTrees.lua @@ -151,10 +151,10 @@ function _M:generate() [{"_RETURN","ctrl"}] = function() if self.last_mz then self:onUse(self.last_mz.item, false) end end, [{"_UP","ctrl"}] = function() self.last_input_was_keyboard = false if self.scrollbar then self.scroll_inertia = math.min(self.scroll_inertia, 0) - 5 end end, [{"_DOWN","ctrl"}] = function() self.last_input_was_keyboard = false if self.scrollbar then self.scroll_inertia = math.max(self.scroll_inertia, 0) + 5 end end, - _HOME = function() if self.scrollbar then self.scrollbar.pos = 0 end end, - _END = function() if self.scrollbar then self.scrollbar.pos = self.scrollbar.max end end, - _PAGEUP = function() if self.scrollbar then self.scrollbar.pos = util.minBound(self.scrollbar.pos - self.h, 0, self.scrollbar.max) end end, - _PAGEDOWN = function() if self.scrollbar then self.scrollbar.pos = util.minBound(self.scrollbar.pos + self.h, 0, self.scrollbar.max) end end, + _HOME = function() if self.scrollbar then self.scrollbar.pos = 0 self.last_input_was_keyboard = true self:moveSel(0, 0) end end, + _END = function() if self.scrollbar then self.scrollbar.pos = self.scrollbar.max self.last_input_was_keyboard = true self:moveSel(0, 0) end end, + _PAGEUP = function() if self.scrollbar then self.scrollbar.pos = util.minBound(self.scrollbar.pos - self.h, 0, self.scrollbar.max) self.last_input_was_keyboard = true self:moveSel(0, 0) end end, + _PAGEDOWN = function() if self.scrollbar then self.scrollbar.pos = util.minBound(self.scrollbar.pos + self.h, 0, self.scrollbar.max) self.last_input_was_keyboard = true self:moveSel(0, 0) end end, _SPACE = function() if self.last_mz and self.last_mz.item.type then self:onExpand(self.last_mz.item) end end } end -- GitLab