C# Class BBGamelib.CCMenu

Inheritance: CCLayerRGBA
Show file Open project: BigWoodGames/cocos2d-unity Class Usage Examples

Public Methods

Method Description
CCMenu ( ) : UnityEngine
CCMenu ( List arrayOfItems ) : UnityEngine
addChild ( CCNode child, int z, string tag ) : void
alignItemsHorizontally ( ) : void
alignItemsHorizontallyWithPadding ( float padding ) : void
alignItemsInColumns ( ) : void
alignItemsInColumnsWithArray ( int rows ) : void
alignItemsInRows ( ) : void
alignItemsVertically ( ) : void
alignItemsVerticallyWithPadding ( float padding ) : void
ccTouchBegan ( UITouch touch ) : bool
ccTouchCancelled ( UITouch touch ) : void
ccTouchEnded ( UITouch touch ) : void
ccTouchMoved ( UITouch touch ) : void
onExit ( ) : void
setHandlerPriority ( int newPriority ) : void

Protected Methods

Method Description
init ( ) : void
initWithArray ( List arrayOfItems ) : void

Private Methods

Method Description
alignItemsInRowsWithArray ( int columns ) : void
itemForTouch ( UITouch touch ) : CCMenuItem

Method Details

CCMenu() public method

public CCMenu ( ) : UnityEngine
return UnityEngine

CCMenu() public method

public CCMenu ( List arrayOfItems ) : UnityEngine
arrayOfItems List
return UnityEngine

addChild() public method

public addChild ( CCNode child, int z, string tag ) : void
child CCNode
z int
tag string
return void

alignItemsHorizontally() public method

public alignItemsHorizontally ( ) : void
return void

alignItemsHorizontallyWithPadding() public method

public alignItemsHorizontallyWithPadding ( float padding ) : void
padding float
return void

alignItemsInColumns() public method

public alignItemsInColumns ( ) : void
return void

alignItemsInColumnsWithArray() public method

public alignItemsInColumnsWithArray ( int rows ) : void
rows int
return void

alignItemsInRows() public method

public alignItemsInRows ( ) : void
return void

alignItemsVertically() public method

public alignItemsVertically ( ) : void
return void

alignItemsVerticallyWithPadding() public method

public alignItemsVerticallyWithPadding ( float padding ) : void
padding float
return void

ccTouchBegan() public method

public ccTouchBegan ( UITouch touch ) : bool
touch UITouch
return bool

ccTouchCancelled() public method

public ccTouchCancelled ( UITouch touch ) : void
touch UITouch
return void

ccTouchEnded() public method

public ccTouchEnded ( UITouch touch ) : void
touch UITouch
return void

ccTouchMoved() public method

public ccTouchMoved ( UITouch touch ) : void
touch UITouch
return void

init() protected method

protected init ( ) : void
return void

initWithArray() protected method

protected initWithArray ( List arrayOfItems ) : void
arrayOfItems List
return void

onExit() public method

public onExit ( ) : void
return void

setHandlerPriority() public method

public setHandlerPriority ( int newPriority ) : void
newPriority int
return void