-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLayerTemplate.js.bak
71 lines (43 loc) · 1.12 KB
/
LayerTemplate.js.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//
// 洗炼
//
/**
* 初始化、清理,不负责其他逻辑
*
*/
role.RoleFlushLayer \= game.IView.extend({
UI_MAIN : res/UI/role/LayerRoleFlush.json,
__data : null,
__root : null,
ctor:function(){
this._super();
//cc.log(role.RoleFlushLayer\.DEBUG.format('ctor'));
this.__data = game.Facade.getModelData(model.RoleModel);
this.__root = ccs.load(this.UI_MAIN).node;
this.addChild(this.__root);
var comp = null;
this.__update();
return true;
},
destroy:function(){
},
__update:function(){
},
__onTouchEvent:function(sender, type){
switch(type){
case ccui.Widget.TOUCH_ENDED:
switch(sender.name){
default:
this.send(common.NotifyType.RoleFlush_EVENT, {
key : sender.name
});
break;
}
break;
}
},
});
/********************************************************************/
/** static **/
/********************************************************************/
role.RoleFlushLayer\.DEBUG = '