GachaPanelData.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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. using Core.UI.UTool.UITween;
  8. namespace Fort23.Mono
  9. {
  10. public partial class GachaPanel
  11. {
  12. #region 自定义数据
  13. private Button _oneButton;
  14. public Button oneButton
  15. {
  16. get{
  17. if (_oneButton == null)
  18. {
  19. _oneButton = GetUIUnit<Button>("oneButton");
  20. }
  21. return _oneButton;
  22. }
  23. }
  24. private Button _tenButton;
  25. public Button tenButton
  26. {
  27. get{
  28. if (_tenButton == null)
  29. {
  30. _tenButton = GetUIUnit<Button>("tenButton");
  31. }
  32. return _tenButton;
  33. }
  34. }
  35. private Text _tenCion;
  36. public Text tenCion
  37. {
  38. get{
  39. if (_tenCion == null)
  40. {
  41. _tenCion = GetUIUnit<Text>("tenCion");
  42. }
  43. return _tenCion;
  44. }
  45. }
  46. private Text _onCion;
  47. public Text onCion
  48. {
  49. get{
  50. if (_onCion == null)
  51. {
  52. _onCion = GetUIUnit<Text>("onCion");
  53. }
  54. return _onCion;
  55. }
  56. }
  57. private RectTransform _GridItem;
  58. public RectTransform GridItem
  59. {
  60. get{
  61. if (_GridItem == null)
  62. {
  63. _GridItem = GetUIUnit<RectTransform>("GridItem");
  64. }
  65. return _GridItem;
  66. }
  67. }
  68. private List<RectTransform> _PosRoot;
  69. public List<RectTransform> PosRoot
  70. {
  71. get{
  72. if (_PosRoot == null)
  73. {
  74. _PosRoot = GetUIUnit<List<RectTransform>>("PosRoot");
  75. }
  76. return _PosRoot;
  77. }
  78. }
  79. private RectTransform _fxpos;
  80. public RectTransform fxpos
  81. {
  82. get{
  83. if (_fxpos == null)
  84. {
  85. _fxpos = GetUIUnit<RectTransform>("fxpos");
  86. }
  87. return _fxpos;
  88. }
  89. }
  90. private UIParticle _fx_ui_box_click;
  91. public UIParticle fx_ui_box_click
  92. {
  93. get{
  94. if (_fx_ui_box_click == null)
  95. {
  96. _fx_ui_box_click = GetUIUnit<UIParticle>("fx_ui_box_click");
  97. }
  98. return _fx_ui_box_click;
  99. }
  100. }
  101. private UITweenController _animTween;
  102. public UITweenController animTween
  103. {
  104. get{
  105. if (_animTween == null)
  106. {
  107. _animTween = GetUIUnit<UITweenController>("animTween");
  108. }
  109. return _animTween;
  110. }
  111. }
  112. private Text _text_btnText;
  113. public Text text_btnText
  114. {
  115. get{
  116. if (_text_btnText == null)
  117. {
  118. _text_btnText = GetUIUnit<Text>("text_btnText");
  119. }
  120. return _text_btnText;
  121. }
  122. }
  123. private Text _Trxt_Cion;
  124. public Text Trxt_Cion
  125. {
  126. get{
  127. if (_Trxt_Cion == null)
  128. {
  129. _Trxt_Cion = GetUIUnit<Text>("Trxt_Cion");
  130. }
  131. return _Trxt_Cion;
  132. }
  133. }
  134. private RectTransform _Group_ResourceBar;
  135. public RectTransform Group_ResourceBar
  136. {
  137. get{
  138. if (_Group_ResourceBar == null)
  139. {
  140. _Group_ResourceBar = GetUIUnit<RectTransform>("Group_ResourceBar");
  141. }
  142. return _Group_ResourceBar;
  143. }
  144. }
  145. #endregion 自定义数据结束
  146. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  147. {
  148. await base.SetUIGameObject(gObjectPoolInterface);
  149. Init();
  150. }
  151. }
  152. }