123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System.Collections.Generic;
- using FairyGUI;
- using UI.ClothingFoster;
- namespace GFGGame
- {
- public class SuitPropertyShowView : BaseWindow
- {
- private UI_SuitPropertyShowUI _ui;
- private Dictionary<string, int> _data = new Dictionary<string, int>();
- public override void Dispose()
- {
- base.Dispose();
- }
- protected override void OnInit()
- {
- base.OnInit();
- packageName = UI_SuitPropertyShowUI.PACKAGE_NAME;
- _ui = UI_SuitPropertyShowUI.Create();
- this.viewCom = _ui.target;
- this.viewCom.Center();
- this.modal = true;
- // viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
- }
- protected override void OnShown()
- {
- base.OnShown();
- int suitId = (int)(this.viewData as object[])[0];
- int index = (int)(this.viewData as object[])[1];
- SuitFosterCfg cfg = SuitFosterCfgArray.Instance.GetCfgs(suitId)[index];
- for (int i = 0; i < cfg.partsArr.Length; i++)
- {
- ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(cfg.partsArr[i][0]);
- string type = ItemTypeCfgArray.Instance.GetCfg(itemCfg.subType).name;
- // if(!_data.ContainsKey(type))
- // int
- // _data.Add()
- }
- }
- protected override void OnHide()
- {
- base.OnHide();
- }
- }
- }
|