SkillInfopanelData.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. using Fort23.Core;
  2. using Fort23.UTool;
  3. using UnityEngine.UI;
  4. using UnityEngine;
  5. using System.Collections.Generic;
  6. namespace Fort23.Mono
  7. {
  8. public partial class SkillInfopanel
  9. {
  10. #region 自定义数据
  11. private Button _Btn_Close;
  12. public Button Btn_Close
  13. {
  14. get{
  15. if (_Btn_Close == null)
  16. {
  17. _Btn_Close = GetUIUnit<Button>("Btn_Close");
  18. }
  19. return _Btn_Close;
  20. }
  21. }
  22. private Text _Text_Name;
  23. public Text Text_Name
  24. {
  25. get{
  26. if (_Text_Name == null)
  27. {
  28. _Text_Name = GetUIUnit<Text>("Text_Name");
  29. }
  30. return _Text_Name;
  31. }
  32. }
  33. private Text _Text_Level;
  34. public Text Text_Level
  35. {
  36. get{
  37. if (_Text_Level == null)
  38. {
  39. _Text_Level = GetUIUnit<Text>("Text_Level");
  40. }
  41. return _Text_Level;
  42. }
  43. }
  44. private Text _Text_tip;
  45. public Text Text_tip
  46. {
  47. get{
  48. if (_Text_tip == null)
  49. {
  50. _Text_tip = GetUIUnit<Text>("Text_tip");
  51. }
  52. return _Text_tip;
  53. }
  54. }
  55. private Text _Text_Power;
  56. public Text Text_Power
  57. {
  58. get{
  59. if (_Text_Power == null)
  60. {
  61. _Text_Power = GetUIUnit<Text>("Text_Power");
  62. }
  63. return _Text_Power;
  64. }
  65. }
  66. private Text _Text_massge;
  67. public Text Text_massge
  68. {
  69. get{
  70. if (_Text_massge == null)
  71. {
  72. _Text_massge = GetUIUnit<Text>("Text_massge");
  73. }
  74. return _Text_massge;
  75. }
  76. }
  77. private Text _Text_Tag;
  78. public Text Text_Tag
  79. {
  80. get{
  81. if (_Text_Tag == null)
  82. {
  83. _Text_Tag = GetUIUnit<Text>("Text_Tag");
  84. }
  85. return _Text_Tag;
  86. }
  87. }
  88. private GameObject _StarRootGam;
  89. public GameObject StarRootGam
  90. {
  91. get{
  92. if (_StarRootGam == null)
  93. {
  94. _StarRootGam = GetUIUnit<GameObject>("StarRootGam");
  95. }
  96. return _StarRootGam;
  97. }
  98. }
  99. private List<MyImage> _StarRoot;
  100. public List<MyImage> StarRoot
  101. {
  102. get{
  103. if (_StarRoot == null)
  104. {
  105. _StarRoot = GetUIUnit<List<MyImage>>("StarRoot");
  106. }
  107. return _StarRoot;
  108. }
  109. }
  110. private MyImage _Icon_SkillIcon;
  111. public MyImage Icon_SkillIcon
  112. {
  113. get{
  114. if (_Icon_SkillIcon == null)
  115. {
  116. _Icon_SkillIcon = GetUIUnit<MyImage>("Icon_SkillIcon");
  117. }
  118. return _Icon_SkillIcon;
  119. }
  120. }
  121. #endregion 自定义数据结束
  122. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  123. {
  124. await base.SetUIGameObject(gObjectPoolInterface);
  125. Init();
  126. }
  127. }
  128. }