using System; using System.Collections.Generic; using ET; using FairyGUI; using UI.Store; namespace GFGGame { public class ShopViewManager : SingletonBase { public void BuyItem(int itemId, int itemCount, int shopType, ShopCfg shopCfg) { BuyItemConteoller.Show(itemId, itemCount, ConstBuyType.TYPE_SHOP, shopType, () => { LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.FU_ZHUANG_DIAN, 2); GetSuitItemController.TryShow(0); }, true, false, GameConst.MAX_COUNT_TO_BUY_ITEMS); } public void UpdateVipProgressCom(GObject obj) { UI_ComVipLv com = UI_ComVipLv.Proxy(obj); com.m_txtLv.text = RoleDataManager.vipLv.ToString(); VipCfg vipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv); com.m_proExp.target.max = vipCfg.num; com.m_proExp.target.value = RoleDataManager.vipExp; UI_ComVipLv.ProxyEnd(); } } }