ソースを参照

game界面ui删除多余部分

wuwangdong 4 年 前
コミット
78d70e71f5
2 ファイル変更49 行追加1527 行削除
  1. 49 1509
      assets/resources/game/prefab/game.prefab
  2. 0 18
      assets/script/game/game/Game.ts

ファイルの差分が大きいため隠しています
+ 49 - 1509
assets/resources/game/prefab/game.prefab


+ 0 - 18
assets/script/game/game/Game.ts

@@ -33,12 +33,6 @@ export default class Game extends cc.Component {
     btn_cashOutNormal: cc.Sprite = null;
     @property({ type: cc.Sprite, displayName: "金猪提现" })
     btn_cashOutGold: cc.Sprite = null;
-    @property({ type: cc.Node, displayName: "气泡红包1" })
-    btn_getRed1: cc.Node = null;
-    @property({ type: cc.Node, displayName: "气泡红包2" })
-    btn_getRed2: cc.Node = null;
-    @property({ type: cc.Node, displayName: "气泡红包3" })
-    btn_getRed3: cc.Node = null;
 
     @property({ type: cc.Node, displayName: "红包币图标" })
     icon_hb: cc.Node = null;
@@ -83,7 +77,6 @@ export default class Game extends cc.Component {
     start() {
         this.initMusic();
         this.initBtns();
-        this.initQiPaos();
         this.initInfo();
         this.autoOpenPanel();
         this.runGuideWeak();
@@ -178,17 +171,6 @@ export default class Game extends cc.Component {
         // sc.init();
     }
 
-    private initQiPaos() {
-        mk.tween.scale(this.btn_getRed1, 0.6, 0, 1, null, 'backOut');
-        mk.tween.scale(this.btn_getRed2, 0.6, 0, 1, null, 'backOut');
-        mk.tween.scale(this.btn_getRed3, 0.6, 0, 1, null, 'backOut');
-
-        let easing_type = '';//sineInOut
-        cc.tween(this.btn_getRed1).to(1.2, { y: 100 }, { easing: easing_type }).to(1.2, { y: 50 }, { easing: easing_type }).union().repeatForever().start();
-        cc.tween(this.btn_getRed2).delay(0.2).to(1.5, { y: 125 }, { easing: easing_type }).to(1.5, { y: 50 }, { easing: easing_type }).union().repeatForever().start();
-        cc.tween(this.btn_getRed3).delay(0.4).to(1, { y: 10 }, { easing: easing_type }).to(1, { y: -50 }, { easing: easing_type }).union().repeatForever().start();
-    }
-
     private initInfo() {
         this.lbl_redMoney.string = gData.gameData.gameData.redMoney + "";
         gData.gameData.init_coin = false;

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません