1.更换load背景

2.修改引导给道具UI数量
3.修改分享点击状态
This commit is contained in:
huanghaipeng 2025-10-13 10:21:39 +08:00
parent 85f336acca
commit 6af51f34e7
3 changed files with 4 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 KiB

After

Width:  |  Height:  |  Size: 274 KiB

View File

@ -2559,7 +2559,7 @@ export default class MapConroler extends cc.Component {
// this.iceLabel.string = cc.fx.GameConfig.GM_INFO.freezeAmount.toString();
// MiniGameSdk.API.showToast("购买冻结时间成功");
let data = [
{ type: "freeze", count: 3 },
{ type: "freeze", count: 1 },
]
MapConroler._instance.SceneManager.openRewardWindow(data, () => {
console.log("_________恢复游戏");
@ -2585,7 +2585,7 @@ export default class MapConroler extends cc.Component {
this.setPropNum();
// this.magicLabel.string = cc.fx.GameConfig.GM_INFO.magicAmount.toString();
let data = [
{ type: "magic", count: 3 },
{ type: "magic", count: 1 },
]
MapConroler._instance.SceneManager.openRewardWindow(data, () => {
console.log("_________恢复游戏");

View File

@ -361,10 +361,11 @@ export default class SceneManager extends cc.Component {
clickBtn() {
console.log("点击按钮得锤子")
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
let propWindow = this.node.getChildByName("Game").getChildByName("propWindow").getChildByName("prop");
if (propWindow.getChildByName("share_Btn").getComponent("btnControl")._touch) {
propWindow.getChildByName("share_Btn").getComponent("btnControl").setTouch(false);
// propWindow.getChildByName("share_Btn").getComponent("btnControl").setTouch(false);
if (this.btnName == "freeze")
MapConroler._instance.buyFreeze();
else if (this.btnName == "hammer")