SelectFaBaoPanelData.cs 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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 SelectFaBaoPanel
  9. {
  10. #region 自定义数据
  11. private MyImage _Icon_Attribute;
  12. public MyImage Icon_Attribute
  13. {
  14. get{
  15. if (_Icon_Attribute == null)
  16. {
  17. _Icon_Attribute = GetUIUnit<MyImage>("Icon_Attribute");
  18. }
  19. return _Icon_Attribute;
  20. }
  21. }
  22. private Text _Text_Attribute;
  23. public Text Text_Attribute
  24. {
  25. get{
  26. if (_Text_Attribute == null)
  27. {
  28. _Text_Attribute = GetUIUnit<Text>("Text_Attribute");
  29. }
  30. return _Text_Attribute;
  31. }
  32. }
  33. private Text _Text_FaBaoName;
  34. public Text Text_FaBaoName
  35. {
  36. get{
  37. if (_Text_FaBaoName == null)
  38. {
  39. _Text_FaBaoName = GetUIUnit<Text>("Text_FaBaoName");
  40. }
  41. return _Text_FaBaoName;
  42. }
  43. }
  44. private Text _Text_Power;
  45. public Text Text_Power
  46. {
  47. get{
  48. if (_Text_Power == null)
  49. {
  50. _Text_Power = GetUIUnit<Text>("Text_Power");
  51. }
  52. return _Text_Power;
  53. }
  54. }
  55. private Text _Text_Desc;
  56. public Text Text_Desc
  57. {
  58. get{
  59. if (_Text_Desc == null)
  60. {
  61. _Text_Desc = GetUIUnit<Text>("Text_Desc");
  62. }
  63. return _Text_Desc;
  64. }
  65. }
  66. private MyImage _Icon_FaBaoIcon;
  67. public MyImage Icon_FaBaoIcon
  68. {
  69. get{
  70. if (_Icon_FaBaoIcon == null)
  71. {
  72. _Icon_FaBaoIcon = GetUIUnit<MyImage>("Icon_FaBaoIcon");
  73. }
  74. return _Icon_FaBaoIcon;
  75. }
  76. }
  77. private RectTransform _CurrentFaBaoRoot;
  78. public RectTransform CurrentFaBaoRoot
  79. {
  80. get{
  81. if (_CurrentFaBaoRoot == null)
  82. {
  83. _CurrentFaBaoRoot = GetUIUnit<RectTransform>("CurrentFaBaoRoot");
  84. }
  85. return _CurrentFaBaoRoot;
  86. }
  87. }
  88. private GameObject _equipTipsRoot;
  89. public GameObject equipTipsRoot
  90. {
  91. get{
  92. if (_equipTipsRoot == null)
  93. {
  94. _equipTipsRoot = GetUIUnit<GameObject>("equipTipsRoot");
  95. }
  96. return _equipTipsRoot;
  97. }
  98. }
  99. private RectTransform _Content;
  100. public RectTransform Content
  101. {
  102. get{
  103. if (_Content == null)
  104. {
  105. _Content = GetUIUnit<RectTransform>("Content");
  106. }
  107. return _Content;
  108. }
  109. }
  110. private Button _Btn_Close;
  111. public Button Btn_Close
  112. {
  113. get{
  114. if (_Btn_Close == null)
  115. {
  116. _Btn_Close = GetUIUnit<Button>("Btn_Close");
  117. }
  118. return _Btn_Close;
  119. }
  120. }
  121. private RectTransform _FaBaoAttributeWidgetRoot;
  122. public RectTransform FaBaoAttributeWidgetRoot
  123. {
  124. get{
  125. if (_FaBaoAttributeWidgetRoot == null)
  126. {
  127. _FaBaoAttributeWidgetRoot = GetUIUnit<RectTransform>("FaBaoAttributeWidgetRoot");
  128. }
  129. return _FaBaoAttributeWidgetRoot;
  130. }
  131. }
  132. private Button _Btn_UpGrade;
  133. public Button Btn_UpGrade
  134. {
  135. get{
  136. if (_Btn_UpGrade == null)
  137. {
  138. _Btn_UpGrade = GetUIUnit<Button>("Btn_UpGrade");
  139. }
  140. return _Btn_UpGrade;
  141. }
  142. }
  143. private Button _Btn_PeiYang;
  144. public Button Btn_PeiYang
  145. {
  146. get{
  147. if (_Btn_PeiYang == null)
  148. {
  149. _Btn_PeiYang = GetUIUnit<Button>("Btn_PeiYang");
  150. }
  151. return _Btn_PeiYang;
  152. }
  153. }
  154. private Button _Btn_Change;
  155. public Button Btn_Change
  156. {
  157. get{
  158. if (_Btn_Change == null)
  159. {
  160. _Btn_Change = GetUIUnit<Button>("Btn_Change");
  161. }
  162. return _Btn_Change;
  163. }
  164. }
  165. private GameObject _FaBaoInfoRoot;
  166. public GameObject FaBaoInfoRoot
  167. {
  168. get{
  169. if (_FaBaoInfoRoot == null)
  170. {
  171. _FaBaoInfoRoot = GetUIUnit<GameObject>("FaBaoInfoRoot");
  172. }
  173. return _FaBaoInfoRoot;
  174. }
  175. }
  176. private Text _Text_NoFabaoTips;
  177. public Text Text_NoFabaoTips
  178. {
  179. get{
  180. if (_Text_NoFabaoTips == null)
  181. {
  182. _Text_NoFabaoTips = GetUIUnit<Text>("Text_NoFabaoTips");
  183. }
  184. return _Text_NoFabaoTips;
  185. }
  186. }
  187. private Button _Btn_Cancel;
  188. public Button Btn_Cancel
  189. {
  190. get{
  191. if (_Btn_Cancel == null)
  192. {
  193. _Btn_Cancel = GetUIUnit<Button>("Btn_Cancel");
  194. }
  195. return _Btn_Cancel;
  196. }
  197. }
  198. private GameObject _BtnUpGradeRoot;
  199. public GameObject BtnUpGradeRoot
  200. {
  201. get{
  202. if (_BtnUpGradeRoot == null)
  203. {
  204. _BtnUpGradeRoot = GetUIUnit<GameObject>("BtnUpGradeRoot");
  205. }
  206. return _BtnUpGradeRoot;
  207. }
  208. }
  209. private GameObject _BtnChangeRoot;
  210. public GameObject BtnChangeRoot
  211. {
  212. get{
  213. if (_BtnChangeRoot == null)
  214. {
  215. _BtnChangeRoot = GetUIUnit<GameObject>("BtnChangeRoot");
  216. }
  217. return _BtnChangeRoot;
  218. }
  219. }
  220. private RectTransform _NoFaBagRoot;
  221. public RectTransform NoFaBagRoot
  222. {
  223. get{
  224. if (_NoFaBagRoot == null)
  225. {
  226. _NoFaBagRoot = GetUIUnit<RectTransform>("NoFaBagRoot");
  227. }
  228. return _NoFaBagRoot;
  229. }
  230. }
  231. private Text _Text_NextLv;
  232. public Text Text_NextLv
  233. {
  234. get{
  235. if (_Text_NextLv == null)
  236. {
  237. _Text_NextLv = GetUIUnit<Text>("Text_NextLv");
  238. }
  239. return _Text_NextLv;
  240. }
  241. }
  242. private Text _Text_NextPower;
  243. public Text Text_NextPower
  244. {
  245. get{
  246. if (_Text_NextPower == null)
  247. {
  248. _Text_NextPower = GetUIUnit<Text>("Text_NextPower");
  249. }
  250. return _Text_NextPower;
  251. }
  252. }
  253. private MyImage _Icon_LvBj;
  254. public MyImage Icon_LvBj
  255. {
  256. get{
  257. if (_Icon_LvBj == null)
  258. {
  259. _Icon_LvBj = GetUIUnit<MyImage>("Icon_LvBj");
  260. }
  261. return _Icon_LvBj;
  262. }
  263. }
  264. private MyImage _Icon_PowrBj;
  265. public MyImage Icon_PowrBj
  266. {
  267. get{
  268. if (_Icon_PowrBj == null)
  269. {
  270. _Icon_PowrBj = GetUIUnit<MyImage>("Icon_PowrBj");
  271. }
  272. return _Icon_PowrBj;
  273. }
  274. }
  275. private RectTransform _SkillContent;
  276. public RectTransform SkillContent
  277. {
  278. get{
  279. if (_SkillContent == null)
  280. {
  281. _SkillContent = GetUIUnit<RectTransform>("SkillContent");
  282. }
  283. return _SkillContent;
  284. }
  285. }
  286. private RectTransform _ItemRoot;
  287. public RectTransform ItemRoot
  288. {
  289. get{
  290. if (_ItemRoot == null)
  291. {
  292. _ItemRoot = GetUIUnit<RectTransform>("ItemRoot");
  293. }
  294. return _ItemRoot;
  295. }
  296. }
  297. private Text _Text_UpGrade;
  298. public Text Text_UpGrade
  299. {
  300. get{
  301. if (_Text_UpGrade == null)
  302. {
  303. _Text_UpGrade = GetUIUnit<Text>("Text_UpGrade");
  304. }
  305. return _Text_UpGrade;
  306. }
  307. }
  308. private Text _Text_ManTips;
  309. public Text Text_ManTips
  310. {
  311. get{
  312. if (_Text_ManTips == null)
  313. {
  314. _Text_ManTips = GetUIUnit<Text>("Text_ManTips");
  315. }
  316. return _Text_ManTips;
  317. }
  318. }
  319. #endregion 自定义数据结束
  320. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  321. {
  322. await base.SetUIGameObject(gObjectPoolInterface);
  323. Init();
  324. }
  325. }
  326. }