瀏覽代碼

【bug】优化开心收下按钮显示

mojunshou 7 月之前
父節點
當前提交
5db6a805f5
共有 2 個文件被更改,包括 789 次插入257 次删除
  1. 780 254
      assets/bundle/gui/eliminate/prefab/gamePass.prefab
  2. 9 3
      assets/script/game/view/GamePassView.ts

File diff suppressed because it is too large
+ 780 - 254
assets/bundle/gui/eliminate/prefab/gamePass.prefab


+ 9 - 3
assets/script/game/view/GamePassView.ts

@@ -2,7 +2,7 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-03-21 14:43:24
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-27 16:24:43
+ * @LastEditTime: 2025-04-28 20:41:55
  * @Description: 游戏通关弹窗
  */
 import { Label, Node } from 'cc';
@@ -29,7 +29,11 @@ export class GamePassView extends GameComponent {
     @property(Label)
     private lab_tips: Label = null!;
     @property(Node)
-    private receiveNode: Node = null!; //十倍领取
+    private showBtn1: Node = null!;
+
+    @property(Node)
+    private showBtn2: Node = null!;
+
 
     @property([Label])
     private lab_list: Label[] = [];
@@ -65,7 +69,9 @@ export class GamePassView extends GameComponent {
             DCHandler.inst.reportData(3000100, curLevel);
         }
         this.isAuto = smc.game.GameModel.passViewInfo.doubleReward;
-        this.receiveNode.active = this.isAuto;
+        this.showBtn1.active = this.isAuto;
+        this.showBtn2.active = !this.isAuto;
+
         if (this.isAuto) {
             this.setAutoReceive();
         }