SelectFaBaoPanelData.cs 3.1 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 SelectFaBaoPanel
  9. {
  10. #region 自定义数据
  11. private MyImage _Icon_Attribute;
  12. public MyImage Icon_Attribute
  13. {
  14. get{
  15. if (_Icon_Attribute == null)
  16. {
  17. _Icon_Attribute = GetUIUnit<MyImage>("Icon_Attribute");
  18. }
  19. return _Icon_Attribute;
  20. }
  21. }
  22. private Text _Text_Attribute;
  23. public Text Text_Attribute
  24. {
  25. get{
  26. if (_Text_Attribute == null)
  27. {
  28. _Text_Attribute = GetUIUnit<Text>("Text_Attribute");
  29. }
  30. return _Text_Attribute;
  31. }
  32. }
  33. private Text _Text_FaBaoName;
  34. public Text Text_FaBaoName
  35. {
  36. get{
  37. if (_Text_FaBaoName == null)
  38. {
  39. _Text_FaBaoName = GetUIUnit<Text>("Text_FaBaoName");
  40. }
  41. return _Text_FaBaoName;
  42. }
  43. }
  44. private Text _Text_Power;
  45. public Text Text_Power
  46. {
  47. get{
  48. if (_Text_Power == null)
  49. {
  50. _Text_Power = GetUIUnit<Text>("Text_Power");
  51. }
  52. return _Text_Power;
  53. }
  54. }
  55. private Text _Text_Desc;
  56. public Text Text_Desc
  57. {
  58. get{
  59. if (_Text_Desc == null)
  60. {
  61. _Text_Desc = GetUIUnit<Text>("Text_Desc");
  62. }
  63. return _Text_Desc;
  64. }
  65. }
  66. private MyImage _Icon_FaBaoIcon;
  67. public MyImage Icon_FaBaoIcon
  68. {
  69. get{
  70. if (_Icon_FaBaoIcon == null)
  71. {
  72. _Icon_FaBaoIcon = GetUIUnit<MyImage>("Icon_FaBaoIcon");
  73. }
  74. return _Icon_FaBaoIcon;
  75. }
  76. }
  77. private RectTransform _CurrentFaBaoRoot;
  78. public RectTransform CurrentFaBaoRoot
  79. {
  80. get{
  81. if (_CurrentFaBaoRoot == null)
  82. {
  83. _CurrentFaBaoRoot = GetUIUnit<RectTransform>("CurrentFaBaoRoot");
  84. }
  85. return _CurrentFaBaoRoot;
  86. }
  87. }
  88. private GameObject _equipTipsRoot;
  89. public GameObject equipTipsRoot
  90. {
  91. get{
  92. if (_equipTipsRoot == null)
  93. {
  94. _equipTipsRoot = GetUIUnit<GameObject>("equipTipsRoot");
  95. }
  96. return _equipTipsRoot;
  97. }
  98. }
  99. private RectTransform _Content;
  100. public RectTransform Content
  101. {
  102. get{
  103. if (_Content == null)
  104. {
  105. _Content = GetUIUnit<RectTransform>("Content");
  106. }
  107. return _Content;
  108. }
  109. }
  110. private Button _Btn_Close;
  111. public Button Btn_Close
  112. {
  113. get{
  114. if (_Btn_Close == null)
  115. {
  116. _Btn_Close = GetUIUnit<Button>("Btn_Close");
  117. }
  118. return _Btn_Close;
  119. }
  120. }
  121. private RectTransform _FaBaoAttributeWidgetRoot;
  122. public RectTransform FaBaoAttributeWidgetRoot
  123. {
  124. get{
  125. if (_FaBaoAttributeWidgetRoot == null)
  126. {
  127. _FaBaoAttributeWidgetRoot = GetUIUnit<RectTransform>("FaBaoAttributeWidgetRoot");
  128. }
  129. return _FaBaoAttributeWidgetRoot;
  130. }
  131. }
  132. #endregion 自定义数据结束
  133. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  134. {
  135. await base.SetUIGameObject(gObjectPoolInterface);
  136. Init();
  137. }
  138. }
  139. }