GongFaUpgradePanelData.cs 6.3 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 GongFaUpgradePanel
  10. {
  11. #region 自定义数据
  12. private Button _guanbi;
  13. public Button guanbi
  14. {
  15. get{
  16. if (_guanbi == null)
  17. {
  18. _guanbi = GetUIUnit<Button>("guanbi");
  19. }
  20. return _guanbi;
  21. }
  22. }
  23. private MyImage _Icon_GongFaIcon;
  24. public MyImage Icon_GongFaIcon
  25. {
  26. get{
  27. if (_Icon_GongFaIcon == null)
  28. {
  29. _Icon_GongFaIcon = GetUIUnit<MyImage>("Icon_GongFaIcon");
  30. }
  31. return _Icon_GongFaIcon;
  32. }
  33. }
  34. private List<MyImage> _StarRoot;
  35. public List<MyImage> StarRoot
  36. {
  37. get{
  38. if (_StarRoot == null)
  39. {
  40. _StarRoot = GetUIUnit<List<MyImage>>("StarRoot");
  41. }
  42. return _StarRoot;
  43. }
  44. }
  45. private Text _Text_Level1;
  46. public Text Text_Level1
  47. {
  48. get{
  49. if (_Text_Level1 == null)
  50. {
  51. _Text_Level1 = GetUIUnit<Text>("Text_Level1");
  52. }
  53. return _Text_Level1;
  54. }
  55. }
  56. private Text _Text_Level;
  57. public Text Text_Level
  58. {
  59. get{
  60. if (_Text_Level == null)
  61. {
  62. _Text_Level = GetUIUnit<Text>("Text_Level");
  63. }
  64. return _Text_Level;
  65. }
  66. }
  67. private RectTransform _Content;
  68. public RectTransform Content
  69. {
  70. get{
  71. if (_Content == null)
  72. {
  73. _Content = GetUIUnit<RectTransform>("Content");
  74. }
  75. return _Content;
  76. }
  77. }
  78. private Text _Text_GongFaDesc;
  79. public Text Text_GongFaDesc
  80. {
  81. get{
  82. if (_Text_GongFaDesc == null)
  83. {
  84. _Text_GongFaDesc = GetUIUnit<Text>("Text_GongFaDesc");
  85. }
  86. return _Text_GongFaDesc;
  87. }
  88. }
  89. private Text _Text_GongFaName;
  90. public Text Text_GongFaName
  91. {
  92. get{
  93. if (_Text_GongFaName == null)
  94. {
  95. _Text_GongFaName = GetUIUnit<Text>("Text_GongFaName");
  96. }
  97. return _Text_GongFaName;
  98. }
  99. }
  100. private Button _Btn_Back;
  101. public Button Btn_Back
  102. {
  103. get{
  104. if (_Btn_Back == null)
  105. {
  106. _Btn_Back = GetUIUnit<Button>("Btn_Back");
  107. }
  108. return _Btn_Back;
  109. }
  110. }
  111. private Button _Btn_UpStar;
  112. public Button Btn_UpStar
  113. {
  114. get{
  115. if (_Btn_UpStar == null)
  116. {
  117. _Btn_UpStar = GetUIUnit<Button>("Btn_UpStar");
  118. }
  119. return _Btn_UpStar;
  120. }
  121. }
  122. private Button _Btn_UpGrade;
  123. public Button Btn_UpGrade
  124. {
  125. get{
  126. if (_Btn_UpGrade == null)
  127. {
  128. _Btn_UpGrade = GetUIUnit<Button>("Btn_UpGrade");
  129. }
  130. return _Btn_UpGrade;
  131. }
  132. }
  133. private Object _UpStarRoot;
  134. public Object UpStarRoot
  135. {
  136. get{
  137. if (_UpStarRoot == null)
  138. {
  139. _UpStarRoot = GetUIUnit<Object>("UpStarRoot");
  140. }
  141. return _UpStarRoot;
  142. }
  143. }
  144. private Text _Text_SkillCd;
  145. public Text Text_SkillCd
  146. {
  147. get{
  148. if (_Text_SkillCd == null)
  149. {
  150. _Text_SkillCd = GetUIUnit<Text>("Text_SkillCd");
  151. }
  152. return _Text_SkillCd;
  153. }
  154. }
  155. private GameObject _ItemWidgetType1Gam;
  156. public GameObject ItemWidgetType1Gam
  157. {
  158. get{
  159. if (_ItemWidgetType1Gam == null)
  160. {
  161. _ItemWidgetType1Gam = GetUIUnit<GameObject>("ItemWidgetType1Gam");
  162. }
  163. return _ItemWidgetType1Gam;
  164. }
  165. }
  166. private GameObject _UpStarItemRoot;
  167. public GameObject UpStarItemRoot
  168. {
  169. get{
  170. if (_UpStarItemRoot == null)
  171. {
  172. _UpStarItemRoot = GetUIUnit<GameObject>("UpStarItemRoot");
  173. }
  174. return _UpStarItemRoot;
  175. }
  176. }
  177. private GameObject _UpGradeItemRoot;
  178. public GameObject UpGradeItemRoot
  179. {
  180. get{
  181. if (_UpGradeItemRoot == null)
  182. {
  183. _UpGradeItemRoot = GetUIUnit<GameObject>("UpGradeItemRoot");
  184. }
  185. return _UpGradeItemRoot;
  186. }
  187. }
  188. private MyImage _Icon_Attribute;
  189. public MyImage Icon_Attribute
  190. {
  191. get{
  192. if (_Icon_Attribute == null)
  193. {
  194. _Icon_Attribute = GetUIUnit<MyImage>("Icon_Attribute");
  195. }
  196. return _Icon_Attribute;
  197. }
  198. }
  199. private RectTransform _EnergyRoot;
  200. public RectTransform EnergyRoot
  201. {
  202. get{
  203. if (_EnergyRoot == null)
  204. {
  205. _EnergyRoot = GetUIUnit<RectTransform>("EnergyRoot");
  206. }
  207. return _EnergyRoot;
  208. }
  209. }
  210. private Text _Text_UpStar;
  211. public Text Text_UpStar
  212. {
  213. get{
  214. if (_Text_UpStar == null)
  215. {
  216. _Text_UpStar = GetUIUnit<Text>("Text_UpStar");
  217. }
  218. return _Text_UpStar;
  219. }
  220. }
  221. private Text _Text_UpGrade;
  222. public Text Text_UpGrade
  223. {
  224. get{
  225. if (_Text_UpGrade == null)
  226. {
  227. _Text_UpGrade = GetUIUnit<Text>("Text_UpGrade");
  228. }
  229. return _Text_UpGrade;
  230. }
  231. }
  232. private Text _Text_NextLevel;
  233. public Text Text_NextLevel
  234. {
  235. get{
  236. if (_Text_NextLevel == null)
  237. {
  238. _Text_NextLevel = GetUIUnit<Text>("Text_NextLevel");
  239. }
  240. return _Text_NextLevel;
  241. }
  242. }
  243. private CustomStateController _csc;
  244. public CustomStateController csc
  245. {
  246. get{
  247. if (_csc == null)
  248. {
  249. _csc = GetUIUnit<CustomStateController>("csc");
  250. }
  251. return _csc;
  252. }
  253. }
  254. private Button _Btn_UpGradeOk;
  255. public Button Btn_UpGradeOk
  256. {
  257. get{
  258. if (_Btn_UpGradeOk == null)
  259. {
  260. _Btn_UpGradeOk = GetUIUnit<Button>("Btn_UpGradeOk");
  261. }
  262. return _Btn_UpGradeOk;
  263. }
  264. }
  265. private Button _Btn_UpStarOk;
  266. public Button Btn_UpStarOk
  267. {
  268. get{
  269. if (_Btn_UpStarOk == null)
  270. {
  271. _Btn_UpStarOk = GetUIUnit<Button>("Btn_UpStarOk");
  272. }
  273. return _Btn_UpStarOk;
  274. }
  275. }
  276. private UIParticle _fx_ui_gongfa_shengji;
  277. public UIParticle fx_ui_gongfa_shengji
  278. {
  279. get{
  280. if (_fx_ui_gongfa_shengji == null)
  281. {
  282. _fx_ui_gongfa_shengji = GetUIUnit<UIParticle>("fx_ui_gongfa_shengji");
  283. }
  284. return _fx_ui_gongfa_shengji;
  285. }
  286. }
  287. #endregion 自定义数据结束
  288. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  289. {
  290. await base.SetUIGameObject(gObjectPoolInterface);
  291. Init();
  292. }
  293. }
  294. }