CCMenuItemFont color change

前端 未结 1 1231
野趣味
野趣味 2021-01-14 22:08

How can I set the color of a CCMenuItemFont. I\'ve been searching for hours, returning 0 valid results. They\'re all outdated.

[CCMenuItemFont setFontName:@\         


        
1条回答
  •  天涯浪人
    2021-01-14 22:42

    CCMenuItemFont is derived from CCMenuItemLabel which has a label property:

    CCMenuItemLabel *play = [CCMenuItemFont itemFromString:@"Play" 
                             target:self selector:@selector(goToLevelSelect:)];
    play.color = ccRED;
    

    0 讨论(0)
提交回复
热议问题