|
|
@@ -172,7 +172,9 @@ cc.Class({
|
|
|
this.ShopBtn.setSiblingIndex(10);
|
|
|
this.ShopBtn.setContentSize(86,88);
|
|
|
|
|
|
- } else if ('3' == index) {
|
|
|
+ }
|
|
|
+ //特殊
|
|
|
+ else if ('3' == index) {
|
|
|
this.SpeBuildingBtn.y = -20;
|
|
|
this.SpeBuildingBtn.getComponent(cc.Sprite).spriteFrame = this.Selecteded_Spe_Sprite;
|
|
|
this.SpeBuilding.active = true;
|
|
|
@@ -181,7 +183,9 @@ cc.Class({
|
|
|
|
|
|
this.SpeBuildingBtn.setSiblingIndex(10);
|
|
|
this.SpeBuildingBtn.setContentSize(86,88);
|
|
|
- } else if ('4' == index) {
|
|
|
+ }
|
|
|
+ //种子
|
|
|
+ else if ('4' == index) {
|
|
|
this.SeedBtn.y = -20;
|
|
|
this.SeedBtn.getComponent(cc.Sprite).spriteFrame = this.Selecteded_Seed_Sprite;
|
|
|
this.Seed.active = true;
|
|
|
@@ -190,7 +194,9 @@ cc.Class({
|
|
|
|
|
|
this.SeedBtn.setSiblingIndex(10);
|
|
|
this.SeedBtn.setContentSize(86,88);
|
|
|
- } else if ('5' == index) {
|
|
|
+ }
|
|
|
+ //果实
|
|
|
+ else if ('5' == index) {
|
|
|
this.FruitBtn.y = -20;
|
|
|
this.FruitBtn.getComponent(cc.Sprite).spriteFrame = this.Selecteded_Fruit_Sprite;
|
|
|
this.Fruit.active = true;
|