Exemple #1
0
 void SetGoodsPriceType(tagShopItemConfig ItemInfo)
 {
     if (ItemInfo.PriceGlobel > 0)
     {
         m_ItemPrice.text           = Utility.NumToString(ItemInfo.PriceGlobel);
         m_ItemPriceIcon.spriteName = "HallBtn_Gold";
     }
     else if (ItemInfo.PriceCurrey > 0)
     {
         m_ItemPrice.text           = Utility.NumToString(ItemInfo.PriceCurrey);
         m_ItemPriceIcon.spriteName = "HallBtn_Diamond";
     }
     else
     {
         m_ItemPrice.text           = Utility.NumToString(ItemInfo.PriceMabel);
         m_ItemPriceIcon.spriteName = "HallBtn_Medal";
     }
 }
Exemple #2
0
 public void SetShopItemInfo(byte shopID, tagShopItemConfig ItemInfo, tagShopItemStr ItemStr)
 {
     m_ShopID              = shopID;
     m_OnlyID              = ItemInfo.ItemInde;
     m_ItemInfo            = ItemInfo;
     m_ItemName.text       = ItemStr.ItemName;
     m_ItemIcon.spriteName = ItemStr.ItemIcon;
     if (m_ItemDesc != null)
     {
         string str = ItemStr.ItemDec;
         str             = str.Replace("/n", "\n");
         m_ItemDesc.text = str;
     }
     if (m_ItemSum != null)
     {
         m_ItemSum.text = "x " + Utility.NumToThousand(ItemInfo.ItemInfo.ItemSum);
     }
     SetGoodsPriceType(ItemInfo);
 }
Exemple #3
0
 public void ShowGoodsInfo(uint ItemID, tagShopItemConfig payInfo, tagShopItemStr itemStr)
 {
     m_Paytype         = PayType.ITEM;
     m_ItemID          = ItemID;
     m_OnlyID          = payInfo.ItemInde;
     m_ItemIcon.sprite = ResManager.Instance.LoadSprite("BuYu/Texture/GoodsIcon/" + itemStr.ItemIcon);
     m_ItemName.text   = itemStr.ItemName;
     if (payInfo.PriceGlobel > 0)
     {
         m_ItemCurPrice.text = payInfo.PriceGlobel.ToString();
     }
     else if (payInfo.PriceMabel > 0)
     {
         m_ItemCurPrice.text = payInfo.PriceMabel.ToString();
     }
     else
     {
         m_ItemCurPrice.text = payInfo.PriceCurrey.ToString();
     }
 }