C# Class BBGamelib.CCLabelTTF

Inheritance: CCNodeRGBA, CCLabelProtocol
Datei anzeigen Open project: BigWoodGames/cocos2d-unity Class Usage Examples

Public Methods

Method Description
CCLabelTTF ( string text, string fontName, float fontSize ) : UnityEngine
CCLabelTTF ( string text, string fontName, float fontSize, Vector2 dimensions, CCTextAlignment hAlignment = CCTextAlignment.Left, CCVerticalTextAlignment vAlignment = CCVerticalTextAlignment.Top ) : UnityEngine
ToString ( ) : string
getFontName ( string fontName ) : string
updateColor ( ) : void
updateDisplayedColor ( Color32 parentColor ) : void
updateDisplayedOpacity ( byte parentOpacity ) : void
updateTransform ( ) : void

Protected Methods

Method Description
draw ( ) : void
init ( string text, string fontName, float fontSize, Vector2 dimensions, CCTextAlignment hAlignment, CCVerticalTextAlignment vAlignment ) : void
initWithGear ( CCFactoryGear gear ) : void
recycleGear ( ) : void
updateTexture ( ) : bool

Private Methods

Method Description
getLocalbounds ( ) : Bounds

Method Details

CCLabelTTF() public method

public CCLabelTTF ( string text, string fontName, float fontSize ) : UnityEngine
text string
fontName string
fontSize float
return UnityEngine

CCLabelTTF() public method

public CCLabelTTF ( string text, string fontName, float fontSize, Vector2 dimensions, CCTextAlignment hAlignment = CCTextAlignment.Left, CCVerticalTextAlignment vAlignment = CCVerticalTextAlignment.Top ) : UnityEngine
text string
fontName string
fontSize float
dimensions UnityEngine.Vector2
hAlignment CCTextAlignment
vAlignment CCVerticalTextAlignment
return UnityEngine

ToString() public method

public ToString ( ) : string
return string

draw() protected method

protected draw ( ) : void
return void

getFontName() public method

public getFontName ( string fontName ) : string
fontName string
return string

init() protected method

protected init ( string text, string fontName, float fontSize, Vector2 dimensions, CCTextAlignment hAlignment, CCVerticalTextAlignment vAlignment ) : void
text string
fontName string
fontSize float
dimensions UnityEngine.Vector2
hAlignment CCTextAlignment
vAlignment CCVerticalTextAlignment
return void

initWithGear() protected method

protected initWithGear ( CCFactoryGear gear ) : void
gear CCFactoryGear
return void

recycleGear() protected method

protected recycleGear ( ) : void
return void

updateColor() public method

public updateColor ( ) : void
return void

updateDisplayedColor() public method

public updateDisplayedColor ( Color32 parentColor ) : void
parentColor UnityEngine.Color32
return void

updateDisplayedOpacity() public method

public updateDisplayedOpacity ( byte parentOpacity ) : void
parentOpacity byte
return void

updateTexture() protected method

protected updateTexture ( ) : bool
return bool

updateTransform() public method

public updateTransform ( ) : void
return void