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

fix but not quite yet

git-svn-id: http://svn.net-core.org/repos/t-engine4@5023 51575b47-30f0-44d4-a5cc-537603b46e54
parent d31fed9c
No related branches found
No related tags found
No related merge requests found
......@@ -414,7 +414,13 @@ function _M:mouseEvent(button, x, y, xrel, yrel, bx, by, event)
local citem = nil
for i = 1, #self.dlist do
local item = self.dlist[i]
if item.dh and y >= item.dh - self.mouse.delegate_offset_y then citem = self.dlist[i].src break end
if item.dh and by >= item.dh - self.mouse.delegate_offset_y then citem = self.dlist[i].src break end
end
print("================================")
util.show_backtrace()
for i = 1, #self.dlist do
local item = self.dlist[i]
if item.dh then print("===", y, by, item.dh - self.mouse.delegate_offset_y) end
end
self.on_mouse(citem and citem.login and self.channels[self.cur_channel].users[citem.login], citem and citem.login and citem, button, event, x, y, xrel, yrel, bx, by)
end
......
......@@ -1520,7 +1520,7 @@ function _M:displayChatLog(scale, bx, by)
return
end
profile.chat:mouseEvent(button, mx, my, xrel, yrel, bx, bx, event)
profile.chat:mouseEvent(button, mx, my, xrel, yrel, bx, by, event)
end
game.mouse:registerZone(bx, by, log.w, log.h, desc_fct, nil, "chatlog", true, scale)
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