Commit afcbe681 authored by liujiaxin's avatar liujiaxin

a

parent 8f77493b
{"ver":"1.1.2","uuid":"810c015d-857f-44be-aa35-fcda8b54edb3","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "810c015d-857f-44be-aa35-fcda8b54edb3",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
......@@ -220,13 +220,13 @@ cc.Class({
cc.director.on('GAME_RESOURCE_LOADED', () => {
cc.director.on('GAME_RESOURCE_LOADED', function() {
this.lrc.initialize();
this.setCurrentMode(this.lrc.PLAY_MODE.MODE1);
this.buttonGroupChange(this.modeNameMap[this.getCurrentMode()])
// this.lrc.node.zIndex = 99999
});
cc.director.on('GAME_DATA_FETCHED', (data) => {
}, this);
cc.director.on('GAME_DATA_FETCHED', function (data){
const {width: dw, height: dh} = cc.view.getDesignResolutionSize();
const {width: fw, height: fh} = cc.view.getFrameSize();
......@@ -330,19 +330,19 @@ cc.Class({
this.node.zIndex = 9999
// window.dispatchEvent(new CustomEvent('resize'), true)
// window.dispatchEvent(new cc.Event.EventCustom('resize', true))
});
cc.director.on('GAME_VIEW_DISPLAYED', () => {
}, this);
cc.director.on('GAME_VIEW_DISPLAYED', function() {
// this.karaoke.prepare();
});
}, this);
window.gg =this
this.btnGroup.children.forEach(button => {
button.actionStatus = this.BUTTON_STATUS.IDLE;
button.on(cc.Node.EventType.TOUCH_START, (event) => {
button.on(cc.Node.EventType.TOUCH_START, function(event) {
const btn = event.currentTarget;
window.bb = btn;
this.buttonGroupChange(btn)
// cc.log("This is a callback after the trigger event", event);
})
}, this)
});
;
},
......
......@@ -146,9 +146,9 @@ cc.Class({
// LIFE-CYCLE CALLBACKS:
onLoad () {
window['kk'] = this;
cc.director.on('STOP_ALL_AUDIO', () => {
cc.director.on('STOP_ALL_AUDIO', function() {
this.pause();
});
}, this);
},
setPlayInteractivateMode(mode) {
......@@ -646,11 +646,11 @@ cc.Class({
// })
// console.log(n._id,ss,breakIndex,tm, idx, n.x,n.y);
n.off(cc.Node.EventType.TOUCH_START)
n.on(cc.Node.EventType.TOUCH_START, () => {
n.on(cc.Node.EventType.TOUCH_START, function() {
console.log(n._id,ss,breakIndex,tm, idx, n.x,n.y,this.richText.node.children.indexOf(n) );
this.calcSentenceRichText.string = this.sentenceContent[tm];
this.playByTime(tm);
});
}, this);
const s = n.getComponent(cc.Label).string;
this.findSentenceIndexByWords(s, sentenceIndexObj);
}
......@@ -998,6 +998,8 @@ cc.Class({
audioEngine.stop(this._currentAudioId);
this._audioSource.destroy();
this._audioACSource.destroy();
this._audioSource = null;
this._audioACSource = null;
}
});
......@@ -470,7 +470,7 @@ cc.Class({
}
rectNode.addComponent(cc.Button);
rectNode.on('click', () => {
rectNode.on('click', function(){
if (rectNode.isClicked) {
// return;
}
......@@ -486,7 +486,7 @@ cc.Class({
if (animationNames.length > 0) {
dragonDisplay.playAnimation(animationNames[0], 1);
}
});
}, this);
}
});
......@@ -534,12 +534,12 @@ cc.Class({
});
picNode.addComponent(cc.Button);
picNode.on('click', () => {
picNode.on('click', function() {
if (picNode.audioClip) {
cc.audioEngine.stopAllEffects();
cc.audioEngine.playEffect(picNode.audioClip, false, 0.8);
}
});
}, this);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment