axmol/cocos
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
..
2d Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
3d Fix typos in local variables (#16712) 2016-10-20 18:17:37 +08:00
audio Fix bug when app paused the music is still resumed to play after interruption completed. (#16679) 2016-10-12 15:48:27 +08:00
base Fix typos in local variables (#16712) 2016-10-20 18:17:37 +08:00
deprecated Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
editor-support Fix typos in comments and strings (#16708) 2016-10-17 10:12:54 +08:00
math Remove unnecessary const return qualifiers (#16671) 2016-10-11 09:33:05 +08:00
navmesh Android pixel fixes (#16694) 2016-10-17 15:44:41 +08:00
network Fix typos in local variables (#16712) 2016-10-20 18:17:37 +08:00
physics Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
physics3d Fix typos and other mistakes in docs 2016-07-04 00:42:10 +09:00
platform Fix typos in comments and strings (#16708) 2016-10-17 10:12:54 +08:00
renderer Removes unused 'return' letter in builtin shaders. (#16742) 2016-10-26 16:03:08 +08:00
scripting Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
storage Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
ui Remove unnecessary const return qualifiers (#16671) 2016-10-11 09:33:05 +08:00
vr Suppress unused function warning (#16657) 2016-10-08 10:14:58 +08:00
Android.mk Android import cpufeatures in cocos. (#16233) 2016-07-31 22:45:30 +08:00
CMakeLists.txt Fix LNK4098 and LNK2001 warnings (#16372) 2016-08-22 15:50:17 +08:00
cc_dummy.c Squashed commit of the following: 2016-03-02 16:51:54 -08:00
cocos2d.cpp merge v3.13.1 back to v3 2016-09-15 10:08:28 +08:00
cocos2d.h merge v3.13.1 back to v3 2016-09-15 10:08:28 +08:00