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