happykevins / cocos2dx-ext

Extensions for Cocos2dx: Dynamic Font Management, HTML Widget, Powerful Asset Management...
107 stars 82 forks source link

Could you please add some examples? #1

Closed guoxj closed 11 years ago

guoxj commented 11 years ago

hi, i have used your htmllabel, could you please add some examples?

the code as belows: CCSize winsize = CCDirector::sharedDirector()->getWinSize(); CCHTMLLabel* pLabel2 = CCHTMLLabel::createWithString("<font color=\"#FF0000\">TestHTMLLabel", CCSize(200,200),DFONT_DEFAULT_FONTALIAS); pLabel2->setAnchorPoint(ccp(0,0)); pLabel2->setPosition( ccp(winsize.width / 2, winsize.height / 3) ); this->addChild(pLabel2);

it doesn't show anything. could please figure it out? thanks

happykevins commented 11 years ago

in progress ...