axmol/cocos/scripting/lua-bindings/manual
Ricardo Quesada 323ea7c0d4 Sprite scale9 (#16702)
* Adds slice9 support for Sprite.

how to use it:

// points coords
sprite->setCenterRect(Rect(x,y,w,h));

// normalized coords
sprite->setCenterRectNormalized(Rect(x,y,w,h));
starts scale9sprite in sprite

more slice 9 changes

sprite 9 slice works?

kind of works

correct anchor point

slice 9 works, at least with non-rotated atlases

streched works ok

better Y invert code.

cleaner, compatible with the previous code

yay, scaling workings...

need a better api now

sets scale correctly

yay! works as expected!

more fixes and tests

better test for box

setContentSize() changes size in non-9-slice mode sprites as well

setCenterRect() -> setCenterRectNormalized()

yet another test

adds setPositionNormalized()

adds setCenterRect() tests

remove devel team from xcode

tests: add one more tests

fun test!

improved test

yet another test for slice 9

* fixes anchorPoint issues

* adds documentation

* fix: using top-left coordinate for setRect

* sprite: fixes related to scale9 and tiled

* Sprite: slice 9 fixes

works Ok with rotated frames
uses `setCapInsets` instead of `setCenterRect` to be more familiar
with `UIScale9Sprite`

* fixes js and lua bindings for Autopolygon
2016-10-26 18:45:40 -07:00
..
3d Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
audioengine Add tizen support (#15518) 2016-04-28 09:49:55 +08:00
cocos2d Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
cocosbuilder Update CCBProxy.cpp (#16421) 2016-08-23 14:48:06 +08:00
cocosdenshion Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
cocostudio Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
controller Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
extension Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
navmesh Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
network Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
physics3d Fixes 1605 include path in 541 files 2016-03-20 21:53:44 +08:00
platform fix the problem in ccUTF8.cpp and CCLuaJavaBridge.cpp (#16314) 2016-08-08 10:43:14 +08:00
spine Adds Spine binary-file format support (#16629) 2016-10-11 10:56:14 -07:00
ui Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
video Fixes 1605 include path in 541 files 2016-03-20 21:53:44 +08:00
CCComponentLua.cpp Remove include of cocos2d.h (#15435) 2016-04-18 15:09:21 +08:00
CCComponentLua.h Remove ScriptComponent 2015-09-27 22:18:59 +08:00
CCLuaBridge.cpp Fixes 1605 include path in 541 files 2016-03-20 21:53:44 +08:00
CCLuaBridge.h Fixes 1605 include path in 541 files 2016-03-20 21:53:44 +08:00
CCLuaEngine.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLuaEngine.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLuaStack.cpp Move skipBOM function outside to prevent shadowing warning (#16585) 2016-09-20 14:52:15 +08:00
CCLuaStack.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLuaValue.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLuaValue.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
Cocos2dxLuaLoader.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
Cocos2dxLuaLoader.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
Lua-BindingsExport.h Combine studio change for LuaBinding, jsb and simulator 2015-11-25 21:52:44 +08:00
LuaBasicConversions.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
LuaBasicConversions.h Fix typos in doc: accpetable / accepteable -> acceptable (#16641) 2016-10-04 22:08:56 -07:00
lua_module_register.cpp Fix typos in documentation and comments 2016-07-22 02:05:19 +09:00
lua_module_register.h Fixes 1605 include path in 541 files 2016-03-20 21:53:44 +08:00
tolua_fix.cpp Fix typos in comments and strings 2016-03-29 10:52:17 +09:00
tolua_fix.h Fix typos in documentation 2015-11-03 04:43:44 +09:00