Commit Graph

14337 Commits

Author SHA1 Message Date
Huabing.Xu a8d2ae9eda Merge branch 'develop' into develop_transitionScene
* develop:
  [AUTO] : updating submodule reference to latest autogenerated bindings
  closed #3463: Potential hash collision by using typeid(T).hash_code() in JSB and LuaBinding. Instead of using std::unordered_map<long, T>(long is the hash_code generated by typeid(T).hash_code()), We needs to use std::unordered_map<std::string, T> to avoid collision since unordered_map internally processes collisions.
  Update CHANGELOG [ci skip]
  Update AUTHORS [ci skip]
  closed #3457: Fix of UserDefault. Infinite loop in UserDefault's destructor on iOS. The destructor of UserDefault is private now.
  [AUTO] : updating submodule reference to latest autogenerated bindings
  Fixed non-functioning default value for CCUserDefault::getDoubleForKey()
2013-12-20 19:15:50 +08:00
James Chen ab7cee26cc Merge pull request #4575 from CocosRobot/updategeneratedsubmodule_1387532101
[AUTO] : updating submodule reference to latest autogenerated bindings
2013-12-20 01:35:39 -08:00
CocosRobot f3d3e65e76 [AUTO] : updating submodule reference to latest autogenerated bindings 2013-12-20 09:35:05 +00:00
James Chen 5751995e2e Merge pull request #4574 from dumganhar/hash_code-fix
closed #3463: Potential hash collision by using typeid(T).hash_code() in JSB and LuaBinding.
2013-12-20 01:27:50 -08:00
James Chen 55ff96df3a closed #3463: Potential hash collision by using typeid(T).hash_code() in JSB and LuaBinding.
Instead of using std::unordered_map<long, T>(long is the hash_code generated by typeid(T).hash_code()),
We needs to use std::unordered_map<std::string, T> to avoid collision since unordered_map internally processes collisions.
2013-12-20 17:13:09 +08:00
James Chen 4fe74c84bc Update CHANGELOG [ci skip] 2013-12-20 16:15:02 +08:00
James Chen db542d751e Update AUTHORS [ci skip] 2013-12-20 16:14:15 +08:00
James Chen e54c993918 Merge pull request #4564 from dmurtagh/UserDefault_GetDouble_Fix_For_Android
Fixed non-functioning default value for CCUserDefault::getDoubleForKey()
2013-12-20 00:13:05 -08:00
Huabing.Xu ef5b072182 fix transition scene CrossFade 2013-12-20 14:38:02 +08:00
minggo d3e7ccd872 Merge pull request #4571 from dumganhar/user-default-fix
closed #3457: Fix of UserDefault. Infinite loop in UserDefault's destructor on iOS. The destructor of UserDefault is private now.
2013-12-19 22:16:02 -08:00
James Chen 2c590cea3e closed #3457: Fix of UserDefault. Infinite loop in UserDefault's destructor on iOS. The destructor of UserDefault is private now. 2013-12-20 14:06:24 +08:00
Huabing.Xu 87f62bc8a0 Merge branch 'develop' into develop_transitionScene
* develop:
  #include <string> in CCComponentContainer.h to fix linux build failure.
  #include <algorithm> for std::find in CCVector.h.
  const love in CCFileUtils.cpp.
  More std::for_each —> for(const auto& …)
