WidgetIconSkillData.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. using Fort23.Core;
  2. using Fort23.UTool;
  3. using UnityEngine.UI;
  4. using UnityEngine;
  5. using System.Collections.Generic;
  6. using TMPro;
  7. namespace Fort23.Mono
  8. {
  9. public partial class WidgetIconSkill
  10. {
  11. #region 自定义数据
  12. private MyImage _iconSkill;
  13. public MyImage iconSkill
  14. {
  15. get{
  16. if (_iconSkill == null)
  17. {
  18. _iconSkill = GetUIUnit<MyImage>("iconSkill");
  19. }
  20. return _iconSkill;
  21. }
  22. }
  23. private TextMeshProUGUI _txtLv;
  24. public TextMeshProUGUI txtLv
  25. {
  26. get{
  27. if (_txtLv == null)
  28. {
  29. _txtLv = GetUIUnit<TextMeshProUGUI>("txtLv");
  30. }
  31. return _txtLv;
  32. }
  33. }
  34. private GameObject _unLockObj;
  35. public GameObject unLockObj
  36. {
  37. get{
  38. if (_unLockObj == null)
  39. {
  40. _unLockObj = GetUIUnit<GameObject>("unLockObj");
  41. }
  42. return _unLockObj;
  43. }
  44. }
  45. private GameObject _lockObj;
  46. public GameObject lockObj
  47. {
  48. get{
  49. if (_lockObj == null)
  50. {
  51. _lockObj = GetUIUnit<GameObject>("lockObj");
  52. }
  53. return _lockObj;
  54. }
  55. }
  56. private List<object> _stars;
  57. public List<object> stars
  58. {
  59. get{
  60. if (_stars == null)
  61. {
  62. _stars = GetUIUnit<List<object>>("stars");
  63. }
  64. return _stars;
  65. }
  66. }
  67. private GameObject _lockImgObj;
  68. public GameObject lockImgObj
  69. {
  70. get{
  71. if (_lockImgObj == null)
  72. {
  73. _lockImgObj = GetUIUnit<GameObject>("lockImgObj");
  74. }
  75. return _lockImgObj;
  76. }
  77. }
  78. private Button _btnSkillDetail;
  79. public Button btnSkillDetail
  80. {
  81. get{
  82. if (_btnSkillDetail == null)
  83. {
  84. _btnSkillDetail = GetUIUnit<Button>("btnSkillDetail");
  85. }
  86. return _btnSkillDetail;
  87. }
  88. }
  89. private MyImage _imgBorder;
  90. public MyImage imgBorder
  91. {
  92. get{
  93. if (_imgBorder == null)
  94. {
  95. _imgBorder = GetUIUnit<MyImage>("imgBorder");
  96. }
  97. return _imgBorder;
  98. }
  99. }
  100. #endregion 自定义数据结束
  101. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  102. {
  103. await base.SetUIGameObject(gObjectPoolInterface);
  104. Init();
  105. }
  106. }
  107. }