Quellcode durchsuchen

修改商城不能切换问题

eraser vor 3 Jahren
Ursprung
Commit
39cf5ccfe8

Datei-Diff unterdrückt, da er zu groß ist
+ 180 - 156
assets/Scene/MyCityScene - 004.fire


+ 8 - 24
assets/Script/UI/StoreView.js

@@ -111,7 +111,7 @@ cc.Class({
         this.ExchangeBtn.setScale(1);
 
         this.SeedBtn.getComponent(cc.Sprite).spriteFrame = this.Normal_Seed_Sprite;
-        this.ExchangeBtn.getComponent(cc.Sprite).spriteFrame = this.Normal_Fruit_Sprite;
+        this.ExchangeBtn.getComponent(cc.Sprite).spriteFrame = this.Normal_Exchange_Sprite;
 
         this.SeedBtn.setContentSize(100, 54);
         this.ExchangeBtn.setContentSize(100, 54);
@@ -129,35 +129,19 @@ cc.Class({
             this.Seed.active = true;
             this.SelectedFrame.parent = this.seedNodeArry[0];
 
-            if (this.mySeedList.length > 0) {
-                let Synopsis = "成熟期:" + this.mySeedList[0].maturity;
-                this.ManageUI.getComponent('ManageUI').onSetButtonInfo(this.mySeedList[0].name, this.mySeedList[0].priceSnb, Synopsis);
-            }
+            //if (this.mySeedList.length > 0) {
+            //    let Synopsis = "成熟期:" + this.mySeedList[0].maturity;
+            //    this.ManageUI.getComponent('ManageUI').onSetButtonInfo(this.mySeedList[0].name, this.mySeedList[0].priceSnb, Synopsis);
+            //}
 
             this.SeedBtn.setSiblingIndex(10);
             this.SeedBtn.setContentSize(86, 88);
-             //     {
-        //         "id": 1,
-        //         "mallType": "0",
-        //         "picture": null,
-        //         "name": "白菜种子",
-        //         "maturity": 100,
-        //         "planting": 100,
-        //         "harvestQuantity": 2500,
-        //         "harvestCount": 2500,
-        //         "harvestName": "大白菜",
-        //         "price": 99,
-        //         "amount": 0,
-        //         "withered": 200,
-        //         "createTime": "2022-01-10 16:45:18",
-        //         "updateTime": "2022-01-10 16:45:26"
-        //     },
         }
         //兑换
         else if ('2' == index) {
-            this.FruitBtn.y = -20;
-            this.FruitBtn.getComponent(cc.Sprite).spriteFrame = this.Selecteded_Fruit_Sprite;
-            this.Fruit.active = true;
+            this.ExchangeBtn.y = -20;
+            this.ExchangeBtn.getComponent(cc.Sprite).spriteFrame = this.Selecteded_Exchange_Sprite;
+            this.Exchange.active = true;
 
             this.ExchangeBtn.setSiblingIndex(10);
             this.ExchangeBtn.setContentSize(86, 88);

BIN
assets/UI/NBuilding/Store/StoreTitle.png


+ 34 - 0
assets/UI/NBuilding/Store/StoreTitle.png.meta

@@ -0,0 +1,34 @@
+{
+  "ver": "2.3.3",
+  "uuid": "b6c42722-35b9-4cd5-8c8e-acc1d5036ea9",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "genMipmaps": false,
+  "packable": true,
+  "platformSettings": {},
+  "subMetas": {
+    "StoreTitle": {
+      "ver": "1.0.4",
+      "uuid": "41a46ec3-98e8-43b7-b8cb-e7502bbb89c1",
+      "rawTextureUuid": "b6c42722-35b9-4cd5-8c8e-acc1d5036ea9",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 0,
+      "offsetY": 0,
+      "trimX": 0,
+      "trimY": 0,
+      "width": 293,
+      "height": 121,
+      "rawWidth": 293,
+      "rawHeight": 121,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.