public void Set_ShopPuchase(Infos_Shop _infosShop, STOREMODE_TYPE _storemode) { InfosShop = _infosShop; ShopType = _storemode; //ui 정보 적용 Apply_popupUI(); }
public void Set_info(Infos_Shop _infos_shop, BonusInfo _bounusInfo, STOREMODE_TYPE _nowStoreMode) { nowSotreMode = _nowStoreMode; infos_shop = _infos_shop; bounusInfo = _bounusInfo; ApplyInfo(nowSotreMode); }
//생성할 element 생성및 정보설정 void CreateEleInfo(Infos_Shop shopinfo, STOREMODE_TYPE _storemode) { UIItem_StoreElement storeEle = ui_Mgr.CreatUI(UIITEM.ITEM_STOREELEMENT, Tr_Content) as UIItem_StoreElement; BonusInfo bouns = new BonusInfo(0, 0, (int)shopinfo.BnsItNum, (ITEMTYPE)shopinfo.BnsItTp, (int)shopinfo.BnsIdx); storeEle.Set_info(shopinfo, bouns, _storemode); Lst_storeElement.Add(storeEle); }
void showEventBanner() { //캐릭로비 로테이트 비활성 User.isSelectedCharacter = true; //스폐셜상품 인덱스 ushort SpecialShopProductIdx = 308; Infos_Shop specialShopInfo = null; if (TableDataManager.instance.Infos_shops.ContainsKey(SpecialShopProductIdx)) { specialShopInfo = TableDataManager.instance.Infos_shops[SpecialShopProductIdx]; } if (specialShopInfo != null) { UI_Popup_ShopPurchase popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_ShopPurchase>(UIPOPUP.POPUPSHOPPURCHASE); popup.Set_ShopPuchase(specialShopInfo, STOREMODE_TYPE.Package); } }
//생성할 element 생성및 정보설정 void CreateEleInfo(Infos_Shop shopinfo, STOREMODE_TYPE _storemode) { UIItem_StoreElement storeEle = null; //패키지 ,스폐셜 상품 예외처리 if (_storemode == STOREMODE_TYPE.Package || _storemode == STOREMODE_TYPE.Special) { storeEle = UI_Manager.Getsingleton.CreatUI(UIITEM.ITEM_STOREPACKAGEELEMENT, Tr_Content) as UIItem_StoreElement; BonusInfo bouns = new BonusInfo(0, 0, (int)shopinfo.BnsItNum, (ITEMTYPE)shopinfo.BnsItTp, (int)shopinfo.BnsIdx); storeEle.Set_info(shopinfo, bouns, _storemode); Lst_storePackageElemnet.Add(storeEle); } else { storeEle = UI_Manager.Getsingleton.CreatUI(UIITEM.ITEM_STOREELEMENT, Tr_Content) as UIItem_StoreElement; BonusInfo bouns = new BonusInfo(0, 0, (int)shopinfo.BnsItNum, (ITEMTYPE)shopinfo.BnsItTp, (int)shopinfo.BnsIdx); storeEle.Set_info(shopinfo, bouns, _storemode); Lst_storeElement.Add(storeEle); } }
void Applydata_Shop(List <object> lstData) { for (int i = 0; i < lstData.Count; i++) { List <object> lstShop = (List <object>)lstData[i]; Infos_Shop _infos_shop = new Infos_Shop(); for (int j = 0; j < lstShop.Count; j++) { if (j == 0) { _infos_shop.ShopIdx = Convert.ToUInt16(lstShop[j]); } else if (j == 1) { _infos_shop.SellItTp = Convert.ToByte(lstShop[j]); } else if (j == 2) { _infos_shop.SellItNum = Convert.ToUInt32(lstShop[j]); } else if (j == 3) { _infos_shop.BnsItTp = Convert.ToByte(lstShop[j]); } else if (j == 4) { _infos_shop.BnsIdx = Convert.ToUInt32(lstShop[j]); } else if (j == 5) { _infos_shop.BnsItNum = Convert.ToUInt32(lstShop[j]); } else if (j == 6) { _infos_shop.BuyItTp = Convert.ToByte(lstShop[j]); } else if (j == 7) { _infos_shop.BuyOriItNum = Convert.ToUInt32(lstShop[j]); } else if (j == 8) { _infos_shop.BuyItNum = Convert.ToUInt32(lstShop[j]); } else if (j == 9) { _infos_shop.ShopTxt = Convert.ToString(lstShop[j]); } else if (j == 10) { _infos_shop.SortIdx = Convert.ToByte(lstShop[j]); } else if (j == 11) { _infos_shop.OpenFlg = Convert.ToByte(lstShop[j]); } else if (j == 12) { _infos_shop.PurLimit = Convert.ToByte(lstShop[j]); } else if (j == 13) { _infos_shop.AdDelFlg = Convert.ToByte(lstShop[j]); } else if (j == 14) { _infos_shop.OriginPrice = Convert.ToString(lstShop[j]); } } Infos_shops[_infos_shop.ShopIdx] = _infos_shop; } }