public LabelsEmpty() { CCSize s = CCDirector.sharedDirector().getWinSize(); // CCLabelBMFont CCLabelBMFont label1 = CCLabelBMFont.labelWithString("", "fonts/bitmapFontTest3.fnt"); addChild(label1, 0, (int)TagSprite.kTagBitmapAtlas1); label1.position = new CCPoint(s.width / 2, s.height - 100); // CCLabelTTF CCLabelTTF label2 = CCLabelTTF.labelWithString("", "Arial", 24); addChild(label2, 0, (int)TagSprite.kTagBitmapAtlas2); label2.position = new CCPoint(s.width / 2, s.height / 2); // CCLabelAtlas CCLabelAtlas label3 = CCLabelAtlas.labelWithString("", "fonts/tuffy_bold_italic-charmap.png", 48, 64, ' '); addChild(label3, 0, (int)TagSprite.kTagBitmapAtlas3); label3.position = new CCPoint(s.width / 2, 0 + 100); base.schedule(updateStrings, 1.0f); setEmpty = false; }
public LabelAtlasColorTest() { CCLabelAtlas label1 = CCLabelAtlas.labelWithString("123 Test", "fonts/tuffy_bold_italic-charmap.png", 48, 64, ' '); addChild(label1, 0, (int)TagSprite.kTagSprite1); label1.position = new CCPoint(10, 100); label1.Opacity = 200; CCLabelAtlas label2 = CCLabelAtlas.labelWithString("0123456789", "fonts/tuffy_bold_italic-charmap.png", 48, 64, ' '); addChild(label2, 0, (int)TagSprite.kTagSprite2); label2.position = new CCPoint(10, 200); //label2.setColor( ccRED ); label2.Color = ccRED; CCActionInterval fade = CCFadeOut.actionWithDuration(1.0f); //CCActionInterval fade_in = fade.reverse(); CCActionInterval fade_in = null; CCFiniteTimeAction seq = CCSequence.actions(fade, fade_in, null); CCAction repeat = CCRepeatForever.actionWithAction((CCActionInterval)seq); label2.runAction(repeat); m_time = 0; //schedule( schedule_selector(LabelAtlasColorTest.step) ); //:@selector(step:)]; }
public LabelAtlasHD() { CCSize s = CCDirector.sharedDirector().getWinSize(); // CCLabelBMFont CCLabelAtlas label1 = CCLabelAtlas.labelWithString("TESTING RETINA DISPLAY", "fonts/larabie-16.png", 10, 20, 'A'); label1.anchorPoint = new CCPoint(0.5f, 0.5f); addChild(label1); label1.position = new CCPoint(s.width / 2, s.height / 2); }