using FairyGUI; using UI.ClothingFoster; namespace GFGGame { public class SuitRenewFinishView : BaseWindow { private UI_SuitRenewFinishUI _ui; private int _suitId; public override void Dispose() { base.Dispose(); } protected override void OnInit() { base.OnInit(); packageName = UI_SuitRenewFinishUI.PACKAGE_NAME; _ui = UI_SuitRenewFinishUI.Create(); this.viewCom = _ui.target; this.viewCom.Center(); this.modal = true; // viewAnimationType = EnumViewAnimationType.ZOOM_CENTER; } protected override void OnShown() { base.OnShown(); _suitId = (int)this.viewData; int suitrarity = SuitCfgArray.Instance.GetCfg(_suitId).rarity; SuitRenewCfg renewCfg = SuitRenewCfgArray.Instance.GetCfg(suitrarity); _ui.m_txtProperty.text = string.Format("套装所有部件属性+{0}%", renewCfg.addition * 100 / 10000); } protected override void OnHide() { base.OnHide(); SuitFosterListCfg cfg = SuitFosterListCfgArray.Instance.GetCfg(_suitId); ViewManager.Show(ItemUtil.CreateItemDataList(cfg.renewRewardsArr)); } } }