MainPanelData.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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 MainPanel
  9. {
  10. #region 自定义数据
  11. private RectTransform _DynamicEvent;
  12. public RectTransform DynamicEvent
  13. {
  14. get{
  15. if (_DynamicEvent == null)
  16. {
  17. _DynamicEvent = GetUIUnit<RectTransform>("DynamicEvent");
  18. }
  19. return _DynamicEvent;
  20. }
  21. }
  22. private Text _Text_ExplorationProgress;
  23. public Text Text_ExplorationProgress
  24. {
  25. get{
  26. if (_Text_ExplorationProgress == null)
  27. {
  28. _Text_ExplorationProgress = GetUIUnit<Text>("Text_ExplorationProgress");
  29. }
  30. return _Text_ExplorationProgress;
  31. }
  32. }
  33. private Slider _CameraSelect;
  34. public Slider CameraSelect
  35. {
  36. get{
  37. if (_CameraSelect == null)
  38. {
  39. _CameraSelect = GetUIUnit<Slider>("CameraSelect");
  40. }
  41. return _CameraSelect;
  42. }
  43. }
  44. private Button _Btn_Event;
  45. public Button Btn_Event
  46. {
  47. get{
  48. if (_Btn_Event == null)
  49. {
  50. _Btn_Event = GetUIUnit<Button>("Btn_Event");
  51. }
  52. return _Btn_Event;
  53. }
  54. }
  55. private Text _Text_EventNum;
  56. public Text Text_EventNum
  57. {
  58. get{
  59. if (_Text_EventNum == null)
  60. {
  61. _Text_EventNum = GetUIUnit<Text>("Text_EventNum");
  62. }
  63. return _Text_EventNum;
  64. }
  65. }
  66. private Button _Btn_Chat;
  67. public Button Btn_Chat
  68. {
  69. get{
  70. if (_Btn_Chat == null)
  71. {
  72. _Btn_Chat = GetUIUnit<Button>("Btn_Chat");
  73. }
  74. return _Btn_Chat;
  75. }
  76. }
  77. private Text _Text_Jingjie;
  78. public Text Text_Jingjie
  79. {
  80. get{
  81. if (_Text_Jingjie == null)
  82. {
  83. _Text_Jingjie = GetUIUnit<Text>("Text_Jingjie");
  84. }
  85. return _Text_Jingjie;
  86. }
  87. }
  88. private MyImage _Icon_Player;
  89. public MyImage Icon_Player
  90. {
  91. get{
  92. if (_Icon_Player == null)
  93. {
  94. _Icon_Player = GetUIUnit<MyImage>("Icon_Player");
  95. }
  96. return _Icon_Player;
  97. }
  98. }
  99. private Text _Text_PlayerName;
  100. public Text Text_PlayerName
  101. {
  102. get{
  103. if (_Text_PlayerName == null)
  104. {
  105. _Text_PlayerName = GetUIUnit<Text>("Text_PlayerName");
  106. }
  107. return _Text_PlayerName;
  108. }
  109. }
  110. private Slider _Slider_Map;
  111. public Slider Slider_Map
  112. {
  113. get{
  114. if (_Slider_Map == null)
  115. {
  116. _Slider_Map = GetUIUnit<Slider>("Slider_Map");
  117. }
  118. return _Slider_Map;
  119. }
  120. }
  121. private Slider _Slider_Exp;
  122. public Slider Slider_Exp
  123. {
  124. get{
  125. if (_Slider_Exp == null)
  126. {
  127. _Slider_Exp = GetUIUnit<Slider>("Slider_Exp");
  128. }
  129. return _Slider_Exp;
  130. }
  131. }
  132. #endregion 自定义数据结束
  133. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  134. {
  135. await base.SetUIGameObject(gObjectPoolInterface);
  136. Init();
  137. }
  138. }
  139. }