HeroInformationPanelData.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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 HeroInformationPanel
  9. {
  10. #region 自定义数据
  11. private Text _Text_Jingjie;
  12. public Text Text_Jingjie
  13. {
  14. get{
  15. if (_Text_Jingjie == null)
  16. {
  17. _Text_Jingjie = GetUIUnit<Text>("Text_Jingjie");
  18. }
  19. return _Text_Jingjie;
  20. }
  21. }
  22. private Text _Text_Speed;
  23. public Text Text_Speed
  24. {
  25. get{
  26. if (_Text_Speed == null)
  27. {
  28. _Text_Speed = GetUIUnit<Text>("Text_Speed");
  29. }
  30. return _Text_Speed;
  31. }
  32. }
  33. private Text _Text_exp;
  34. public Text Text_exp
  35. {
  36. get{
  37. if (_Text_exp == null)
  38. {
  39. _Text_exp = GetUIUnit<Text>("Text_exp");
  40. }
  41. return _Text_exp;
  42. }
  43. }
  44. private Text _Text_Level;
  45. public Text Text_Level
  46. {
  47. get{
  48. if (_Text_Level == null)
  49. {
  50. _Text_Level = GetUIUnit<Text>("Text_Level");
  51. }
  52. return _Text_Level;
  53. }
  54. }
  55. private Slider _Slider_Exp;
  56. public Slider Slider_Exp
  57. {
  58. get{
  59. if (_Slider_Exp == null)
  60. {
  61. _Slider_Exp = GetUIUnit<Slider>("Slider_Exp");
  62. }
  63. return _Slider_Exp;
  64. }
  65. }
  66. private Button _Btn_TuPo;
  67. public Button Btn_TuPo
  68. {
  69. get{
  70. if (_Btn_TuPo == null)
  71. {
  72. _Btn_TuPo = GetUIUnit<Button>("Btn_TuPo");
  73. }
  74. return _Btn_TuPo;
  75. }
  76. }
  77. private Button _Btn_Dujie;
  78. public Button Btn_Dujie
  79. {
  80. get{
  81. if (_Btn_Dujie == null)
  82. {
  83. _Btn_Dujie = GetUIUnit<Button>("Btn_Dujie");
  84. }
  85. return _Btn_Dujie;
  86. }
  87. }
  88. private Button _Btn_DanYao;
  89. public Button Btn_DanYao
  90. {
  91. get{
  92. if (_Btn_DanYao == null)
  93. {
  94. _Btn_DanYao = GetUIUnit<Button>("Btn_DanYao");
  95. }
  96. return _Btn_DanYao;
  97. }
  98. }
  99. private Button _Btn_Close;
  100. public Button Btn_Close
  101. {
  102. get{
  103. if (_Btn_Close == null)
  104. {
  105. _Btn_Close = GetUIUnit<Button>("Btn_Close");
  106. }
  107. return _Btn_Close;
  108. }
  109. }
  110. private RectTransform _HeroRoot;
  111. public RectTransform HeroRoot
  112. {
  113. get{
  114. if (_HeroRoot == null)
  115. {
  116. _HeroRoot = GetUIUnit<RectTransform>("HeroRoot");
  117. }
  118. return _HeroRoot;
  119. }
  120. }
  121. private RectTransform _AttributeRoot;
  122. public RectTransform AttributeRoot
  123. {
  124. get{
  125. if (_AttributeRoot == null)
  126. {
  127. _AttributeRoot = GetUIUnit<RectTransform>("AttributeRoot");
  128. }
  129. return _AttributeRoot;
  130. }
  131. }
  132. #endregion 自定义数据结束
  133. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  134. {
  135. await base.SetUIGameObject(gObjectPoolInterface);
  136. Init();
  137. }
  138. }
  139. }