示例#1
0
void UIStaticText::SetFont(Font * _font)
{
	textBlock->SetRectSize(size);
	textBlock->SetFont(_font);
	PrepareSprite();
}
示例#2
0
void UIStaticText::SetMultiline(bool _isMultilineEnabled, bool bySymbol)
{
    textBlock->SetRectSize(size);
    textBlock->SetMultiline(_isMultilineEnabled, bySymbol);
    PrepareSprite();
}
示例#3
0
void UIStaticText::SetText(const WideString& _string, const Vector2 &requestedTextRectSize/* = Vector2(0,0)*/)
{
    textBlock->SetRectSize(size);
    textBlock->SetText(_string, requestedTextRectSize);
    PrepareSprite();
}
示例#4
0
void UIStaticText::SetFittingOption(int32 fittingType)
{
    textBlock->SetRectSize(size);
    textBlock->SetFittingOption(fittingType);
    PrepareSprite();
}
void TextGameObject::SetMultiline(bool isMultilineEnabled)
{
    textBlock->SetMultiline(isMultilineEnabled);
    PrepareSprite();
}
void TextGameObject::SetFont( Font *font, bool prepareSprite /*= true*/ )
{
    textBlock->SetFont(font);
    if(prepareSprite) 
        PrepareSprite();
}
void TextGameObject::SetFittingOption(int32 fittingType)
{
    textBlock->SetFittingOption(fittingType);
    PrepareSprite();
}
void TextGameObject::SetText( const WideString &string, const Vector2 &requestedTextRectSize /*= Vector2(0,0)*/ )
{
    textBlock->SetText(string, requestedTextRectSize);
    PrepareSprite();
}