axmol/cocos/2d
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
..
libcocos2d_8_1 updated libcocos2d dll version to 3.13.1 (#16542) 2016-09-08 10:38:16 +08:00
libcocos2d_win10 updated libcocos2d dll version to 3.13.1 (#16542) 2016-09-08 10:38:16 +08:00
win10_props added missing _USRJSSTATIC preprocessor define (#15438) 2016-04-18 15:10:35 +08:00
winrt_8.1_props added missing _USRJSSTATIC preprocessor define (#15438) 2016-04-18 15:10:35 +08:00
wp_8.1_props
CCAction.cpp Move StringUtils functions from deprecated header file to ccUTF8.h (#15835) 2016-06-15 15:01:26 +08:00
CCAction.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCActionCamera.cpp Fix compile error isnan -> std::isnan #15111 2016-04-27 13:15:08 +02:00
CCActionCamera.h Removed unnecessary comments (#16649) 2016-10-07 11:47:48 -07:00
CCActionCatmullRom.cpp Fix unused parameter warning 2016-06-02 15:30:24 +09:00
CCActionCatmullRom.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCActionEase.cpp fixed #16737: NodeTest (stress test #2: no leaks) is broken. (#16741) 2016-10-26 15:54:01 +08:00
CCActionEase.h fixed #16737: NodeTest (stress test #2: no leaks) is broken. (#16741) 2016-10-26 15:54:01 +08:00
CCActionGrid.cpp Avoid unnecessary allocation if targetGrid is reusable (#16343) 2016-08-15 14:07:37 +08:00
CCActionGrid.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCActionGrid3D.cpp Use const references whenever possible 2016-05-17 13:17:56 +09:00
CCActionGrid3D.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCActionInstant.cpp Refine 'CCActionXXXX' (#15319) 2016-04-08 13:40:36 +08:00
CCActionInstant.h Removed unnecessary comments (#16649) 2016-10-07 11:47:48 -07:00
CCActionInterval.cpp new actions ResizeBy and ResizeTo (#16275) 2016-08-16 16:55:31 +08:00
CCActionInterval.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCActionManager.cpp Fix typos in documentation and comments 2016-05-05 08:05:20 +09:00
CCActionManager.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCActionPageTurn3D.cpp Add missing float suffix to avoid -Wdouble-promotion 2016-07-04 23:12:45 +09:00
CCActionPageTurn3D.h Refine 'CCActionXXXX' (#15319) 2016-04-08 13:40:36 +08:00
CCActionProgressTimer.cpp Refine 'CCActionXXXX' (#15319) 2016-04-08 13:40:36 +08:00
CCActionProgressTimer.h Refine 'CCActionXXXX' (#15319) 2016-04-08 13:40:36 +08:00
CCActionTiledGrid.cpp use std::srand() instead 2016-07-11 11:17:28 +08:00
CCActionTiledGrid.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCActionTween.cpp Refine 'CCActionXXXX' (#15319) 2016-04-08 13:40:36 +08:00
CCActionTween.h Refine 'CCActionXXXX' (#15319) 2016-04-08 13:40:36 +08:00
CCAnimation.cpp Refine 'CCActionXXXX' (#15319) 2016-04-08 13:40:36 +08:00
CCAnimation.h Fix typos in documentation and comments 2016-06-22 11:22:05 +09:00
CCAnimationCache.cpp Refine 'CCActionXXXX' (#15319) 2016-04-08 13:40:36 +08:00
CCAnimationCache.h Refine 'CCActionXXXX' (#15319) 2016-04-08 13:40:36 +08:00
CCAtlasNode.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCAtlasNode.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCAutoPolygon.cpp Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
CCAutoPolygon.h Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
CCCamera.cpp Fixed Camera::_viewProjectionUpdated state (#16405) 2016-08-24 18:15:19 +08:00
CCCamera.h Fix typos in documentation and comments 2016-06-22 11:22:05 +09:00
CCCameraBackgroundBrush.cpp Bug fix & make test case more clear. 2015-12-07 18:36:28 +08:00
CCCameraBackgroundBrush.h Merge pull request #14502 from xiaofeng11/v3_combine_2d 2015-12-04 16:05:24 +08:00
CCClippingNode.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCClippingNode.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCClippingRectangleNode.cpp Fixes 1605 include path in 541 files 2016-03-20 21:53:44 +08:00
CCClippingRectangleNode.h Remove unnecessary const from return types 2016-02-29 16:48:07 +09:00
CCComponent.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCComponent.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCComponentContainer.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCComponentContainer.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCDrawNode.cpp Remove unused functions (#16640) 2016-10-04 22:10:52 -07:00
CCDrawNode.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCDrawingPrimitives.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCDrawingPrimitives.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCFastTMXLayer.cpp update visibleTiles rect (#16331) 2016-10-17 14:27:38 +08:00
CCFastTMXLayer.h Remove extra semicolon after member function definition (#16595) 2016-09-20 14:43:48 +08:00
CCFastTMXTiledMap.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCFastTMXTiledMap.h Remove extra semicolon after member function definition (#16595) 2016-09-20 14:43:48 +08:00
CCFont.cpp Improve coding style 2015-07-30 11:33:18 +08:00
CCFont.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCFontAtlas.cpp Fix typos in comments and strings (#16708) 2016-10-17 10:12:54 +08:00
CCFontAtlas.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCFontAtlasCache.cpp refine 2016-03-25 21:21:09 +08:00
CCFontAtlasCache.h Refine 'CCFontXXXX' 2016-03-24 23:05:22 +08:00
CCFontCharMap.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCFontCharMap.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCFontFNT.cpp issue #16661: Replace c style uthash with std::unordered_map<K, V> in CCFontFNT.cpp (#16662) 2016-10-17 13:53:54 +08:00
CCFontFNT.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCFontFreeType.cpp fixed #16652: FontFreeType crashes in its destructor. (#16684) 2016-10-14 17:49:36 +08:00
CCFontFreeType.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCGLBufferedNode.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCGLBufferedNode.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCGrabber.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCGrabber.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCGrid.cpp Remove redundant semicolons (#16558) 2016-09-12 09:45:34 +08:00
CCGrid.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCLabel.cpp Refactoring ui related code and fix label atlas and BMFont rendering issue with ETC1 texture format (#16615) 2016-09-30 09:42:21 +08:00
CCLabel.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLabelAtlas.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLabelAtlas.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLabelBMFont.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLabelBMFont.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLabelTTF.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLabelTTF.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLabelTextFormatter.cpp Remove redundant semicolons (#16558) 2016-09-12 09:45:34 +08:00
CCLabelTextFormatter.h Label:refine the implementation about text layout and support debug draw 2015-07-24 18:38:45 +08:00
CCLayer.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLayer.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCLight.cpp
CCLight.h Fix documentation when compile with -Wdocumentation and Clang 2016-07-10 17:38:32 +09:00
CCMenu.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCMenu.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCMenuItem.cpp Fix MenuItemSprite::unselected() on disabled items showing _normalImage instead of _disabledImage (#16482) 2016-09-02 09:51:47 +08:00
CCMenuItem.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCMotionStreak.cpp merge v3.13 back to v3 2016-08-29 11:57:13 +08:00
CCMotionStreak.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCNode.cpp Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
CCNode.h Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
CCNodeGrid.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCNodeGrid.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCParallaxNode.cpp Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCParallaxNode.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCParticleBatchNode.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCParticleBatchNode.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCParticleExamples.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCParticleExamples.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCParticleSystem.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCParticleSystem.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCParticleSystemQuad.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCParticleSystemQuad.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCProgressTimer.cpp merge v3.13 back to v3 2016-08-29 11:57:13 +08:00
CCProgressTimer.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCProtectedNode.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCProtectedNode.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCRenderTexture.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCRenderTexture.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCScene.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCScene.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCSprite.cpp Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
CCSprite.h Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
CCSpriteBatchNode.cpp fix: not resize textureatlas multiple times on Label::create() (#16358) 2016-08-13 09:38:42 -07:00
CCSpriteBatchNode.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCSpriteFrame.cpp Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
CCSpriteFrame.h Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
CCSpriteFrameCache.cpp Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
CCSpriteFrameCache.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCTMXLayer.cpp Fix mismatched memory deallocators (#16596) 2016-09-26 14:18:48 +08:00
CCTMXLayer.h Remove extra semicolon after member function definition (#16595) 2016-09-20 14:43:48 +08:00
CCTMXObjectGroup.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCTMXObjectGroup.h Remove extra semicolon after member function definition (#16595) 2016-09-20 14:43:48 +08:00
CCTMXTiledMap.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCTMXTiledMap.h Remove extra semicolon after member function definition (#16595) 2016-09-20 14:43:48 +08:00
CCTMXXMLParser.cpp Fix implicit conversion warning (#16598) 2016-09-26 14:49:47 +08:00
CCTMXXMLParser.h Fix implicit conversion warning (#16598) 2016-09-26 14:49:47 +08:00
CCTextFieldTTF.cpp #Fix use const std::string& instead a temp string (#16392) 2016-08-22 09:43:41 +08:00
CCTextFieldTTF.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCTileMapAtlas.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCTileMapAtlas.h Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
CCTransition.cpp Remove unnecessary ActionInterval casts (#16402) 2016-08-22 09:39:58 +08:00
CCTransition.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCTransitionPageTurn.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCTransitionPageTurn.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCTransitionProgress.cpp Remove unnecessary ActionInterval casts (#16402) 2016-08-22 09:39:58 +08:00
CCTransitionProgress.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCTweenFunction.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CCTweenFunction.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
CMakeLists.txt Refactor BackGround to Background 2015-08-21 10:43:59 +08:00
cocos2d.def
cocos2d_headers.props Removed unnecessary search paths. 2016-03-22 16:04:12 +08:00
cocos2dx.props updated version to v3-deps-70 2015-07-21 16:43:47 +08:00
libcocos2d.vcxproj Win32 move unicode utils global. (#16234) 2016-07-28 09:57:29 +08:00
libcocos2d.vcxproj.filters Win32 move unicode utils global. (#16234) 2016-07-28 09:57:29 +08:00