ShopViewManager.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using ET;
  4. using FairyGUI;
  5. using UI.Store;
  6. namespace GFGGame
  7. {
  8. public class ShopViewManager : SingletonBase<ShopViewManager>
  9. {
  10. public void BuyItem(int itemId, int itemCount, int shopType, ShopCfg shopCfg)
  11. {
  12. BuyItemConteoller.Show(itemId, itemCount, ConstBuyType.TYPE_SHOP, shopType, () =>
  13. {
  14. LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.FU_ZHUANG_DIAN, 2);
  15. GetSuitItemController.TryShow(0);
  16. }, true, false, GameConst.MAX_COUNT_TO_BUY_ITEMS);
  17. }
  18. public void UpdateVipProgressCom(GObject obj)
  19. {
  20. UI_ComVipLv com = UI_ComVipLv.Proxy(obj);
  21. com.m_txtLv.text = RoleDataManager.vipLv.ToString();
  22. VipCfg vipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv);
  23. com.m_proExp.target.max = vipCfg.num;
  24. com.m_proExp.target.value = RoleDataManager.vipExp;
  25. UI_ComVipLv.ProxyEnd();
  26. }
  27. }
  28. }