diff --git a/packages/client/dist/assets/main/index.js b/packages/client/dist/assets/main/index.js index f1c6423..7897c56 100644 --- a/packages/client/dist/assets/main/index.js +++ b/packages/client/dist/assets/main/index.js @@ -2720,7 +2720,10 @@ System.register("chunks:///_virtual/loading.ts", ['./rollupPluginModLoBabelHelpe this.progressBar.progress = 0; } - ponzi_controller.instance.on(ccc_msg.update_loading_percentage, this.setProgress.bind(this)); + var self = this; + ponzi_controller.instance.on(ccc_msg.update_loading_percentage, function (percent) { + self.setProgress(percent); + }); } // 外界传入百分比,并更新进度条 ; @@ -6289,7 +6292,7 @@ System.register("chunks:///_virtual/ponzi-controller.ts", ['./rollupPluginModLoB }; _proto.onSyncProgressUpdate = function onSyncProgressUpdate(values) { - console.error("onSyncProgressUpdate:", values); + console.log("onSyncProgressUpdate:", values); var percentage = values.percentage; ponzi_controller.instance.sendCCCMsg(ccc_msg.update_loading_percentage, percentage); // if(percentage >= 1){ // } diff --git a/packages/client/dist/src/index.ts b/packages/client/dist/src/index.ts index e6ec2af..7181c97 100644 --- a/packages/client/dist/src/index.ts +++ b/packages/client/dist/src/index.ts @@ -36,7 +36,7 @@ components.GameState.update$.subscribe((update) => { // Update initial sync status in the UI components.SyncProgress.update$.subscribe((obj) => { console.log("onSyncProgressUpdate:",obj); - globalThis.ponzi.percentage = obj.value[0].percentage/100; + globalThis.ponzi.percentage = obj.value[0].percentage; globalThis.ponzi.syncprogress_update?.(globalThis.ponzi.percentage); });