public void SetDetailData(string theFashionDataID, FashionPreviewCell.FashionPreviewCellType type) { if (!string.IsNullOrEmpty(theFashionDataID) && DataReader <ShiZhuangXiTong> .Contains(theFashionDataID)) { ShiZhuangXiTong shiZhuangXiTong = DataReader <ShiZhuangXiTong> .Get(theFashionDataID); if (DataReader <Items> .Contains(shiZhuangXiTong.itemsID)) { Items items = DataReader <Items> .Get(shiZhuangXiTong.itemsID); this.ShowTitle(true); this.ShowTimeLimitMark(shiZhuangXiTong.quality == 1); this.SetAttrText(this.IsTypeShowAttr(type), (shiZhuangXiTong.gainProperty != 0) ? AttrUtility.GetAllStandardAddDesc(shiZhuangXiTong.gainProperty) : null); this.SetTitleName((shiZhuangXiTong.title != 0) ? (GameDataUtils.GetChineseContent(shiZhuangXiTong.title, false) + "\n" + GameDataUtils.GetChineseContent(items.name, false)) : GameDataUtils.GetChineseContent(items.name, false)); this.SetConditionText(true, GameDataUtils.GetChineseContent(items.describeId2, false)); } else { this.ShowTitle(false); this.SetConditionText(false, string.Empty); this.SetAttrText(false, null); } } else { this.ShowTitle(false); this.SetConditionText(false, string.Empty); this.SetAttrText(false, null); } }
public void FlushData(List <string> allFashionDataID, FashionPreviewCell.FashionPreviewCellType cellType, string attrText, bool isForceHideAttr) { this.SetPreview(allFashionDataID, cellType); this.ShowClotherBtnBadge(false); this.ShowWeaponBtnBadge(false); this.ShowWingBtnBadge(false); this.ShowWingAttr(attrText, isForceHideAttr); switch (this.curSeleteType) { case FashionDataSelete.Clothes: FashionManager.Instance.FlushFashionUI(FashionDataSelete.Clothes); break; case FashionDataSelete.Weapon: FashionManager.Instance.FlushFashionUI(FashionDataSelete.Weapon); break; case FashionDataSelete.Wing: FashionManager.Instance.FlushFashionUI(FashionDataSelete.Wing); break; default: this.OnClotherBtnClick(); break; } }
protected void SetType(FashionPreviewCell.FashionPreviewCellType type) { switch (type) { case FashionPreviewCell.FashionPreviewCellType.None: this.FashionPreviewCellCondition.set_localPosition(this.FashionPreviewCellConditionSlot1.get_localPosition()); this.FashionPreviewCellAttr.set_localPosition(this.FashionPreviewCellAttrSlot1.get_localPosition()); this.ShowDressBtn(false); this.ShowUndressBtn(false); this.ShowRenewalBtn(false); this.ShowBuyBtn(false); break; case FashionPreviewCell.FashionPreviewCellType.Dress: this.FashionPreviewCellCondition.set_localPosition(this.FashionPreviewCellConditionSlot0.get_localPosition()); this.FashionPreviewCellAttr.set_localPosition(this.FashionPreviewCellAttrSlot0.get_localPosition()); this.ShowDressBtn(true); this.ShowUndressBtn(false); this.ShowRenewalBtn(false); this.ShowBuyBtn(false); break; case FashionPreviewCell.FashionPreviewCellType.Undress: this.FashionPreviewCellCondition.set_localPosition(this.FashionPreviewCellConditionSlot0.get_localPosition()); this.FashionPreviewCellAttr.set_localPosition(this.FashionPreviewCellAttrSlot0.get_localPosition()); this.ShowDressBtn(false); this.ShowUndressBtn(true); this.ShowRenewalBtn(false); this.ShowBuyBtn(false); break; case FashionPreviewCell.FashionPreviewCellType.Renewal: this.FashionPreviewCellCondition.set_localPosition(this.FashionPreviewCellConditionSlot0.get_localPosition()); this.FashionPreviewCellAttr.set_localPosition(this.FashionPreviewCellAttrSlot0.get_localPosition()); this.ShowDressBtn(false); this.ShowUndressBtn(false); this.ShowRenewalBtn(true); this.ShowBuyBtn(false); break; case FashionPreviewCell.FashionPreviewCellType.Buy: this.FashionPreviewCellCondition.set_localPosition(this.FashionPreviewCellConditionSlot0.get_localPosition()); this.FashionPreviewCellAttr.set_localPosition(this.FashionPreviewCellAttrSlot0.get_localPosition()); this.ShowDressBtn(false); this.ShowUndressBtn(false); this.ShowRenewalBtn(false); this.ShowBuyBtn(true); break; case FashionPreviewCell.FashionPreviewCellType.Wardrobe: this.FashionPreviewCellCondition.set_localPosition(this.FashionPreviewCellConditionSlot1.get_localPosition()); this.FashionPreviewCellAttr.set_localPosition(this.FashionPreviewCellAttrSlot1.get_localPosition()); this.ShowDressBtn(false); this.ShowUndressBtn(false); this.ShowRenewalBtn(false); this.ShowBuyBtn(false); break; } }
public void SetPreview(List <string> allFashionDataID, FashionPreviewCell.FashionPreviewCellType cellType) { if (this.fashionPreviewCell != null && this.fashionPreviewCell.get_gameObject() != null) { Object.Destroy(this.fashionPreviewCell.get_gameObject()); } this.fashionPreviewCell = FashionPreviewManager.Instance.GetPreview(this.FashionUIPreviewCellSlot); this.fashionPreviewCell.SetData(allFashionDataID, string.Empty, cellType, false); }
public void SetData(List <string> theAllFashionDataID, string theFashionDataID, FashionPreviewCell.FashionPreviewCellType type, bool isShowBG = true) { this.fashionDataID = theFashionDataID; this.allFashionDataID = theAllFashionDataID; this.ShowBG(isShowBG); this.SetDetailData(theFashionDataID, type); this.SetModelData(theAllFashionDataID); this.SetType(type); }
protected void SetPreview(List <string> allFashionDataID, string fashionDataID, FashionPreviewCell.FashionPreviewCellType type) { if (this.fashionPreviewCell != null && this.fashionPreviewCell.get_gameObject() != null) { Object.Destroy(this.fashionPreviewCell.get_gameObject()); } this.fashionPreviewCell = FashionPreviewManager.Instance.GetPreview(this.FashionPreviewCellSlot); this.fashionPreviewCell.Bind(this); this.fashionPreviewCell.SetData(allFashionDataID, fashionDataID, type, true); }
public void SetData(List <string> allFashionDataID, FashionPreviewCell.FashionPreviewCellType cellType, string attrText, bool isForceHideAttr, FashionDataSelete defaultSeleteType) { this.SetPreview(allFashionDataID, cellType); this.ShowClotherBtnBadge(false); this.ShowWeaponBtnBadge(false); this.ShowWingBtnBadge(false); this.ShowWingAttr(attrText, isForceHideAttr); if (defaultSeleteType != FashionDataSelete.Weapon) { if (defaultSeleteType != FashionDataSelete.Wing) { this.OnClotherBtnClick(); } else { this.OnWingBtnClick(); } } else { this.OnWeaponBtnClick(); } }
protected bool IsTypeShowAttr(FashionPreviewCell.FashionPreviewCellType type) { return(type != FashionPreviewCell.FashionPreviewCellType.Wardrobe); }