2013-12-20 12:45:22 +08:00
minggo ea751f8f1f Merge pull request #4568 from dabingnn/develop_transitionScene
fix transition scene progress timer
2013-12-19 19:06:06 -08:00
minggo 2769a2cc2c Merge pull request #4569 from CocosRobot/updategeneratedsubmodule_1387508214
[AUTO] : updating submodule reference to latest autogenerated bindings
2013-12-19 19:05:38 -08:00
CocosRobot 8c0d74bb33 [AUTO] : updating submodule reference to latest autogenerated bindings 2013-12-20 02:56:57 +00:00
Huabing.Xu 9385fb3481 fix transition scene progress timer 2013-12-20 10:53:35 +08:00
James Chen e56a4a7c00 Merge pull request #4567 from dumganhar/for_each-gone
All std::for_each has gone. uses for(const auto& ...) instead.
2013-12-19 18:50:50 -08:00
James Chen a53f00c579 #include <string> in CCComponentContainer.h to fix linux build failure. 2013-12-20 10:41:29 +08:00
minggo 756f8f7a11 Merge pull request #4482 from dabingnn/develop_gridNode
Develop grid node
2013-12-19 18:30:42 -08:00
James Chen 3dba88c5c9 #include <algorithm> for std::find in CCVector.h. 2013-12-20 10:12:07 +08:00
James Chen 58772d7dec const love in CCFileUtils.cpp. 2013-12-20 10:11:41 +08:00
James Chen 34382b4a8a More std::for_each —> for(const auto& …) 2013-12-20 09:54:50 +08:00
Ricardo Quesada 72e02e3046 Merge pull request #4566 from ricardoquesada/spritebatchnode_fixes
batched children work as expected
2013-12-19 16:34:23 -08:00
Ricardo Quesada f5d0d1ce43 batched children work as expected
Fixed order in the multi matrix.
2013-12-19 16:33:47 -08:00
Ricardo Quesada 1163d23692 Merge pull request #4565 from ricardoquesada/std_for_each_gone
replaces std::for_each with for()
2013-12-19 13:35:12 -08:00
Ricardo Quesada 59fee6b8d2 replaces std::for_each with for()
replaces `std::for_each` with C++11 `for( : )`
2013-12-19 13:34:41 -08:00
Damien 52c66a678c Fixed non-functioning default value for CCUserDefault::getDoubleForKey()
- defaultValue was not being passed into the JNI CallStaticDoubleMethod
method previously.
-  CCUserDefault::getDoubleForKey() would return undefined garbage when
the key doesn’t exist.
Test Case:
Call the following from anywhere in your code (in release
configuration). X will be garbage.
Call the following from your code:
double x =
CCUserDefault::sharedUserDefault()->getDoubleForKey("Some-Non-existant-k
ey-1234", 0);
CCLOG("x = %4.2f", x);

Fix Tested on Android. Affects Android only.
2013-12-19 12:32:51 -08:00
Ricardo Quesada eb6bfbaf0e Merge pull request #4563 from ricardoquesada/compiler_warning_fixes
fixes compiler warnings
2013-12-19 12:24:18 -08:00
Ricardo Quesada 99ae4d86d3 fixes compiler warnings
* converts some `int` to `ssize_t`
* adds `const` to `title()` and `subtitle()`
2013-12-19 12:23:42 -08:00
Huabing.Xu 61cf9e49eb change TransitionPageTurn::_outSceneProxy when class construction instead of onEnter 2013-12-19 22:01:32 +08:00
Huabing.Xu 517fec4de7 change TransitionTurnOffTiles::_outSceneProxy when class construction instead of onEnter 2013-12-19 21:49:21 +08:00
Huabing.Xu 034e1152e5 minor change accord to cocos2d coding style 2013-12-19 21:41:07 +08:00
Huabing.Xu 9fec597ff3 remove unreachable code 2013-12-19 21:36:44 +08:00
James Chen cfec4d5b7e Updates spine test. 2013-12-19 21:35:43 +08:00
James Chen 92dba007c7 Merge pull request #4561 from CocosRobot/updategeneratedsubmodule_1387458802
[AUTO] : updating submodule reference to latest autogenerated bindings
2013-12-19 05:14:25 -08:00
CocosRobot 982d5626fc [AUTO] : updating submodule reference to latest autogenerated bindings 2013-12-19 13:13:34 +00:00
James Chen df85ba8fd9 Merge commit 'refs/pull/4545/head' of git://github.com/cocos2d/cocos2d-x into new-spine
Conflicts:
	cocos/editor-support/spine/CCSkeleton.h
2013-12-19 21:07:24 +08:00
James Chen ec0bdf06af Merge pull request #4555 from 2youyouo2/develop
fixed armature position not right
2013-12-19 05:05:25 -08:00
James Chen a40e47d227 Update CHANGELOG [ci skip] 2013-12-19 20:57:57 +08:00
James Chen eaa8a61de8 Merge pull request #4560 from CocosRobot/updategeneratedsubmodule_1387457638
[AUTO] : updating submodule reference to latest autogenerated bindings
2013-12-19 04:56:08 -08:00
CocosRobot fc1516aee4 [AUTO] : updating submodule reference to latest autogenerated bindings 2013-12-19 12:54:14 +00:00
James Chen 3b6043ce6e Update AUTHORS [ci skip] 2013-12-19 20:50:05 +08:00
James Chen c00bf38ab3 Merge pull request #4559 from dumganhar/more_container_bind
[Scripting] Supports to bind more container: std::vector<std::string>, std::vector<int>, cocos2d::Map<std::string, T>.
2013-12-19 04:46:23 -08:00
James Chen 3dc052db4f Fixes linux and windows building failure. 2013-12-19 20:32:22 +08:00
James Chen 755d29b0e1 Merge branch 'develop' of git://github.com/cocos2d/cocos2d-x into more_container_bind 2013-12-19 20:17:54 +08:00
James Chen f73e939b57 Supports to bind more container: std::vector<std::string>, std::vector<int>, cocos2d::Map<std::string, T>. 2013-12-19 20:17:44 +08:00
James Chen 6aa8b779f0 Updates submodule reference of Bindings-generator, it supports to bind std::vector<std::string> ,std::vector<int>, cocos2d::Map<std::string, T> now. 2013-12-19 20:16:18 +08:00
minggo 524f2867d8 Merge pull request #4558 from CocosRobot/updategeneratedsubmodule_1387447945
[AUTO] : updating submodule reference to latest autogenerated bindings
2013-12-19 03:17:12 -08:00
CocosRobot 8421d43195 [AUTO] : updating submodule reference to latest autogenerated bindings 2013-12-19 10:12:28 +00:00
minggo 54dfa1bb00 Merge pull request #4447 from boyu0/bug3162_opacity_incorrect
Bug #3162: Merge Node and NodeRGBA, fix opacity incorrect bug.
2013-12-19 02:06:15 -08:00