Commit 4ae7393e authored by Tt's avatar Tt

欢乐翻卡增加结束小迪

parent b15bf4e4
No preview for this file type
...@@ -366,6 +366,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -366,6 +366,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
showXiaodi() { showXiaodi() {
if (!this.data.npcAudioEnd) return; if (!this.data.npcAudioEnd) return;
pg.view.find(this, 'layout_xiaodi/btn_go').active = false;
this.scheduleOnce(() => {
pg.view.find(this, 'layout_xiaodi/btn_go').active = true;
}, 0.5)
pg.view.touchOn(pg.view.find(this, 'layout_xiaodi/btn_go'), this.onTouchExit, this); pg.view.touchOn(pg.view.find(this, 'layout_xiaodi/btn_go'), this.onTouchExit, this);
pg.view.setString(pg.view.find(this, 'layout_xiaodi/btn_go/txt'), this.data.npcAudioText) pg.view.setString(pg.view.find(this, 'layout_xiaodi/btn_go/txt'), this.data.npcAudioText)
pg.view.find(this, 'layout_xiaodi').active = true; pg.view.find(this, 'layout_xiaodi').active = true;
......
...@@ -93,7 +93,6 @@ ...@@ -93,7 +93,6 @@
<div style="margin: 5px"> <div style="margin: 5px">
<span>{{ item.npcAudioEndName}}</span> <span>{{ item.npcAudioEndName}}</span>
</div> </div>
</div> </div>
</div> </div>
<!-- 题目区 --> <!-- 题目区 -->
......
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