zoukankan      html  css  js  c++  java
  • cocos2d-x JS 富文本

    var str1 = "兑换成功后,系统会生成“";
    var str2 = "红包兑换码";
    var str3 = "”,请复制该兑换码,并粘贴在";
    var str4 = "****游戏官方公众号";
    var str5 = "里,即可领取。";
    var rich1 = new ccui.RichElementText(11,cc.color(72,78,118),255,str1,"",36);//“”字体文件资源,没有则用“”,切忌勿用null
    var rich2 = new ccui.RichElementText(12,cc.color(0,144,255),255,str2,"",50);
    var rich3 = new ccui.RichElementText(13,cc.color(72,78,118),255,str3,"",36);
    var rich4 = new ccui.RichElementText(14,cc.color(0,144,255),255,str4,"",50);
    var rich5 = new ccui.RichElementText(15,cc.color(72,78,118),255,str5,"",36);

    var richText = new ccui.RichText();
    richText.pushBackElement(rich1);
    richText.pushBackElement(rich2);
    richText.pushBackElement(rich3);
    richText.pushBackElement(rich4);
    richText.pushBackElement(rich5);
    richText.setPosition(cc.p(500,500));
    richText.setContentSize(cc.size(505,500));
    richText.ignoreContentAdaptWithSize(false);
    this.addChild(richText);
  • 相关阅读:
    hdu 2490 队列优化dp
    poj 1836 LIS变形
    hdu 3410 单调栈
    51nod 1437
    51nod 1215 单调栈/迭代
    51nod 1102 单调栈
    51nod 1272 思维/线段树
    51nod 1279 单调栈
    SpringMVC收藏
    今天接触枚举类型,感觉是C里面应该才有的东西
  • 原文地址:https://www.cnblogs.com/luorende/p/8780443.html
Copyright © 2011-2022 走看看