数数修改
This commit is contained in:
huanghaipeng 2025-10-20 18:06:33 +08:00
parent 03334b81b1
commit d0ed9bfe4e
9 changed files with 1469 additions and 1570 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2477,15 +2477,6 @@ export default class MapConroler extends cc.Component {
if (freezeBtn.getComponent("btnControl")._touch) {
freezeBtn.getComponent("btnControl").setTouch(false);
if (cc.fx.GameConfig.GM_INFO.freezeAmount < 1) {
// if (cc.fx.GameConfig.GM_INFO.coin < 1500) {
// MiniGameSdk.API.showToast("金币不足,无法购买道具");
// setTimeout(() => {
// this.openShop();
// freezeBtn.getComponent("btnControl").setTouch(true);
// }, 500);
// return;
// }
this.node.parent.parent.getChildByName("propWindow").active = true;
cc.fx.AudioManager._instance.playEffect("tanchuang", null);
let pauseNode = this.node.parent.parent.getChildByName("propWindow").getChildByName("prop");
@ -2497,6 +2488,8 @@ export default class MapConroler extends cc.Component {
this.node.parent.parent.parent.getComponent("SceneManager").openPropBuy("freeze");
}
else {
cc.fx.GameTool.setGray(this.timeBtn.node, true);
this.timeBtn.node.getChildByName("mul10").opacity = 0;
if (!this.node.parent.getChildByName("Ice").active && !this.pause) {
if (cc.fx.GameConfig.GM_INFO.otherLevel == 0) {
if (cc.fx.GameConfig.GM_INFO.tasks.useProp.value < cc.fx.GameConfig.GM_INFO.tasks.useProp.target) {
@ -2560,7 +2553,7 @@ export default class MapConroler extends cc.Component {
openIce() {
if (this.node.parent.getChildByName("Ice").active) {
this.freezeMask.active = true; /// false
cc.fx.GameTool.setGray(this.timeBtn.node, true);
// cc.fx.GameTool.setGray(this.timeBtn.node, true);
this.timeBtn.node.getChildByName("mul10").opacity = 0;
// let freezeBtn = this.node.parent.getChildByName("Bottom").getChildByName("timeBtn");

View File

@ -372,7 +372,10 @@ export namespace MiniGameSdk {
this._adVideo.onError((err: { errMsg: string, errCode: number }) => {
console.log('Ad video error:', err);
cc.fx.GameTool.shushu_Track("ad_response", showData);
responseData.is_filled_success = false;
responseData.error_detail_info = err.toString();
responseData.error_detail_code = err.errCode?.toString() || "";
cc.fx.GameTool.shushu_Track("ad_response", responseData);
if (err.errCode) {
console.log('Ad video error code:', err.errCode);
}

View File

@ -1552,7 +1552,7 @@ var GameTool = {
break;
case MiniGameSdk.EAdVideoResult.ERROR:
MiniGameSdk.API.showToast('广告加载失败,请稍后再试');
cc.fx.GameTool.shushu_Track("ad_close", data);
// cc.fx.GameTool.shushu_Track("ad_close", data);
callback(false);
break;
default:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -8,8 +8,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1080,
"height": 170,
"width": 383,
"height": 129,
"platformSettings": {},
"subMetas": {
"top": {
@ -24,10 +24,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 383,
"height": 129,
"rawWidth": 383,
"rawHeight": 129,
"width": 464,
"height": 212,
"rawWidth": 464,
"rawHeight": 212,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 81 KiB

View File

@ -9,7 +9,7 @@
"genMipmaps": false,
"packable": true,
"width": 256,
"height": 1792,
"height": 1924,
"platformSettings": {},
"subMetas": {}
}