|
@@ -1477,6 +1477,15 @@
|
|
|
}
|
|
|
this.bridge.call("showToast2", msg);
|
|
|
}
|
|
|
+ showConfirmationDialogForExit(title, msg) {
|
|
|
+ if (!Laya.Browser.onAndroid) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!this.initBridge()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.bridge.call("showConfirmationDialogForExit", title, msg);
|
|
|
+ }
|
|
|
loginOutForApp() {
|
|
|
if (!Laya.Browser.onAndroid) {
|
|
|
return;
|
|
@@ -8935,6 +8944,7 @@
|
|
|
let times = DataMgr.getDailyVideoShareTimes();
|
|
|
this.awardNum = times == 0 ? 2000 : 200;
|
|
|
this.ui.myNode.awardNode.coinTxt.text = "x" + this.awardNum + "";
|
|
|
+ this.setGlobalFont(this.ui);
|
|
|
}
|
|
|
checkShareState() {
|
|
|
if (PlatMgr.forceShare == 0) {
|
|
@@ -11409,10 +11419,8 @@
|
|
|
xGame.common.wordsMgr = new WordsMgr();
|
|
|
xGame.common.talkMgr = new TalkMgr();
|
|
|
xGame.common.classicEmotionSpine = new SpineMgr("yxz_bqwz", () => {
|
|
|
- console.log("加载经典模式表情文件chenggon !");
|
|
|
});
|
|
|
xGame.common.awardSpine = new SpineMgr("jinbi", () => {
|
|
|
- console.log("挑战模式奖励模式spine加载成功!");
|
|
|
});
|
|
|
xGame.eventMgr.off(RESET_GAME, this, this.resetGame);
|
|
|
xGame.eventMgr.on(RESET_GAME, this, this.resetGame);
|
|
@@ -11470,7 +11478,6 @@
|
|
|
}
|
|
|
show() {
|
|
|
super.show();
|
|
|
- console.log("zh:uigame show AADD");
|
|
|
this.ui.alpha = 0;
|
|
|
this.updateSelf();
|
|
|
xGame.common.gameMgr.gamePause = false;
|
|
@@ -12545,6 +12552,7 @@
|
|
|
this.updatePos();
|
|
|
this.runFly(edPos, callback);
|
|
|
this.runWorlds(stPos, num);
|
|
|
+ this.setGlobalFont(this.ui);
|
|
|
}
|
|
|
updateUI(type) {
|
|
|
let temp;
|
|
@@ -18256,7 +18264,7 @@
|
|
|
console.log('zh:所有配置加载完成');
|
|
|
}
|
|
|
catch (error) {
|
|
|
- console.error('❌请求失败:', error);
|
|
|
+ console.error('zh:❌请求失败:', error);
|
|
|
Laya.timer.once(5000, this, () => {
|
|
|
let retryCount = 0;
|
|
|
const maxRetries = 3;
|
|
@@ -18267,11 +18275,11 @@
|
|
|
catch (error) {
|
|
|
if (retryCount < maxRetries) {
|
|
|
retryCount++;
|
|
|
- console.log(`🔄 第${retryCount}次重试获取配置...`);
|
|
|
+ console.log(`zh:🔄 第${retryCount}次重试获取配置...`);
|
|
|
Laya.timer.once(5000, this, tryFetchConfig);
|
|
|
}
|
|
|
else {
|
|
|
- console.error("❌ 达到最大重试次数,配置获取失败");
|
|
|
+ console.error("zh:❌ 达到最大重试次数,配置获取失败");
|
|
|
}
|
|
|
}
|
|
|
};
|
|
@@ -18280,14 +18288,11 @@
|
|
|
}
|
|
|
finally {
|
|
|
if (this.httpReqCount > this.httpReqOkCount) {
|
|
|
- CustomAlert.show("Prompt", "Failed to load resources. Check your network and restart the game.", [
|
|
|
- {
|
|
|
+ CustomAlert.show("Prompt", "Failed to load resources. Check your network and restart the game.", [{
|
|
|
label: "Okay", handler: () => {
|
|
|
- console.log("zh:好的知道了");
|
|
|
JSBridgeUtils.instance.exitAndCloseGame();
|
|
|
}
|
|
|
- }
|
|
|
- ]);
|
|
|
+ }]);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -20426,10 +20431,8 @@
|
|
|
xGame.common.wordsMgr = new WordsMgr();
|
|
|
xGame.common.talkMgr = new TalkMgr();
|
|
|
xGame.common.classicEmotionSpine = new SpineMgr("yxz_bqwz", () => {
|
|
|
- console.log("加载经典模式表情文件chenggon !");
|
|
|
});
|
|
|
xGame.common.awardSpine = new SpineMgr("jinbi", () => {
|
|
|
- console.log("挑战模式奖励模式spine加载成功!");
|
|
|
});
|
|
|
xGame.eventMgr.off(RESET_GAME, this, this.resetGame);
|
|
|
xGame.eventMgr.on(RESET_GAME, this, this.resetGame);
|
|
@@ -20487,7 +20490,6 @@
|
|
|
}
|
|
|
show() {
|
|
|
super.show();
|
|
|
- console.log("zh:uigame show AADD");
|
|
|
this.ui.alpha = 0;
|
|
|
this.updateSelf();
|
|
|
xGame.common.gameMgr.gamePause = false;
|