axmol/cocos/scripting/js-bindings
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
..
auto [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (#16676) 2016-10-11 11:40:11 -07:00
manual Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
proj.android fix compiling and linking error with ndk r12b 2016-07-08 15:29:35 +08:00
proj.ios_mac/cocos2d_js_bindings.xcodeproj Squashed commit of the following: 2016-02-29 13:53:00 -08:00
proj.win8.1-universal/libjscocos2d Removed unnecessary search paths. 2016-03-22 16:04:12 +08:00
proj.win32 Removed unnecessary search paths. 2016-03-22 16:04:12 +08:00
script Fix typos in local variables (#16712) 2016-10-20 18:17:37 +08:00
.gitignore Update js bindings & js tests. 2015-05-05 10:50:19 +08:00
CMakeLists.txt Removed unnecessary search paths. 2016-03-22 16:04:12 +08:00
README.md Update js bindings & js tests. 2015-05-05 10:50:19 +08:00

README.md

js-bindings

This repo is used for js bindings.