Comments (4)
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的背景色自己改一下,背景缺省是红的。
from cocos2dx-better.
你要是觉得有问题,不用重新开bug,我reopen就行,先关了
from cocos2dx-better.
需要别的地方有什么配置吗?比如manifest之类的地方?我打印了一下,解析得到的颜色值的确是对的。
from cocos2dx-better.
android端有些java代码是必须要包含进来的, Android.mk里面也要正确引用module。一看README.md, 二看demo
from cocos2dx-better.
Related Issues (20)
- CCImage_richlabel_ios.mm line 610 CCImage & CCImage undeclared HOT 6
- 新bug
- One suggestion HOT 8
- iOS project Target Dependency HOT 1
- RichLabel不能读取Resource文件夹以外的图片
- 在android上label还是会有纹理丢失的问题。 HOT 4
- 这里有点泄漏
- 小问题
- Socket issue HOT 4
- label的问题 HOT 1
- CCRichLabel ,显示不出来 HOT 1
- label的图标问题 HOT 9
- get embedded image bound HOT 3
- crash after setLinkTarget HOT 2
- Crash HOT 6
- Crash HOT 2
- memory leaks on Android ! HOT 6
- 好久没来了 HOT 5
- 安卓手机下,图文混排图片和文本的位置有重叠,换行后,图片位置乱了
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocos2dx-better.