ZhuanPanPanelData.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. using Fort23.Core;
  2. using Fort23.UTool;
  3. using UnityEngine.UI;
  4. using UnityEngine;
  5. using System.Collections.Generic;
  6. using Core.UI.UTool.UITween;
  7. namespace Fort23.Mono
  8. {
  9. public partial class ZhuanPanPanel
  10. {
  11. #region 自定义数据
  12. private GameObject _gf_widget;
  13. public GameObject gf_widget
  14. {
  15. get{
  16. if (_gf_widget == null)
  17. {
  18. _gf_widget = GetUIUnit<GameObject>("gf_widget");
  19. }
  20. return _gf_widget;
  21. }
  22. }
  23. private RectTransform _Gf_root;
  24. public RectTransform Gf_root
  25. {
  26. get{
  27. if (_Gf_root == null)
  28. {
  29. _Gf_root = GetUIUnit<RectTransform>("Gf_root");
  30. }
  31. return _Gf_root;
  32. }
  33. }
  34. private UITweenController _jin;
  35. public UITweenController jin
  36. {
  37. get{
  38. if (_jin == null)
  39. {
  40. _jin = GetUIUnit<UITweenController>("jin");
  41. }
  42. return _jin;
  43. }
  44. }
  45. private Image _lanLiang;
  46. public Image lanLiang
  47. {
  48. get{
  49. if (_lanLiang == null)
  50. {
  51. _lanLiang = GetUIUnit<Image>("lanLiang");
  52. }
  53. return _lanLiang;
  54. }
  55. }
  56. private Text _jin_shangshi;
  57. public Text jin_shangshi
  58. {
  59. get{
  60. if (_jin_shangshi == null)
  61. {
  62. _jin_shangshi = GetUIUnit<Text>("jin_shangshi");
  63. }
  64. return _jin_shangshi;
  65. }
  66. }
  67. private Button _lanLiang_button;
  68. public Button lanLiang_button
  69. {
  70. get{
  71. if (_lanLiang_button == null)
  72. {
  73. _lanLiang_button = GetUIUnit<Button>("lanLiang_button");
  74. }
  75. return _lanLiang_button;
  76. }
  77. }
  78. private GameObject _WuXingGongFaWidget;
  79. public GameObject WuXingGongFaWidget
  80. {
  81. get{
  82. if (_WuXingGongFaWidget == null)
  83. {
  84. _WuXingGongFaWidget = GetUIUnit<GameObject>("WuXingGongFaWidget");
  85. }
  86. return _WuXingGongFaWidget;
  87. }
  88. }
  89. private RectTransform _pan;
  90. public RectTransform pan
  91. {
  92. get{
  93. if (_pan == null)
  94. {
  95. _pan = GetUIUnit<RectTransform>("pan");
  96. }
  97. return _pan;
  98. }
  99. }
  100. #endregion 自定义数据结束
  101. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  102. {
  103. await base.SetUIGameObject(gObjectPoolInterface);
  104. Init();
  105. }
  106. }
  107. }