SkillKongWidgetData.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. namespace Fort23.Mono
  8. {
  9. public partial class SkillKongWidget
  10. {
  11. #region 自定义数据
  12. private MyImage _icon;
  13. public MyImage icon
  14. {
  15. get{
  16. if (_icon == null)
  17. {
  18. _icon = GetUIUnit<MyImage>("icon");
  19. }
  20. return _icon;
  21. }
  22. }
  23. private MyImage _myBg;
  24. public MyImage myBg
  25. {
  26. get{
  27. if (_myBg == null)
  28. {
  29. _myBg = GetUIUnit<MyImage>("myBg");
  30. }
  31. return _myBg;
  32. }
  33. }
  34. private RectTransform _RemovePos;
  35. public RectTransform RemovePos
  36. {
  37. get{
  38. if (_RemovePos == null)
  39. {
  40. _RemovePos = GetUIUnit<RectTransform>("RemovePos");
  41. }
  42. return _RemovePos;
  43. }
  44. }
  45. private Text _Text_Tips;
  46. public Text Text_Tips
  47. {
  48. get{
  49. if (_Text_Tips == null)
  50. {
  51. _Text_Tips = GetUIUnit<Text>("Text_Tips");
  52. }
  53. return _Text_Tips;
  54. }
  55. }
  56. private RectTransform _InfoPos;
  57. public RectTransform InfoPos
  58. {
  59. get{
  60. if (_InfoPos == null)
  61. {
  62. _InfoPos = GetUIUnit<RectTransform>("InfoPos");
  63. }
  64. return _InfoPos;
  65. }
  66. }
  67. private RectTransform _Icon_YingXiang;
  68. public RectTransform Icon_YingXiang
  69. {
  70. get{
  71. if (_Icon_YingXiang == null)
  72. {
  73. _Icon_YingXiang = GetUIUnit<RectTransform>("Icon_YingXiang");
  74. }
  75. return _Icon_YingXiang;
  76. }
  77. }
  78. private UIParticle _fx_ui_gf_fz_loop;
  79. public UIParticle fx_ui_gf_fz_loop
  80. {
  81. get{
  82. if (_fx_ui_gf_fz_loop == null)
  83. {
  84. _fx_ui_gf_fz_loop = GetUIUnit<UIParticle>("fx_ui_gf_fz_loop");
  85. }
  86. return _fx_ui_gf_fz_loop;
  87. }
  88. }
  89. private GameObject _fx_ui_gf_fz_xian_loop;
  90. public GameObject fx_ui_gf_fz_xian_loop
  91. {
  92. get{
  93. if (_fx_ui_gf_fz_xian_loop == null)
  94. {
  95. _fx_ui_gf_fz_xian_loop = GetUIUnit<GameObject>("fx_ui_gf_fz_xian_loop");
  96. }
  97. return _fx_ui_gf_fz_xian_loop;
  98. }
  99. }
  100. private GameObject _fx_ui_gf_fangzhi_loop;
  101. public GameObject fx_ui_gf_fangzhi_loop
  102. {
  103. get{
  104. if (_fx_ui_gf_fangzhi_loop == null)
  105. {
  106. _fx_ui_gf_fangzhi_loop = GetUIUnit<GameObject>("fx_ui_gf_fangzhi_loop");
  107. }
  108. return _fx_ui_gf_fangzhi_loop;
  109. }
  110. }
  111. #endregion 自定义数据结束
  112. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  113. {
  114. await base.SetUIGameObject(gObjectPoolInterface);
  115. Init();
  116. }
  117. }
  118. }