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

fix example modules

git-svn-id: http://svn.net-core.org/repos/t-engine4@1503 51575b47-30f0-44d4-a5cc-537603b46e54
parent e37ba756
No related branches found
No related tags found
No related merge requests found
......@@ -392,7 +392,7 @@ function _M:setupMouse(reset)
end, {button=true})
-- Use hotkeys with mouse
self.mouse:registerZone(self.hotkeys_display.display_x, self.hotkeys_display.display_y, self.w, self.h, function(button, mx, my, xrel, yrel, bx, by, event)
self.hotkeys_display:onMouse(button, mx, my, event == "button", function(text) self.tooltip:displayAtMap(nil, nil, self.w, self.h, text) end)
self.hotkeys_display:onMouse(button, mx, my, event == "button", function(text) self.tooltip:displayAtMap(nil, nil, self.w, self.h, tostring(text)) end)
end)
self.mouse:setCurrent()
end
......
......@@ -391,7 +391,7 @@ function _M:setupMouse(reset)
end, {button=true})
-- Use hotkeys with mouse
self.mouse:registerZone(self.hotkeys_display.display_x, self.hotkeys_display.display_y, self.w, self.h, function(button, mx, my, xrel, yrel, bx, by, event)
self.hotkeys_display:onMouse(button, mx, my, event == "button", function(text) self.tooltip:displayAtMap(nil, nil, self.w, self.h, text) end)
self.hotkeys_display:onMouse(button, mx, my, event == "button", function(text) self.tooltip:displayAtMap(nil, nil, self.w, self.h, tostring(text)) end)
end)
self.mouse:setCurrent()
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