SelectFaBaoPanelData.cs 7.9 KB

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