CCPixelLabel
CCPixelLabel
Cocos2DInheritance: System.Object → Cocos2D.CCNode
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}
Constructors
CCPixelLabel(string, string, float)
CCPixelLabel(string, string, float)(System.String text, System.String fontName, System.Single fontSize)Parameters:
text (System.String)fontName (System.String)fontSize (System.Single)CCPixelLabel(string, string, float, CCTextAlignment, bool, int)
CCPixelLabel(string, string, float, CCTextAlignment, bool, int)(System.String text, System.String fontName, System.Single fontSize, Cocos2D.CCTextAlignment alignment, System.Boolean antialiased, System.Int32 maxChars)Parameters:
text (System.String)fontName (System.String)fontSize (System.Single)alignment (Cocos2D.CCTextAlignment)antialiased (System.Boolean)maxChars (System.Int32)Properties
Alignment(Cocos2D.CCTextAlignment)
CharHeight(System.Single)
Color(Cocos2D.CCColor3B)
FontName(System.String)
FontSize(System.Single)
IsAntialiased(System.Boolean)
Opacity(System.Byte)
Text(System.String)
Methods
CacheCharacters(string)
CacheCharacters(string)(System.String characters)Parameters:
characters (System.String)MeasureString(string)
System.Single MeasureString(string)(System.String text)Parameters:
text (System.String)Returns:
System.SinglePurgeCachedData()
PurgeCachedData()()SetMaxChars(int)
SetMaxChars(int)(System.Int32 maxChars)Parameters:
maxChars (System.Int32)