HeroInformationPanelData.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. using Fort23.Core;
  2. using Fort23.UTool;
  3. using UnityEngine.UI;
  4. using UnityEngine;
  5. using System.Collections.Generic;
  6. using Coffee.UIExtensions;
  7. namespace Fort23.Mono
  8. {
  9. public partial class HeroInformationPanel
  10. {
  11. #region 自定义数据
  12. private Text _Text_Jingjie;
  13. public Text Text_Jingjie
  14. {
  15. get{
  16. if (_Text_Jingjie == null)
  17. {
  18. _Text_Jingjie = GetUIUnit<Text>("Text_Jingjie");
  19. }
  20. return _Text_Jingjie;
  21. }
  22. }
  23. private Text _Text_Speed;
  24. public Text Text_Speed
  25. {
  26. get{
  27. if (_Text_Speed == null)
  28. {
  29. _Text_Speed = GetUIUnit<Text>("Text_Speed");
  30. }
  31. return _Text_Speed;
  32. }
  33. }
  34. private Text _Text_exp;
  35. public Text Text_exp
  36. {
  37. get{
  38. if (_Text_exp == null)
  39. {
  40. _Text_exp = GetUIUnit<Text>("Text_exp");
  41. }
  42. return _Text_exp;
  43. }
  44. }
  45. private Text _Text_Level;
  46. public Text Text_Level
  47. {
  48. get{
  49. if (_Text_Level == null)
  50. {
  51. _Text_Level = GetUIUnit<Text>("Text_Level");
  52. }
  53. return _Text_Level;
  54. }
  55. }
  56. private Slider _Slider_Exp;
  57. public Slider Slider_Exp
  58. {
  59. get{
  60. if (_Slider_Exp == null)
  61. {
  62. _Slider_Exp = GetUIUnit<Slider>("Slider_Exp");
  63. }
  64. return _Slider_Exp;
  65. }
  66. }
  67. private Button _Btn_TuPo;
  68. public Button Btn_TuPo
  69. {
  70. get{
  71. if (_Btn_TuPo == null)
  72. {
  73. _Btn_TuPo = GetUIUnit<Button>("Btn_TuPo");
  74. }
  75. return _Btn_TuPo;
  76. }
  77. }
  78. private Button _Btn_Dujie;
  79. public Button Btn_Dujie
  80. {
  81. get{
  82. if (_Btn_Dujie == null)
  83. {
  84. _Btn_Dujie = GetUIUnit<Button>("Btn_Dujie");
  85. }
  86. return _Btn_Dujie;
  87. }
  88. }
  89. private Button _Btn_DanYao;
  90. public Button Btn_DanYao
  91. {
  92. get{
  93. if (_Btn_DanYao == null)
  94. {
  95. _Btn_DanYao = GetUIUnit<Button>("Btn_DanYao");
  96. }
  97. return _Btn_DanYao;
  98. }
  99. }
  100. private Button _Btn_Close;
  101. public Button Btn_Close
  102. {
  103. get{
  104. if (_Btn_Close == null)
  105. {
  106. _Btn_Close = GetUIUnit<Button>("Btn_Close");
  107. }
  108. return _Btn_Close;
  109. }
  110. }
  111. private RectTransform _HeroRoot;
  112. public RectTransform HeroRoot
  113. {
  114. get{
  115. if (_HeroRoot == null)
  116. {
  117. _HeroRoot = GetUIUnit<RectTransform>("HeroRoot");
  118. }
  119. return _HeroRoot;
  120. }
  121. }
  122. private RectTransform _AttributeRoot;
  123. public RectTransform AttributeRoot
  124. {
  125. get{
  126. if (_AttributeRoot == null)
  127. {
  128. _AttributeRoot = GetUIUnit<RectTransform>("AttributeRoot");
  129. }
  130. return _AttributeRoot;
  131. }
  132. }
  133. private Transform _CameraRoot;
  134. public Transform CameraRoot
  135. {
  136. get{
  137. if (_CameraRoot == null)
  138. {
  139. _CameraRoot = GetUIUnit<Transform>("CameraRoot");
  140. }
  141. return _CameraRoot;
  142. }
  143. }
  144. private Text _Text_TuPo;
  145. public Text Text_TuPo
  146. {
  147. get{
  148. if (_Text_TuPo == null)
  149. {
  150. _Text_TuPo = GetUIUnit<Text>("Text_TuPo");
  151. }
  152. return _Text_TuPo;
  153. }
  154. }
  155. private Button _Btn_DaoLv;
  156. public Button Btn_DaoLv
  157. {
  158. get{
  159. if (_Btn_DaoLv == null)
  160. {
  161. _Btn_DaoLv = GetUIUnit<Button>("Btn_DaoLv");
  162. }
  163. return _Btn_DaoLv;
  164. }
  165. }
  166. private Button _Btn_Back;
  167. public Button Btn_Back
  168. {
  169. get{
  170. if (_Btn_Back == null)
  171. {
  172. _Btn_Back = GetUIUnit<Button>("Btn_Back");
  173. }
  174. return _Btn_Back;
  175. }
  176. }
  177. private Text _Text_Jingjie1;
  178. public Text Text_Jingjie1
  179. {
  180. get{
  181. if (_Text_Jingjie1 == null)
  182. {
  183. _Text_Jingjie1 = GetUIUnit<Text>("Text_Jingjie1");
  184. }
  185. return _Text_Jingjie1;
  186. }
  187. }
  188. private List<MyImage> _JingJieIcons;
  189. public List<MyImage> JingJieIcons
  190. {
  191. get{
  192. if (_JingJieIcons == null)
  193. {
  194. _JingJieIcons = GetUIUnit<List<MyImage>>("JingJieIcons");
  195. }
  196. return _JingJieIcons;
  197. }
  198. }
  199. private Button _Btn_Tips;
  200. public Button Btn_Tips
  201. {
  202. get{
  203. if (_Btn_Tips == null)
  204. {
  205. _Btn_Tips = GetUIUnit<Button>("Btn_Tips");
  206. }
  207. return _Btn_Tips;
  208. }
  209. }
  210. private GameObject _TipsRoot;
  211. public GameObject TipsRoot
  212. {
  213. get{
  214. if (_TipsRoot == null)
  215. {
  216. _TipsRoot = GetUIUnit<GameObject>("TipsRoot");
  217. }
  218. return _TipsRoot;
  219. }
  220. }
  221. private GameObject _root;
  222. public GameObject root
  223. {
  224. get{
  225. if (_root == null)
  226. {
  227. _root = GetUIUnit<GameObject>("root");
  228. }
  229. return _root;
  230. }
  231. }
  232. private Animator _DujiePanelAnim;
  233. public Animator DujiePanelAnim
  234. {
  235. get{
  236. if (_DujiePanelAnim == null)
  237. {
  238. _DujiePanelAnim = GetUIUnit<Animator>("DujiePanelAnim");
  239. }
  240. return _DujiePanelAnim;
  241. }
  242. }
  243. private UIParticle _fx_ui_dujie_guodu;
  244. public UIParticle fx_ui_dujie_guodu
  245. {
  246. get{
  247. if (_fx_ui_dujie_guodu == null)
  248. {
  249. _fx_ui_dujie_guodu = GetUIUnit<UIParticle>("fx_ui_dujie_guodu");
  250. }
  251. return _fx_ui_dujie_guodu;
  252. }
  253. }
  254. private UIParticle _fx_ui_dujie_hun;
  255. public UIParticle fx_ui_dujie_hun
  256. {
  257. get{
  258. if (_fx_ui_dujie_hun == null)
  259. {
  260. _fx_ui_dujie_hun = GetUIUnit<UIParticle>("fx_ui_dujie_hun");
  261. }
  262. return _fx_ui_dujie_hun;
  263. }
  264. }
  265. private UIParticle _fx_ui_dujie_sd;
  266. public UIParticle fx_ui_dujie_sd
  267. {
  268. get{
  269. if (_fx_ui_dujie_sd == null)
  270. {
  271. _fx_ui_dujie_sd = GetUIUnit<UIParticle>("fx_ui_dujie_sd");
  272. }
  273. return _fx_ui_dujie_sd;
  274. }
  275. }
  276. private Slider _Slider_Hp;
  277. public Slider Slider_Hp
  278. {
  279. get{
  280. if (_Slider_Hp == null)
  281. {
  282. _Slider_Hp = GetUIUnit<Slider>("Slider_Hp");
  283. }
  284. return _Slider_Hp;
  285. }
  286. }
  287. #endregion 自定义数据结束
  288. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  289. {
  290. await base.SetUIGameObject(gObjectPoolInterface);
  291. Init();
  292. }
  293. }
  294. }