DialoguePanelData.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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 DialoguePanel
  9. {
  10. #region 自定义数据
  11. private GameObject _nextIcon;
  12. public GameObject nextIcon
  13. {
  14. get{
  15. if (_nextIcon == null)
  16. {
  17. _nextIcon = GetUIUnit<GameObject>("nextIcon");
  18. }
  19. return _nextIcon;
  20. }
  21. }
  22. private Text _message;
  23. public Text message
  24. {
  25. get{
  26. if (_message == null)
  27. {
  28. _message = GetUIUnit<Text>("message");
  29. }
  30. return _message;
  31. }
  32. }
  33. private Button _nextButton;
  34. public Button nextButton
  35. {
  36. get{
  37. if (_nextButton == null)
  38. {
  39. _nextButton = GetUIUnit<Button>("nextButton");
  40. }
  41. return _nextButton;
  42. }
  43. }
  44. private MyImage _icon;
  45. public MyImage icon
  46. {
  47. get{
  48. if (_icon == null)
  49. {
  50. _icon = GetUIUnit<MyImage>("icon");
  51. }
  52. return _icon;
  53. }
  54. }
  55. private RectTransform _OptionRoot;
  56. public RectTransform OptionRoot
  57. {
  58. get{
  59. if (_OptionRoot == null)
  60. {
  61. _OptionRoot = GetUIUnit<RectTransform>("OptionRoot");
  62. }
  63. return _OptionRoot;
  64. }
  65. }
  66. private RectTransform _Dialgue;
  67. public RectTransform Dialgue
  68. {
  69. get{
  70. if (_Dialgue == null)
  71. {
  72. _Dialgue = GetUIUnit<RectTransform>("Dialgue");
  73. }
  74. return _Dialgue;
  75. }
  76. }
  77. private GameObject _OptionMarsk;
  78. public GameObject OptionMarsk
  79. {
  80. get{
  81. if (_OptionMarsk == null)
  82. {
  83. _OptionMarsk = GetUIUnit<GameObject>("OptionMarsk");
  84. }
  85. return _OptionMarsk;
  86. }
  87. }
  88. private GameObject _DialgueType1;
  89. public GameObject DialgueType1
  90. {
  91. get{
  92. if (_DialgueType1 == null)
  93. {
  94. _DialgueType1 = GetUIUnit<GameObject>("DialgueType1");
  95. }
  96. return _DialgueType1;
  97. }
  98. }
  99. private GameObject _DialgueType2;
  100. public GameObject DialgueType2
  101. {
  102. get{
  103. if (_DialgueType2 == null)
  104. {
  105. _DialgueType2 = GetUIUnit<GameObject>("DialgueType2");
  106. }
  107. return _DialgueType2;
  108. }
  109. }
  110. private GameObject _nextIcon2;
  111. public GameObject nextIcon2
  112. {
  113. get{
  114. if (_nextIcon2 == null)
  115. {
  116. _nextIcon2 = GetUIUnit<GameObject>("nextIcon2");
  117. }
  118. return _nextIcon2;
  119. }
  120. }
  121. private Text _message2;
  122. public Text message2
  123. {
  124. get{
  125. if (_message2 == null)
  126. {
  127. _message2 = GetUIUnit<Text>("message2");
  128. }
  129. return _message2;
  130. }
  131. }
  132. private Button _Btn_Cancel;
  133. public Button Btn_Cancel
  134. {
  135. get{
  136. if (_Btn_Cancel == null)
  137. {
  138. _Btn_Cancel = GetUIUnit<Button>("Btn_Cancel");
  139. }
  140. return _Btn_Cancel;
  141. }
  142. }
  143. private Text _message3;
  144. public Text message3
  145. {
  146. get{
  147. if (_message3 == null)
  148. {
  149. _message3 = GetUIUnit<Text>("message3");
  150. }
  151. return _message3;
  152. }
  153. }
  154. private GameObject _nextIcon3;
  155. public GameObject nextIcon3
  156. {
  157. get{
  158. if (_nextIcon3 == null)
  159. {
  160. _nextIcon3 = GetUIUnit<GameObject>("nextIcon3");
  161. }
  162. return _nextIcon3;
  163. }
  164. }
  165. private GameObject _DialgueType3;
  166. public GameObject DialgueType3
  167. {
  168. get{
  169. if (_DialgueType3 == null)
  170. {
  171. _DialgueType3 = GetUIUnit<GameObject>("DialgueType3");
  172. }
  173. return _DialgueType3;
  174. }
  175. }
  176. #endregion 自定义数据结束
  177. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  178. {
  179. await base.SetUIGameObject(gObjectPoolInterface);
  180. Init();
  181. }
  182. }
  183. }