- 博客(8)
- 资源 (15)
- 收藏
- 关注
原创 实现各种UI消息事件的绑定
//绑定按钮1Tool.bindButton = function(btnName, parent, codeFileName, callFunc, msgID){ //按钮 var btn = parent.getChildByName(btnName); var pButton = btn.getComponent(cc.Button); //点击事件 ...
2019-08-13 21:21:51 261
原创 实现网络消息收发机制
function InternalSocket (url) { this.url = url; this._socket = null; this.handlers = {}; this._heartBeatTimer = null; this._timeout = null; this._first = 1; this._retryTime...
2019-08-13 21:19:35 329
原创 实现自己的本地消息管理
//用户全局消息分发方法var SystemMsg = { //********************************************************** */ //定义全局消息 CONST_UI_MSG_ID : 2000, CONST_TEST_MSG_ID : 2001, CONST_SITDOWN_MSG_ID : 0x0...
2019-08-13 21:17:58 141
原创 creator 各种平台截图保存的实现
cc.Class({ extends: cc.Component, properties: { camera: cc.Camera, _canvas: null, _callFunc:null, }, init () { var node = new cc.Node(); node....
2019-08-13 21:15:47 1685
C++ 自定义文件打包和解包格式
2014-12-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人