MainPanelData.cs 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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 MainPanel
  10. {
  11. #region 自定义数据
  12. private Text _Text_ExplorationProgress;
  13. public Text Text_ExplorationProgress
  14. {
  15. get{
  16. if (_Text_ExplorationProgress == null)
  17. {
  18. _Text_ExplorationProgress = GetUIUnit<Text>("Text_ExplorationProgress");
  19. }
  20. return _Text_ExplorationProgress;
  21. }
  22. }
  23. private Slider _CameraSelect;
  24. public Slider CameraSelect
  25. {
  26. get{
  27. if (_CameraSelect == null)
  28. {
  29. _CameraSelect = GetUIUnit<Slider>("CameraSelect");
  30. }
  31. return _CameraSelect;
  32. }
  33. }
  34. private Button _Btn_Event;
  35. public Button Btn_Event
  36. {
  37. get{
  38. if (_Btn_Event == null)
  39. {
  40. _Btn_Event = GetUIUnit<Button>("Btn_Event");
  41. }
  42. return _Btn_Event;
  43. }
  44. }
  45. private Text _Text_EventNum;
  46. public Text Text_EventNum
  47. {
  48. get{
  49. if (_Text_EventNum == null)
  50. {
  51. _Text_EventNum = GetUIUnit<Text>("Text_EventNum");
  52. }
  53. return _Text_EventNum;
  54. }
  55. }
  56. private Button _Btn_Chat;
  57. public Button Btn_Chat
  58. {
  59. get{
  60. if (_Btn_Chat == null)
  61. {
  62. _Btn_Chat = GetUIUnit<Button>("Btn_Chat");
  63. }
  64. return _Btn_Chat;
  65. }
  66. }
  67. private Object _Text_Jingjie;
  68. public Object Text_Jingjie
  69. {
  70. get{
  71. if (_Text_Jingjie == null)
  72. {
  73. _Text_Jingjie = GetUIUnit<Object>("Text_Jingjie");
  74. }
  75. return _Text_Jingjie;
  76. }
  77. }
  78. private MyImage _Icon_Player;
  79. public MyImage Icon_Player
  80. {
  81. get{
  82. if (_Icon_Player == null)
  83. {
  84. _Icon_Player = GetUIUnit<MyImage>("Icon_Player");
  85. }
  86. return _Icon_Player;
  87. }
  88. }
  89. private Text _Text_PlayerName;
  90. public Text Text_PlayerName
  91. {
  92. get{
  93. if (_Text_PlayerName == null)
  94. {
  95. _Text_PlayerName = GetUIUnit<Text>("Text_PlayerName");
  96. }
  97. return _Text_PlayerName;
  98. }
  99. }
  100. private Object _Slider_Map;
  101. public Object Slider_Map
  102. {
  103. get{
  104. if (_Slider_Map == null)
  105. {
  106. _Slider_Map = GetUIUnit<Object>("Slider_Map");
  107. }
  108. return _Slider_Map;
  109. }
  110. }
  111. private Object _Slider_Exp;
  112. public Object Slider_Exp
  113. {
  114. get{
  115. if (_Slider_Exp == null)
  116. {
  117. _Slider_Exp = GetUIUnit<Object>("Slider_Exp");
  118. }
  119. return _Slider_Exp;
  120. }
  121. }
  122. private Button _Btn_Map;
  123. public Button Btn_Map
  124. {
  125. get{
  126. if (_Btn_Map == null)
  127. {
  128. _Btn_Map = GetUIUnit<Button>("Btn_Map");
  129. }
  130. return _Btn_Map;
  131. }
  132. }
  133. private MyImage _Icon_Daoyou;
  134. public MyImage Icon_Daoyou
  135. {
  136. get{
  137. if (_Icon_Daoyou == null)
  138. {
  139. _Icon_Daoyou = GetUIUnit<MyImage>("Icon_Daoyou");
  140. }
  141. return _Icon_Daoyou;
  142. }
  143. }
  144. private Text _Text_DaoyouCount;
  145. public Text Text_DaoyouCount
  146. {
  147. get{
  148. if (_Text_DaoyouCount == null)
  149. {
  150. _Text_DaoyouCount = GetUIUnit<Text>("Text_DaoyouCount");
  151. }
  152. return _Text_DaoyouCount;
  153. }
  154. }
  155. private RectTransform _EventConditionRoot;
  156. public RectTransform EventConditionRoot
  157. {
  158. get{
  159. if (_EventConditionRoot == null)
  160. {
  161. _EventConditionRoot = GetUIUnit<RectTransform>("EventConditionRoot");
  162. }
  163. return _EventConditionRoot;
  164. }
  165. }
  166. private Button _Btn_QianKunDai;
  167. public Button Btn_QianKunDai
  168. {
  169. get{
  170. if (_Btn_QianKunDai == null)
  171. {
  172. _Btn_QianKunDai = GetUIUnit<Button>("Btn_QianKunDai");
  173. }
  174. return _Btn_QianKunDai;
  175. }
  176. }
  177. private Text _Text_EventTag;
  178. public Text Text_EventTag
  179. {
  180. get{
  181. if (_Text_EventTag == null)
  182. {
  183. _Text_EventTag = GetUIUnit<Text>("Text_EventTag");
  184. }
  185. return _Text_EventTag;
  186. }
  187. }
  188. private Text _Text_EventName;
  189. public Text Text_EventName
  190. {
  191. get{
  192. if (_Text_EventName == null)
  193. {
  194. _Text_EventName = GetUIUnit<Text>("Text_EventName");
  195. }
  196. return _Text_EventName;
  197. }
  198. }
  199. private Button _Btn_StartEvent;
  200. public Button Btn_StartEvent
  201. {
  202. get{
  203. if (_Btn_StartEvent == null)
  204. {
  205. _Btn_StartEvent = GetUIUnit<Button>("Btn_StartEvent");
  206. }
  207. return _Btn_StartEvent;
  208. }
  209. }
  210. private Button _Btn_Daoyou;
  211. public Button Btn_Daoyou
  212. {
  213. get{
  214. if (_Btn_Daoyou == null)
  215. {
  216. _Btn_Daoyou = GetUIUnit<Button>("Btn_Daoyou");
  217. }
  218. return _Btn_Daoyou;
  219. }
  220. }
  221. private Button _Btn_Box;
  222. public Button Btn_Box
  223. {
  224. get{
  225. if (_Btn_Box == null)
  226. {
  227. _Btn_Box = GetUIUnit<Button>("Btn_Box");
  228. }
  229. return _Btn_Box;
  230. }
  231. }
  232. private Slider _Slider_SmallJD;
  233. public Slider Slider_SmallJD
  234. {
  235. get{
  236. if (_Slider_SmallJD == null)
  237. {
  238. _Slider_SmallJD = GetUIUnit<Slider>("Slider_SmallJD");
  239. }
  240. return _Slider_SmallJD;
  241. }
  242. }
  243. private Button _Btn_ChangeMap;
  244. public Button Btn_ChangeMap
  245. {
  246. get{
  247. if (_Btn_ChangeMap == null)
  248. {
  249. _Btn_ChangeMap = GetUIUnit<Button>("Btn_ChangeMap");
  250. }
  251. return _Btn_ChangeMap;
  252. }
  253. }
  254. private RectTransform _Group_ResourceBar;
  255. public RectTransform Group_ResourceBar
  256. {
  257. get{
  258. if (_Group_ResourceBar == null)
  259. {
  260. _Group_ResourceBar = GetUIUnit<RectTransform>("Group_ResourceBar");
  261. }
  262. return _Group_ResourceBar;
  263. }
  264. }
  265. private Text _Text_jingjie;
  266. public Text Text_jingjie
  267. {
  268. get{
  269. if (_Text_jingjie == null)
  270. {
  271. _Text_jingjie = GetUIUnit<Text>("Text_jingjie");
  272. }
  273. return _Text_jingjie;
  274. }
  275. }
  276. private Text _Text_bigMapName;
  277. public Text Text_bigMapName
  278. {
  279. get{
  280. if (_Text_bigMapName == null)
  281. {
  282. _Text_bigMapName = GetUIUnit<Text>("Text_bigMapName");
  283. }
  284. return _Text_bigMapName;
  285. }
  286. }
  287. private Button _Btn_PlayerName;
  288. public Button Btn_PlayerName
  289. {
  290. get{
  291. if (_Btn_PlayerName == null)
  292. {
  293. _Btn_PlayerName = GetUIUnit<Button>("Btn_PlayerName");
  294. }
  295. return _Btn_PlayerName;
  296. }
  297. }
  298. private UIParticle _fx_ui_renwu_wancheng_loop;
  299. public UIParticle fx_ui_renwu_wancheng_loop
  300. {
  301. get{
  302. if (_fx_ui_renwu_wancheng_loop == null)
  303. {
  304. _fx_ui_renwu_wancheng_loop = GetUIUnit<UIParticle>("fx_ui_renwu_wancheng_loop");
  305. }
  306. return _fx_ui_renwu_wancheng_loop;
  307. }
  308. }
  309. private UIParticle _fx_ui_renwu_chuxian;
  310. public UIParticle fx_ui_renwu_chuxian
  311. {
  312. get{
  313. if (_fx_ui_renwu_chuxian == null)
  314. {
  315. _fx_ui_renwu_chuxian = GetUIUnit<UIParticle>("fx_ui_renwu_chuxian");
  316. }
  317. return _fx_ui_renwu_chuxian;
  318. }
  319. }
  320. private UIParticle _fx_ui_fengling_loop;
  321. public UIParticle fx_ui_fengling_loop
  322. {
  323. get{
  324. if (_fx_ui_fengling_loop == null)
  325. {
  326. _fx_ui_fengling_loop = GetUIUnit<UIParticle>("fx_ui_fengling_loop");
  327. }
  328. return _fx_ui_fengling_loop;
  329. }
  330. }
  331. #endregion 自定义数据结束
  332. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  333. {
  334. await base.SetUIGameObject(gObjectPoolInterface);
  335. Init();
  336. }
  337. }
  338. }