Skip to main content

CCLabelBMFont

CCLabelBMFont

Cocos2D

Inheritance: System.Object → Cocos2D.CCNode → Cocos2D.CCSpriteBatchNode

Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCTextureProtocol, Cocos2D.ICCBlendProtocol, Cocos2D.ICCLabelProtocol, Cocos2D.ICCRGBAProtocol

Constructors

CCLabelBMFont()

CCLabelBMFont()()

CCLabelBMFont(string, string)

CCLabelBMFont(string, string)(System.String str, System.String fntFile)
Parameters:
str (System.String)
fntFile (System.String)

CCLabelBMFont(string, string, float)

CCLabelBMFont(string, string, float)(System.String str, System.String fntFile, System.Single width)
Parameters:
str (System.String)
fntFile (System.String)
width (System.Single)

CCLabelBMFont(string, string, float, CCTextAlignment)

CCLabelBMFont(string, string, float, CCTextAlignment)(System.String str, System.String fntFile, System.Single width, Cocos2D.CCTextAlignment alignment)
Parameters:
str (System.String)
fntFile (System.String)
width (System.Single)
alignment (Cocos2D.CCTextAlignment)

CCLabelBMFont(string, string, float, CCTextAlignment, CCPoint)

CCLabelBMFont(string, string, float, CCTextAlignment, CCPoint)(System.String str, System.String fntFile, System.Single width, Cocos2D.CCTextAlignment alignment, Cocos2D.CCPoint imageOffset)
Parameters:
str (System.String)
fntFile (System.String)
width (System.Single)
alignment (Cocos2D.CCTextAlignment)
imageOffset (Cocos2D.CCPoint)

Fields

kCCLabelAutomaticWidth(System.Int32)
m_bCascadeColorEnabled(System.Boolean)
m_bCascadeOpacityEnabled(System.Boolean)
m_bIsOpacityModifyRGB(System.Boolean)
m_bLabelDirty(System.Boolean)
m_bLineBreakWithoutSpaces(System.Boolean)
m_cDisplayedOpacity(System.Byte)
m_cRealOpacity(System.Byte)
m_pConfiguration(Cocos2D.CCBMFontConfiguration)
m_pHAlignment(Cocos2D.CCTextAlignment)
m_pLineBreakMode(Cocos2D.CCTextLineBreakMode)
m_pReusedChar(Cocos2D.CCSprite)
m_pVAlignment(Cocos2D.CCVerticalTextAlignment)
m_sFntFile(System.String)
m_sInitialString(System.String)
m_sString(System.String)
m_tDimensions(Cocos2D.CCSize)
m_tDisplayedColor(Cocos2D.CCColor3B)
m_tImageOffset(Cocos2D.CCPoint)
m_tRealColor(Cocos2D.CCColor3B)
s_pConfigurations(System.Collections.Generic.DictionarySystem.String,Cocos2D.CCBMFontConfiguration)

Properties

AnchorPoint(Cocos2D.CCPoint)
CascadeColorEnabled(System.Boolean)
CascadeOpacityEnabled(System.Boolean)
Color(Cocos2D.CCColor3B)
Dimensions(Cocos2D.CCSize)
DisplayedColor(Cocos2D.CCColor3B)
DisplayedOpacity(System.Byte)
FntFile(System.String)
HorizontalAlignment(Cocos2D.CCTextAlignment)
IsOpacityModifyRGB(System.Boolean)
LineBreakMode(Cocos2D.CCTextLineBreakMode)
LineBreakWithoutSpace(System.Boolean)
Opacity(System.Byte)
Scale(System.Single)
ScaleX(System.Single)
ScaleY(System.Single)
Text(System.String)
VerticalAlignment(Cocos2D.CCVerticalTextAlignment)

Methods

CreateFontChars()

CreateFontChars()()

FNTConfigLoadFile(string)

Cocos2D.CCBMFontConfiguration FNTConfigLoadFile(string)(System.String file)
Parameters:
file (System.String)
Returns:
Cocos2D.CCBMFontConfiguration

FNTConfigLoadFile(string, Stream)

Cocos2D.CCBMFontConfiguration FNTConfigLoadFile(string, Stream)(System.String fntName, System.IO.Stream src)
Parameters:
fntName (System.String)
src (System.IO.Stream)
Returns:
Cocos2D.CCBMFontConfiguration

FNTConfigRemoveCache()

FNTConfigRemoveCache()()

Init()

System.Boolean Init()()
Returns:
System.Boolean
Example

InitWithString(string, string, CCSize, CCTextAlignment, CCVerticalTextAlignment, CCPoint, CCTexture2D)

System.Boolean InitWithString(string, string, CCSize, CCTextAlignment, CCVerticalTextAlignment, CCPoint, CCTexture2D)(System.String theString, System.String fntFile, Cocos2D.CCSize dimentions, Cocos2D.CCTextAlignment hAlignment, Cocos2D.CCVerticalTextAlignment vAlignment, Cocos2D.CCPoint imageOffset, Cocos2D.CCTexture2D texture)
Parameters:
theString (System.String)
fntFile (System.String)
dimentions (Cocos2D.CCSize)
hAlignment (Cocos2D.CCTextAlignment)
vAlignment (Cocos2D.CCVerticalTextAlignment)
imageOffset (Cocos2D.CCPoint)
texture (Cocos2D.CCTexture2D)
Returns:
System.Boolean

InitWithString(string, string, CCSize, CCTextAlignment, CCVerticalTextAlignment, CCPoint, CCTexture2D, CCBMFontConfiguration)

System.Boolean InitWithString(string, string, CCSize, CCTextAlignment, CCVerticalTextAlignment, CCPoint, CCTexture2D, CCBMFontConfiguration)(System.String text, System.String fntFile, Cocos2D.CCSize dimensions, Cocos2D.CCTextAlignment hAlignment, Cocos2D.CCVerticalTextAlignment vAlignment, Cocos2D.CCPoint imageOffset, Cocos2D.CCTexture2D texture, Cocos2D.CCBMFontConfiguration configuration)
Parameters:
text (System.String)
fntFile (System.String)
dimensions (Cocos2D.CCSize)
hAlignment (Cocos2D.CCTextAlignment)
vAlignment (Cocos2D.CCVerticalTextAlignment)
imageOffset (Cocos2D.CCPoint)
texture (Cocos2D.CCTexture2D)
configuration (Cocos2D.CCBMFontConfiguration)
Returns:
System.Boolean

PurgeCachedData()

PurgeCachedData()()

SetString(string, bool)

SetString(string, bool)(System.String newString, System.Boolean needUpdateLabel)
Parameters:
newString (System.String)
needUpdateLabel (System.Boolean)

UpdateDisplayedColor(CCColor3B)

UpdateDisplayedColor(CCColor3B)(Cocos2D.CCColor3B parentColor)
Parameters:
parentColor (Cocos2D.CCColor3B)
Example

UpdateDisplayedOpacity(byte)

UpdateDisplayedOpacity(byte)(System.Byte parentOpacity)
Parameters:
parentOpacity (System.Byte)
Example

UpdateLabel()

UpdateLabel()()

Visit()

Visit()()
Example