English 中文(简体)
运用国家合作框架时的问题 COCS2D中多线文字标签
原标题:Issue when using CCFadeIn for multiline text label in COCS2D
  • 时间:2012-04-26 12:04:25
  •  标签:
  • multiline

I want to out multiline text in CCLabeTTF. It I am able. But I want that the text appeared smoothly. For this I use action CCFadeIn. $ //Multiline output description

    description =[descriptions valueForKey:@"text_MainHistory"];

    float fontSize =22;
    CGSize maxSize = {500, 400};
    CGSize actualSize = [description sizeWithFont:[UIFont fontWithName:@"Arial" size:fontSize] constrainedToSize:maxSize lineBreakMode:UILineBreakModeWordWrap];
    CGSize containerSize = {actualSize.width, actualSize.height};
    descriptionText = [CCLabelTTF labelWithString:description dimensions:containerSize alignment:UITextAlignmentCenter fontName:@"Arial" fontSize:fontSize];
    descriptionText.position = ccp(screenSize.width/2,screenSize.height/2);
    descriptionText.color = ccc3(128, 64, 0);
    [descriptionText runAction:[CCSequence actions:[CCFadeIn actionWithDuration:5.0f], nil]];
    [self addChild:descriptionText z:2];

但是,在半秒的业绩上,案文似乎并消失,然后开始国家合作框架。

我的错误在哪里?

问题回答

我不相信我会理解,但是,在你给我打上彩色之后,你就认为你本应该把口号定为零。





相关问题
Latex: how to break a line inside $$

I want to manually break a line inside $$: $$something something <breakline> something else$$ I tried \, ewline, and linebreak but none work. Ideas?

textbox multiline view text in a div

I have a textbox multiline for insert text in my db. This text is viewed in a div, but without newlines. How can I view the newline in my text? thanks

WPF Multiline ToolTip with data binding

In our WPF application we show a data bound GridView, and one of the grid fields is a filter field which is combination of several sub-fields. In the grid, I show a simple string concatenation of the ...

热门标签