axmol/cocos/scripting/js-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
chipmunk merge v3.13 back to v3 2016-08-29 11:57:13 +08:00
cocosbuilder Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
cocostudio merge v3.13 back to v3 2016-08-29 11:57:13 +08:00
component Merge part of Cocos2d-x-lite (#16380) 2016-08-19 16:28:47 +08:00
experimental Fix -Wreturn-type warnings when compiling JSB with Clang 2016-06-24 08:48:21 +09:00
extension merge v3.13 back to v3 2016-08-29 11:57:13 +08:00
localstorage merge v3.13 back to v3 2016-08-29 11:57:13 +08:00
navmesh Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
network merge v3.13 back to v3 2016-08-29 11:57:13 +08:00
physics3d Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
platform Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
spine Merge part of Cocos2d-x-lite (#16380) 2016-08-19 16:28:47 +08:00
ui Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
ScriptingCore.cpp Performance tweak: use range-based for-loops instead of iterator-based for-loops. (#16642) 2016-10-11 10:59:44 -07:00
ScriptingCore.h Suppress warning C4101 on MSVC (#16573) 2016-09-14 10:49:14 -07:00
cocos2d_specifics.cpp Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
cocos2d_specifics.hpp Fix implicit conversion warning (#16598) 2016-09-26 14:49:47 +08:00
js-BindingsExport.h update code as comment 2015-11-26 17:39:57 +08:00
js_bindings_config.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
js_bindings_core.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
js_bindings_core.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
js_bindings_opengl.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
js_bindings_opengl.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
js_manual_conversions.cpp Fixes jsval_to_std_string could not convert number to string. (#16504) 2016-09-05 10:02:05 +08:00
js_manual_conversions.h merge v3.13 back to v3 2016-08-29 11:57:13 +08:00
js_module_register.cpp Fix typos in comments and strings 2016-03-29 10:52:17 +09:00
js_module_register.h Fixes 1605 include path in 541 files 2016-03-20 21:53:44 +08:00
jsb_event_dispatcher_manual.cpp Merge part of Cocos2d-x-lite (#16380) 2016-08-19 16:28:47 +08:00
jsb_event_dispatcher_manual.h
jsb_helper.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
jsb_opengl_functions.cpp Fixes 1605 include path in 541 files 2016-03-20 21:53:44 +08:00
jsb_opengl_functions.h Fixes 1605 include path in 541 files 2016-03-20 21:53:44 +08:00
jsb_opengl_manual.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
jsb_opengl_manual.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
jsb_opengl_registration.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
jsb_opengl_registration.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
spidermonkey_specifics.h merge v3.13 back to v3 2016-08-29 11:57:13 +08:00