Comments (6)
没想到是国人写的,再说清楚点,
我对mac的开发环境不是很熟悉,今天刚开始接触,我不清楚是否还需要设置什么
大部分问题已经解决了,就还有这个,我不知道为什么。
from cocos2dx-better.
刚把它编过了,是行1117的NS_CC_BEGIN 名称空间引起的。
在改成
static bool _initWithString(const char * pText, cocos2d::CCImage::ETextAlign eAlign, const char * pFontName, int nSize, tImageInfo* pInfo, cocos2d::CCPoint* outShadowStrokePadding, LinkMetaList* linkMetas) {
bool bRet = false;
编译通过~
from cocos2dx-better.
只是提示找不到CCImage, 你可能没clone cocos2d-x, cocos2d-x的代码需要和cocos2dx-common处于同一个目录中
from cocos2dx-better.
我把您的代码加入到cocos2dx-2.2工程中的,所以应该不是找不到文件的问题。
在CCImage前加上cocos2d::空间限定就没问题了
我不确定是不是bug?
from cocos2dx-better.
这些代码都在cocos2d空间里, 不需要指定, 你碰到这些问题只属于你工程设置问题. 对我代码的改动都是不必要的, 是因为你设置问题引起的, 等到你熟悉了环境你自然就会理解为啥会这样. 现阶段你能编译过去就行了, 只要不改动实际逻辑, 加个什么空间前缀的没关系.
from cocos2dx-better.
hi,stubma
当然,不改动就能很好的运行。我改动他是因为在项目能更方便的使用。
谢谢,这个功能真的很棒,省了我很多功夫。
再次谢谢您。
from cocos2dx-better.
Related Issues (20)
- 新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
- Android平台文字颜色问题 HOT 4
- 好久没来了 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.