2016年12月23日

cocos:C++ 导出到lua, cocos2dx_extension.ini修改

摘要: cocos:C++ 导出到lua, cocos2dx_extension.ini修改 [zq] //zq section, 需要和genbindings.py中的配置相同 the prefix to be added to the generated functions. You might or 阅读全文

posted @ 2016-12-23 17:14 ZhYQ_note 阅读(552) 评论(0) 推荐(0) 编辑

cocos:C++ 导出到lua, genbindings.py修改

摘要: cocos:C++ 导出到lua, genbindings.py修改 1. 准备 把tools目录下的cocos2dx_extension.ini, genbindings.py, userconf.ini拷贝到 一个新的目录下,作为修改模板 2. 修改genbindings.py build.py 阅读全文

posted @ 2016-12-23 15:51 ZhYQ_note 阅读(1464) 评论(0) 推荐(0) 编辑

2016年12月16日

quick如何打开工程或者示例

摘要: quick如何打开工程或者示例 1. 那里打开工程 2.打开新工程 3.重新进入工程 4. .quick_player.lua文件内容,其实我们可以直接修改这个文件,加入我们自己的工程, 下面那个test就是我直接添加的,这些配置项的具体含义可以参看最下面的部分: 阅读全文

posted @ 2016-12-16 15:50 ZhYQ_note 阅读(823) 评论(0) 推荐(0) 编辑

quick 中 "我的项目" 中的列表从那里来的?

摘要: quick 中 "我的项目" 中的列表从那里来的? 1. WelcomeScene.lua 场景 2. cc.player.settings.PLAYER_OPEN_RECENTS 上面这个东西在 player.lua 文件中, 每次打开quick模拟器时,都会执行这个文件 3. cc.player 阅读全文

posted @ 2016-12-16 11:12 ZhYQ_note 阅读(434) 评论(0) 推荐(0) 编辑

2016年11月25日

##xcode 文件模板自定义

摘要: xcode 文件模板自定义 在使用xcode内部模板创建C++类文件时,创建出来的头文件是.hpp结尾的,但是我想用.h结尾的, 所以就网上找了下资料看能不能自定义模板,这样还可以修改文档注释。在网上找到了一些资料,可以参考下: 1. "定制你的Xcode工程目录和文件模板" 2. "Creatin 阅读全文

posted @ 2016-11-25 16:41 ZhYQ_note 阅读(244) 评论(0) 推荐(0) 编辑

2016年11月22日

##C++ format 格式化字符串

摘要: C++ format 格式化字符串实现方式 1. "http://stackoverflow.com/questions/2342162/stdstring formatting like sprintf" 5. "https://github.com/fmtlib/fmt compile time 阅读全文

posted @ 2016-11-22 14:54 ZhYQ_note 阅读(6986) 评论(0) 推荐(0) 编辑

2016年11月14日

How to convert a std::string to const char* or char*?

摘要: How to convert a std::string to const char or char ? 1. 原文地址: "http://stackoverflow.com/questions/347949/how to convert a stdstring to const char or c 阅读全文

posted @ 2016-11-14 14:13 ZhYQ_note 阅读(474) 评论(0) 推荐(0) 编辑

2016年11月9日

xcode: {} 花括号缩进一个空格

摘要: 在xcode中写C++代码时,在输入{} 花括号时,前面总是有一个空格,导致对不起 if ,感觉不舒服,找了一个解决方法: 不要勾选下图中的画线部分就行了 阅读全文

posted @ 2016-11-09 17:28 ZhYQ_note 阅读(1317) 评论(0) 推荐(0) 编辑

2016年11月2日

LDoc使用总结

摘要: LDoc使用总结 安装 按照下面的安装就可以了 "http://www.cnblogs.com/ZhYQ Note/articles/6022525.html" 使用 参考:官方的说明文档 "https://stevedonovan.github.io/ldoc/manual/doc.md.html 阅读全文

posted @ 2016-11-02 17:21 ZhYQ_note 阅读(469) 评论(0) 推荐(0) 编辑

2016年10月28日

git: hook 修改提交信息

