SuitPropertyShowView.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System.Collections.Generic;
  2. using FairyGUI;
  3. using UI.ClothingFoster;
  4. namespace GFGGame
  5. {
  6. public class SuitPropertyShowView : BaseWindow
  7. {
  8. private UI_SuitPropertyShowUI _ui;
  9. private Dictionary<string, int> _data = new Dictionary<string, int>();
  10. public override void Dispose()
  11. {
  12. base.Dispose();
  13. }
  14. protected override void OnInit()
  15. {
  16. base.OnInit();
  17. packageName = UI_SuitPropertyShowUI.PACKAGE_NAME;
  18. _ui = UI_SuitPropertyShowUI.Create();
  19. this.viewCom = _ui.target;
  20. this.viewCom.Center();
  21. this.modal = true;
  22. // viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
  23. }
  24. protected override void OnShown()
  25. {
  26. base.OnShown();
  27. int suitId = (int)(this.viewData as object[])[0];
  28. int index = (int)(this.viewData as object[])[1];
  29. SuitFosterCfg cfg = SuitFosterCfgArray.Instance.GetCfgs(suitId)[index];
  30. for (int i = 0; i < cfg.partsArr.Length; i++)
  31. {
  32. ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(cfg.partsArr[i][0]);
  33. string type = ItemTypeCfgArray.Instance.GetCfg(itemCfg.subType).name;
  34. // if(!_data.ContainsKey(type))
  35. // int
  36. // _data.Add()
  37. }
  38. }
  39. protected override void OnHide()
  40. {
  41. base.OnHide();
  42. }
  43. }
  44. }