Coder Social home page Coder Social logo

Comments (4)

stubma avatar stubma commented on June 2, 2024

demo的label按照你的改了一下

    // English, Chinese, color, font, overall test
    CCRichLabelTTF* label = CCRichLabelTTF::create("[color=ffff0000]红色[/color]",
                                                   "Helvetica",
                                                   30);
//  label->enableStroke(ccBLUE, 0.5f);
    label->setPosition(ccp(origin.x + visibleSize.width / 2,
                           origin.y + visibleSize.height / 5));
//  label->enableShadow(CCSizeMake(-10, -10), 0xafffff00, 4);
    label->setFontFillColor(ccc3(179, 179, 179));
    addChild(label);

android上测试没有问题, 是红色. demo的背景色自己改一下,背景缺省是红的。
device-2014-05-24-121200

from cocos2dx-better.

stubma avatar stubma commented on June 2, 2024

你要是觉得有问题,不用重新开bug,我reopen就行,先关了

from cocos2dx-better.

nealzxc avatar nealzxc commented on June 2, 2024

需要别的地方有什么配置吗?比如manifest之类的地方?我打印了一下,解析得到的颜色值的确是对的。

from cocos2dx-better.

stubma avatar stubma commented on June 2, 2024

android端有些java代码是必须要包含进来的, Android.mk里面也要正确引用module。一看README.md, 二看demo

from cocos2dx-better.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.