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

corretly update tooltip

git-svn-id: http://svn.net-core.org/repos/t-engine4@3560 51575b47-30f0-44d4-a5cc-537603b46e54
parent bd0d1c49
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ function _M:interact(who, name)
return self:descObject(who, what, o)
end, function(what, o)
return self:descObjectPrice(who, what, o)
end, self.allow_sell, self.allow_buy, function(item) self:on_select(item) end)
end, self.allow_sell, self.allow_buy, function(item) end)
game:registerDialog(d)
end
......
......@@ -366,6 +366,7 @@ function _M:setFocus(id)
self.focus_ui = ui
self.focus_ui_id = id
ui.ui:setFocus(true)
self:on_focus(id, ui)
end
function _M:moveUIElement(id, left, right, top, bottom)
......@@ -401,7 +402,6 @@ function _M:moveFocus(v)
while start ~= id and cnt <= #self.uis do
if self.uis[id].ui.can_focus then
self:setFocus(id)
self:on_focus(id, self.uis[id].ui)
break
end
id = util.boundWrap(id + v, 1, #self.uis)
......
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