Commit aece1a34 authored by 王勇霞's avatar 王勇霞

预览

parent 67fd35bb
...@@ -892,5 +892,5 @@ export const ResJson = { ...@@ -892,5 +892,5 @@ export const ResJson = {
} }
} }
], ],
"path": "https://yun.duiba.com.cn/db_games/activity/template/1669174205/resource/" "path": "https://yun.duiba.com.cn/db_games/activity/template/1669191757/resource/"
} }
\ No newline at end of file
...@@ -198,14 +198,20 @@ export class Game extends Scene { ...@@ -198,14 +198,20 @@ export class Game extends Scene {
// e.data.isGuide; // e.data.isGuide;
this.removeChild(this.gamelayer); this.removeChild(this.gamelayer);
} }
editConfigImg(e) {
Tools.gameData.uiConfig = e.data.config;
this.removeAllChildren();
this.initUi();
}
initEvents() { initEvents() {
super.initEvents(); super.initEvents();
GDispatcher.addEventListener("closeGame", this.closeGame, this); GDispatcher.addEventListener("closeGame", this.closeGame, this);
GDispatcher.addEventListener("editConfigImg", this.editConfigImg, this);
} }
removeEvents() { removeEvents() {
super.removeEvents(); super.removeEvents();
GDispatcher.removeEventListener("closeGame", this.closeGame, this); GDispatcher.removeEventListener("closeGame", this.closeGame, this);
GDispatcher.removeEventListener("editConfigImg", this.editConfigImg, 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