MainHeroPanelData.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 MainHeroPanel
  10. {
  11. #region 自定义数据
  12. private Button _Btn_Close;
  13. public Button Btn_Close
  14. {
  15. get{
  16. if (_Btn_Close == null)
  17. {
  18. _Btn_Close = GetUIUnit<Button>("Btn_Close");
  19. }
  20. return _Btn_Close;
  21. }
  22. }
  23. private RectTransform _FaBaoRoot;
  24. public RectTransform FaBaoRoot
  25. {
  26. get{
  27. if (_FaBaoRoot == null)
  28. {
  29. _FaBaoRoot = GetUIUnit<RectTransform>("FaBaoRoot");
  30. }
  31. return _FaBaoRoot;
  32. }
  33. }
  34. private RectTransform _Content;
  35. public RectTransform Content
  36. {
  37. get{
  38. if (_Content == null)
  39. {
  40. _Content = GetUIUnit<RectTransform>("Content");
  41. }
  42. return _Content;
  43. }
  44. }
  45. private GameObject _HeroAttributeWidgetGam;
  46. public GameObject HeroAttributeWidgetGam
  47. {
  48. get{
  49. if (_HeroAttributeWidgetGam == null)
  50. {
  51. _HeroAttributeWidgetGam = GetUIUnit<GameObject>("HeroAttributeWidgetGam");
  52. }
  53. return _HeroAttributeWidgetGam;
  54. }
  55. }
  56. private Button _Btn_Sentiment;
  57. public Button Btn_Sentiment
  58. {
  59. get{
  60. if (_Btn_Sentiment == null)
  61. {
  62. _Btn_Sentiment = GetUIUnit<Button>("Btn_Sentiment");
  63. }
  64. return _Btn_Sentiment;
  65. }
  66. }
  67. private ReorderableList _reorderableList;
  68. public ReorderableList reorderableList
  69. {
  70. get{
  71. if (_reorderableList == null)
  72. {
  73. _reorderableList = GetUIUnit<ReorderableList>("reorderableList");
  74. }
  75. return _reorderableList;
  76. }
  77. }
  78. #endregion 自定义数据结束
  79. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  80. {
  81. await base.SetUIGameObject(gObjectPoolInterface);
  82. Init();
  83. }
  84. }
  85. }