axmol/cocos/scripting/lua-bindings/manual/cocos2d
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
..
LuaOpengl.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
LuaOpengl.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
LuaScriptHandlerMgr.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
LuaScriptHandlerMgr.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
lua_cocos2dx_deprecated.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
lua_cocos2dx_deprecated.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
lua_cocos2dx_experimental_manual.cpp Remove include of cocos2d.h (#15435) 2016-04-18 15:09:21 +08:00
lua_cocos2dx_experimental_manual.hpp Split luabindings module to some independent modules 2014-07-31 15:20:23 +08:00
lua_cocos2dx_manual.cpp Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
lua_cocos2dx_manual.hpp Remove include of cocos2d.h (#15435) 2016-04-18 15:09:21 +08:00
lua_cocos2dx_physics_manual.cpp Fix spelling for `getPolygonCenter` function 2016-07-19 08:24:22 +09:00
lua_cocos2dx_physics_manual.hpp Remove include of cocos2d.h (#15435) 2016-04-18 15:09:21 +08:00