BtnFaBaoWidgetData.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using Fort23.Core;
  2. using Fort23.UTool;
  3. using UnityEngine.UI;
  4. using UnityEngine;
  5. using System.Collections.Generic;
  6. using UnityEngine.UI.Extensions;
  7. namespace Fort23.Mono
  8. {
  9. public partial class BtnFaBaoWidget
  10. {
  11. #region 自定义数据
  12. private RectTransform _FaBaoRoot;
  13. public RectTransform FaBaoRoot
  14. {
  15. get{
  16. if (_FaBaoRoot == null)
  17. {
  18. _FaBaoRoot = GetUIUnit<RectTransform>("FaBaoRoot");
  19. }
  20. return _FaBaoRoot;
  21. }
  22. }
  23. private Object _Text_Tips;
  24. public Object Text_Tips
  25. {
  26. get{
  27. if (_Text_Tips == null)
  28. {
  29. _Text_Tips = GetUIUnit<Object>("Text_Tips");
  30. }
  31. return _Text_Tips;
  32. }
  33. }
  34. private RedDotWidgetType01 _RedDotComType01;
  35. public RedDotWidgetType01 RedDotComType01
  36. {
  37. get{
  38. if (_RedDotComType01 == null)
  39. {
  40. _RedDotComType01 = GetUIUnit<RedDotWidgetType01>("RedDotComType01");
  41. }
  42. return _RedDotComType01;
  43. }
  44. }
  45. private ReorderableListElement _reorderableListElement;
  46. public ReorderableListElement reorderableListElement
  47. {
  48. get{
  49. if (_reorderableListElement == null)
  50. {
  51. _reorderableListElement = GetUIUnit<ReorderableListElement>("reorderableListElement");
  52. }
  53. return _reorderableListElement;
  54. }
  55. }
  56. #endregion 自定义数据结束
  57. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  58. {
  59. await base.SetUIGameObject(gObjectPoolInterface);
  60. Init();
  61. }
  62. }
  63. }