mirror of https://github.com/axmolengine/axmol.git
42 lines
1012 B
JavaScript
42 lines
1012 B
JavaScript
//
|
|
// cocos2d constants
|
|
//
|
|
// This helper file should be required after jsb_cocos2d.js
|
|
//
|
|
|
|
var cc = cc || {};
|
|
|
|
cc.SCROLLVIEW_DIRECTION_NONE = -1;
|
|
cc.SCROLLVIEW_DIRECTION_HORIZONTAL = 0;
|
|
cc.SCROLLVIEW_DIRECTION_VERTICAL = 1;
|
|
cc.SCROLLVIEW_DIRECTION_BOTH = 2;
|
|
cc.TABLEVIEW_FILL_TOPDOWN = 0;
|
|
cc.TABLEVIEW_FILL_BOTTOMUP = 1;
|
|
|
|
// PhysicsDebugNode
|
|
cc.PhysicsDebugNode.create = function( space ) {
|
|
var s = space;
|
|
if( space.handle !== undefined )
|
|
s = space.handle;
|
|
return cc.PhysicsDebugNode._create( s );
|
|
};
|
|
cc.PhysicsDebugNode.prototype.setSpace = function( space ) {
|
|
var s = space;
|
|
if( space.handle !== undefined )
|
|
s = space.handle;
|
|
return this._setSpace( s );
|
|
};
|
|
|
|
// PhysicsSprite
|
|
cc.PhysicsSprite.prototype.setBody = function( body ) {
|
|
var b = body;
|
|
if( body.handle !== undefined )
|
|
b = body.handle;
|
|
return this._setCPBody( b );
|
|
};
|
|
|
|
cc.ScrollView.extend = cc.Class.extend;
|
|
cc.TableView.extend = cc.Class.extend;
|
|
cc.TableViewCell.extend = cc.Class.extend;
|
|
|