DaoYouInfoPanelData.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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 DaoYouInfoPanel
  9. {
  10. #region 自定义数据
  11. private GameObject _Info;
  12. public GameObject Info
  13. {
  14. get{
  15. if (_Info == null)
  16. {
  17. _Info = GetUIUnit<GameObject>("Info");
  18. }
  19. return _Info;
  20. }
  21. }
  22. private GameObject _Facorability;
  23. public GameObject Facorability
  24. {
  25. get{
  26. if (_Facorability == null)
  27. {
  28. _Facorability = GetUIUnit<GameObject>("Facorability");
  29. }
  30. return _Facorability;
  31. }
  32. }
  33. private Button _Btn_InfoMation;
  34. public Button Btn_InfoMation
  35. {
  36. get{
  37. if (_Btn_InfoMation == null)
  38. {
  39. _Btn_InfoMation = GetUIUnit<Button>("Btn_InfoMation");
  40. }
  41. return _Btn_InfoMation;
  42. }
  43. }
  44. private Button _Btn_Facorability;
  45. public Button Btn_Facorability
  46. {
  47. get{
  48. if (_Btn_Facorability == null)
  49. {
  50. _Btn_Facorability = GetUIUnit<Button>("Btn_Facorability");
  51. }
  52. return _Btn_Facorability;
  53. }
  54. }
  55. private Text _Text_Name;
  56. public Text Text_Name
  57. {
  58. get{
  59. if (_Text_Name == null)
  60. {
  61. _Text_Name = GetUIUnit<Text>("Text_Name");
  62. }
  63. return _Text_Name;
  64. }
  65. }
  66. private Text _Text_JingJie;
  67. public Text Text_JingJie
  68. {
  69. get{
  70. if (_Text_JingJie == null)
  71. {
  72. _Text_JingJie = GetUIUnit<Text>("Text_JingJie");
  73. }
  74. return _Text_JingJie;
  75. }
  76. }
  77. private Button _Btn_SendGift;
  78. public Button Btn_SendGift
  79. {
  80. get{
  81. if (_Btn_SendGift == null)
  82. {
  83. _Btn_SendGift = GetUIUnit<Button>("Btn_SendGift");
  84. }
  85. return _Btn_SendGift;
  86. }
  87. }
  88. private RectTransform _DaoYouLevelWidgetContent;
  89. public RectTransform DaoYouLevelWidgetContent
  90. {
  91. get{
  92. if (_DaoYouLevelWidgetContent == null)
  93. {
  94. _DaoYouLevelWidgetContent = GetUIUnit<RectTransform>("DaoYouLevelWidgetContent");
  95. }
  96. return _DaoYouLevelWidgetContent;
  97. }
  98. }
  99. private Text _Text_CurrentLevel;
  100. public Text Text_CurrentLevel
  101. {
  102. get{
  103. if (_Text_CurrentLevel == null)
  104. {
  105. _Text_CurrentLevel = GetUIUnit<Text>("Text_CurrentLevel");
  106. }
  107. return _Text_CurrentLevel;
  108. }
  109. }
  110. private Text _Text_CurrentName;
  111. public Text Text_CurrentName
  112. {
  113. get{
  114. if (_Text_CurrentName == null)
  115. {
  116. _Text_CurrentName = GetUIUnit<Text>("Text_CurrentName");
  117. }
  118. return _Text_CurrentName;
  119. }
  120. }
  121. private Text _Text_Exp;
  122. public Text Text_Exp
  123. {
  124. get{
  125. if (_Text_Exp == null)
  126. {
  127. _Text_Exp = GetUIUnit<Text>("Text_Exp");
  128. }
  129. return _Text_Exp;
  130. }
  131. }
  132. private Slider _Slider_LeveUp;
  133. public Slider Slider_LeveUp
  134. {
  135. get{
  136. if (_Slider_LeveUp == null)
  137. {
  138. _Slider_LeveUp = GetUIUnit<Slider>("Slider_LeveUp");
  139. }
  140. return _Slider_LeveUp;
  141. }
  142. }
  143. private Text _Text_Desc;
  144. public Text Text_Desc
  145. {
  146. get{
  147. if (_Text_Desc == null)
  148. {
  149. _Text_Desc = GetUIUnit<Text>("Text_Desc");
  150. }
  151. return _Text_Desc;
  152. }
  153. }
  154. private RectTransform _LoveItemContent;
  155. public RectTransform LoveItemContent
  156. {
  157. get{
  158. if (_LoveItemContent == null)
  159. {
  160. _LoveItemContent = GetUIUnit<RectTransform>("LoveItemContent");
  161. }
  162. return _LoveItemContent;
  163. }
  164. }
  165. private RectTransform _GuajiContent;
  166. public RectTransform GuajiContent
  167. {
  168. get{
  169. if (_GuajiContent == null)
  170. {
  171. _GuajiContent = GetUIUnit<RectTransform>("GuajiContent");
  172. }
  173. return _GuajiContent;
  174. }
  175. }
  176. private RectTransform _DaoLvContent;
  177. public RectTransform DaoLvContent
  178. {
  179. get{
  180. if (_DaoLvContent == null)
  181. {
  182. _DaoLvContent = GetUIUnit<RectTransform>("DaoLvContent");
  183. }
  184. return _DaoLvContent;
  185. }
  186. }
  187. private GameObject _GiveGite;
  188. public GameObject GiveGite
  189. {
  190. get{
  191. if (_GiveGite == null)
  192. {
  193. _GiveGite = GetUIUnit<GameObject>("GiveGite");
  194. }
  195. return _GiveGite;
  196. }
  197. }
  198. private Button _Btn_Back;
  199. public Button Btn_Back
  200. {
  201. get{
  202. if (_Btn_Back == null)
  203. {
  204. _Btn_Back = GetUIUnit<Button>("Btn_Back");
  205. }
  206. return _Btn_Back;
  207. }
  208. }
  209. #endregion 自定义数据结束
  210. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  211. {
  212. await base.SetUIGameObject(gObjectPoolInterface);
  213. Init();
  214. }
  215. }
  216. }