美文网首页
cocos2dx -lua 富文本

cocos2dx -lua 富文本

作者: 赤焰军少帅林殊 | 来源:发表于2020-12-18 11:05 被阅读0次
    self.richtext_notice=ccui.RichText:create()
        self.richtext_notice:setContentSize(cc.size(600,50));
        self.richtext_notice:setPosition(cc.p(540,0));
        local res1=  ccui.RichElementText:create(1,cc.c3b(149,180,184),255,"需要:","Helvetica",30)
        local res2=  ccui.RichElementText:create(2,cc.c3b(48,115,35),255,"1.2w","Helvetica",30)

        self.richtext_notice:pushBackElement(res1)
        self.richtext_notice:pushBackElement(res2)
        popBgImage:addChild(self.richtext_notice);

相关文章

网友评论

      本文标题:cocos2dx -lua 富文本

      本文链接:https://www.haomeiwen.com/subject/zpexnktx.html