Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: nacltoons/data/res/editor.lua

Issue 15070003: [nacltoons] Add compound shapes. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nacltoons/data/res/editor.lua
diff --git a/nacltoons/data/res/editor.lua b/nacltoons/data/res/editor.lua
index 5d495e6c8a79fd39b580cc1b72e3e87d49047281..354cff55f76eab28c743e45c5318e28a9f7e2731 100644
--- a/nacltoons/data/res/editor.lua
+++ b/nacltoons/data/res/editor.lua
@@ -79,6 +79,10 @@ end
function object_handlers.OnTouchMoved(self, x, y, tapcount)
local delta = ccp(x - touch_pos.x, y - touch_pos.y)
+ util.Log('on touch moved ' .. self.node:getTag())
+ x = self.node:getPositionX()
binji 2013/05/10 16:59:01 does this do anything?
Sam Clegg 2013/05/15 20:18:43 Done.
Sam Clegg 2013/05/15 20:18:43 Done.
+ y = self.node:getPositionY()
+
self.node:setPosition(ccp(start_pos.x + delta.x, start_pos.y + delta.y))
end

Powered by Google App Engine
This is Rietveld 408576698