///<summary> ///初始化物品集合 ///</summary> public void Init() { GoodsWarehouse gw = GameManager.GameInfo.AllGoodsList; this.GoodsList.Add(gw.Bread.Name, gw.Bread); this.GoodsList.Add(gw.Calcium.Name, gw.Calcium); this.GoodsList.Add(gw.Flower.Name, gw.Flower); this.GoodsList.Add(gw.Lottery.Name, gw.Lottery); this.GoodsList.Add(gw.QQStar.Name, gw.QQStar); this.GoodsList.Add(gw.Badge.Name, gw.Badge); }
//包裹 private void lblParcel_Click(object sender, EventArgs e) { GoodsWarehouse gw = GameManager.GameInfo.AllGoodsList; //显示包裹中所有物品数量 this.lblBreadNum.Text = "x" + GameManager.GameInfo.Pack.GoodsList[gw.Bread].ToString(); this.lblCalciumNum.Text = "x" + GameManager.GameInfo.Pack.GoodsList[gw.Calcium].ToString(); this.lblFlowerNum.Text = "x" + GameManager.GameInfo.Pack.GoodsList[gw.Flower].ToString(); this.lblLotteryNum.Text = "x" + GameManager.GameInfo.Pack.GoodsList[gw.Lottery].ToString(); this.lblQQNum.Text = "x" + GameManager.GameInfo.Pack.GoodsList[gw.QQStar].ToString(); this.lblBadgeNum.Text = "x" + GameManager.GameInfo.Pack.GoodsList[gw.Badge].ToString(); this.pnlParcel.Visible = true; }