摘要: git获取数字顺序版本号 因为git的版本使用的是hash值,不能很直观的看出那个版本,所以想找到一种方法,获取顺序的版本号,在网上找到了方法,可以获取顺序版本号 摘自: "使用bash从SVN和Git中获取顺序版本号" 基准版本号默认是1,可以通过传递一个参数修改 get_version() { 阅读全文

posted @ 2016-10-28 19:12 ZhYQ_note 阅读(1223) 评论(0) 推荐(0) 编辑

2016年10月27日

quick: iskindof使用注意

摘要: quick: iskindof使用注意 注意: 但是因为quick不能判断继承自C++如Node的情况,我实验了cocos2d x 3.11.1中的class和iskindof方法,发现方法有很大的不同,但是printf("UIListView ==== " .. tostring(iskindof 阅读全文

posted @ 2016-10-27 10:48 ZhYQ_note 阅读(580) 评论(0) 推荐(0) 编辑

2016年10月26日

mac下编程使用字体

摘要: 1、xcode下使用的是Menlo的18号字体 2、webStorm使用的也是Menlo的18号字体 3、sublime Text 使用的也是Menlo的21号字体 阅读全文

posted @ 2016-10-26 10:47 ZhYQ_note 阅读(3861) 评论(1) 推荐(0) 编辑

2016年10月21日

Mac下Sublime Text常用插件

摘要: Mac下Sublime Text常用插件 1. SideBarEnhancements 右键菜单增强插件 2. BracketHighlighter 括号、引号、标签高亮插件 3. Pretty JSON JSON美化,快捷键是command+control+J 4. ConvertToUTF8 5 阅读全文

posted @ 2016-10-21 19:05 ZhYQ_note 阅读(671) 评论(0) 推荐(0) 编辑

2016年10月20日

sublime插件开发: 文件说明

摘要: sublime插件开发 文件 1. .sublime settings 设置文件 2. Main.sublime menu 主菜单按钮配置文件 3. Side Bar.sublime menu 侧边栏菜单文件列表,选中右键菜单 4. Context.sublime menu 上下文菜单(右键菜单) 阅读全文

posted @ 2016-10-20 20:31 ZhYQ_note 阅读(246) 评论(0) 推荐(0) 编辑

mac Sublime Text 快捷键

摘要: mac Sublime Text 快捷键 Tab: 光标后缩进 Shift+Tab: 反缩进 cmd+P: 打开文件切换面板 cmd+/: 行注释 cmd+R: 快速列出/跳转到某个函数 双击可选中光标所在单词,三击可选中光标所在行((Command+L)); Ctrl + G: 跳转到行 在Ctr 阅读全文

posted @ 2016-10-20 17:57 ZhYQ_note 阅读(142) 评论(0) 推荐(0) 编辑

2016年10月17日

python: 添加自定义模块路径 —— 可以使用相对路径

摘要: 自定义模块时,添加模块路径: 阅读全文

posted @ 2016-10-17 16:24 ZhYQ_note 阅读(1716) 评论(0) 推荐(0) 编辑

2016年10月14日

python: int to unicode string

摘要: >>> import types >>> print type(str(2)) >>> print type(str('2')) # 这里先转为str,在转为unicode >>> print type(str(2).decode('utf-8')) >>> print type(str('32').decode('utf-8')) >>> print str(2).decode('utf... 阅读全文

posted @ 2016-10-14 19:36 ZhYQ_note 阅读(938) 评论(0) 推荐(0) 编辑

PyCharmIDE: 给脚本传递参数

摘要: 阅读全文

posted @ 2016-10-14 17:34 ZhYQ_note 阅读(1398) 评论(0) 推荐(0) 编辑

python: str()

摘要: tx1 = '中国' tx2 = u'中国' print tx1 print tx2 print type(tx1) print type(tx2)# str()函数会把unicode的字符串转成str形式的,使用的时候要注意print type(str(tx2)) 中国 中国 阅读全文

posted @ 2016-10-14 14:57 ZhYQ_note 阅读(184) 评论(0) 推荐(0) 编辑

python: isdigit int float 使用

摘要: >>> num1 = '2.0' >>> print num1.isdigit() False >>> num2 = '2' >>> print num2.isdigit() True >>> num3 = '-3' >>> print num3.isdigit() False >>> num4 = 阅读全文

posted @ 2016-10-14 14:12 ZhYQ_note 阅读(557) 评论(0) 推荐(0) 编辑

导航