GongFaUpgradePanelData.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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 GongFaUpgradePanel
  9. {
  10. #region 自定义数据
  11. private Button _guanbi;
  12. public Button guanbi
  13. {
  14. get{
  15. if (_guanbi == null)
  16. {
  17. _guanbi = GetUIUnit<Button>("guanbi");
  18. }
  19. return _guanbi;
  20. }
  21. }
  22. private MyImage _Icon_Attribute;
  23. public MyImage Icon_Attribute
  24. {
  25. get{
  26. if (_Icon_Attribute == null)
  27. {
  28. _Icon_Attribute = GetUIUnit<MyImage>("Icon_Attribute");
  29. }
  30. return _Icon_Attribute;
  31. }
  32. }
  33. private Text _Text_Attribute;
  34. public Text Text_Attribute
  35. {
  36. get{
  37. if (_Text_Attribute == null)
  38. {
  39. _Text_Attribute = GetUIUnit<Text>("Text_Attribute");
  40. }
  41. return _Text_Attribute;
  42. }
  43. }
  44. private MyImage _Icon_GongFaIcon;
  45. public MyImage Icon_GongFaIcon
  46. {
  47. get{
  48. if (_Icon_GongFaIcon == null)
  49. {
  50. _Icon_GongFaIcon = GetUIUnit<MyImage>("Icon_GongFaIcon");
  51. }
  52. return _Icon_GongFaIcon;
  53. }
  54. }
  55. private List<object> _StarRoot;
  56. public List<object> StarRoot
  57. {
  58. get{
  59. if (_StarRoot == null)
  60. {
  61. _StarRoot = GetUIUnit<List<object>>("StarRoot");
  62. }
  63. return _StarRoot;
  64. }
  65. }
  66. private Text _Text_Level1;
  67. public Text Text_Level1
  68. {
  69. get{
  70. if (_Text_Level1 == null)
  71. {
  72. _Text_Level1 = GetUIUnit<Text>("Text_Level1");
  73. }
  74. return _Text_Level1;
  75. }
  76. }
  77. private Text _Text_Level;
  78. public Text Text_Level
  79. {
  80. get{
  81. if (_Text_Level == null)
  82. {
  83. _Text_Level = GetUIUnit<Text>("Text_Level");
  84. }
  85. return _Text_Level;
  86. }
  87. }
  88. private RectTransform _Content;
  89. public RectTransform Content
  90. {
  91. get{
  92. if (_Content == null)
  93. {
  94. _Content = GetUIUnit<RectTransform>("Content");
  95. }
  96. return _Content;
  97. }
  98. }
  99. private Text _Text_GongFaDesc;
  100. public Text Text_GongFaDesc
  101. {
  102. get{
  103. if (_Text_GongFaDesc == null)
  104. {
  105. _Text_GongFaDesc = GetUIUnit<Text>("Text_GongFaDesc");
  106. }
  107. return _Text_GongFaDesc;
  108. }
  109. }
  110. private Text _Text_GongFaName;
  111. public Text Text_GongFaName
  112. {
  113. get{
  114. if (_Text_GongFaName == null)
  115. {
  116. _Text_GongFaName = GetUIUnit<Text>("Text_GongFaName");
  117. }
  118. return _Text_GongFaName;
  119. }
  120. }
  121. private Button _Btn_Back;
  122. public Button Btn_Back
  123. {
  124. get{
  125. if (_Btn_Back == null)
  126. {
  127. _Btn_Back = GetUIUnit<Button>("Btn_Back");
  128. }
  129. return _Btn_Back;
  130. }
  131. }
  132. private Button _Btn_UpStar;
  133. public Button Btn_UpStar
  134. {
  135. get{
  136. if (_Btn_UpStar == null)
  137. {
  138. _Btn_UpStar = GetUIUnit<Button>("Btn_UpStar");
  139. }
  140. return _Btn_UpStar;
  141. }
  142. }
  143. private Button _Btn_UpGrade;
  144. public Button Btn_UpGrade
  145. {
  146. get{
  147. if (_Btn_UpGrade == null)
  148. {
  149. _Btn_UpGrade = GetUIUnit<Button>("Btn_UpGrade");
  150. }
  151. return _Btn_UpGrade;
  152. }
  153. }
  154. private MyImage _Icon_UpstarIcon;
  155. public MyImage Icon_UpstarIcon
  156. {
  157. get{
  158. if (_Icon_UpstarIcon == null)
  159. {
  160. _Icon_UpstarIcon = GetUIUnit<MyImage>("Icon_UpstarIcon");
  161. }
  162. return _Icon_UpstarIcon;
  163. }
  164. }
  165. private Text _Text_UpGradeItemCount;
  166. public Text Text_UpGradeItemCount
  167. {
  168. get{
  169. if (_Text_UpGradeItemCount == null)
  170. {
  171. _Text_UpGradeItemCount = GetUIUnit<Text>("Text_UpGradeItemCount");
  172. }
  173. return _Text_UpGradeItemCount;
  174. }
  175. }
  176. private Text _Text_UpStarCount;
  177. public Text Text_UpStarCount
  178. {
  179. get{
  180. if (_Text_UpStarCount == null)
  181. {
  182. _Text_UpStarCount = GetUIUnit<Text>("Text_UpStarCount");
  183. }
  184. return _Text_UpStarCount;
  185. }
  186. }
  187. private Text _Text_UpStar;
  188. public Text Text_UpStar
  189. {
  190. get{
  191. if (_Text_UpStar == null)
  192. {
  193. _Text_UpStar = GetUIUnit<Text>("Text_UpStar");
  194. }
  195. return _Text_UpStar;
  196. }
  197. }
  198. private Text _Text_UpGrade;
  199. public Text Text_UpGrade
  200. {
  201. get{
  202. if (_Text_UpGrade == null)
  203. {
  204. _Text_UpGrade = GetUIUnit<Text>("Text_UpGrade");
  205. }
  206. return _Text_UpGrade;
  207. }
  208. }
  209. private GameObject _UpGradeRoot;
  210. public GameObject UpGradeRoot
  211. {
  212. get{
  213. if (_UpGradeRoot == null)
  214. {
  215. _UpGradeRoot = GetUIUnit<GameObject>("UpGradeRoot");
  216. }
  217. return _UpGradeRoot;
  218. }
  219. }
  220. private GameObject _UpStarRoot;
  221. public GameObject UpStarRoot
  222. {
  223. get{
  224. if (_UpStarRoot == null)
  225. {
  226. _UpStarRoot = GetUIUnit<GameObject>("UpStarRoot");
  227. }
  228. return _UpStarRoot;
  229. }
  230. }
  231. #endregion 自定义数据结束
  232. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  233. {
  234. await base.SetUIGameObject(gObjectPoolInterface);
  235. Init();
  236. }
  237. }
  238. }