ExpElixirItemWidgetData.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 ExpElixirItemWidget
  10. {
  11. #region 自定义数据
  12. private Text _Text_ItemName;
  13. public Text Text_ItemName
  14. {
  15. get{
  16. if (_Text_ItemName == null)
  17. {
  18. _Text_ItemName = GetUIUnit<Text>("Text_ItemName");
  19. }
  20. return _Text_ItemName;
  21. }
  22. }
  23. private MyImage _Icon_ItemIcon;
  24. public MyImage Icon_ItemIcon
  25. {
  26. get{
  27. if (_Icon_ItemIcon == null)
  28. {
  29. _Icon_ItemIcon = GetUIUnit<MyImage>("Icon_ItemIcon");
  30. }
  31. return _Icon_ItemIcon;
  32. }
  33. }
  34. private Text _Text_ExpDesc;
  35. public Text Text_ExpDesc
  36. {
  37. get{
  38. if (_Text_ExpDesc == null)
  39. {
  40. _Text_ExpDesc = GetUIUnit<Text>("Text_ExpDesc");
  41. }
  42. return _Text_ExpDesc;
  43. }
  44. }
  45. private Text _Text_ItemCount;
  46. public Text Text_ItemCount
  47. {
  48. get{
  49. if (_Text_ItemCount == null)
  50. {
  51. _Text_ItemCount = GetUIUnit<Text>("Text_ItemCount");
  52. }
  53. return _Text_ItemCount;
  54. }
  55. }
  56. private UIParticle _fx_ui_danyao_qi;
  57. public UIParticle fx_ui_danyao_qi
  58. {
  59. get{
  60. if (_fx_ui_danyao_qi == null)
  61. {
  62. _fx_ui_danyao_qi = GetUIUnit<UIParticle>("fx_ui_danyao_qi");
  63. }
  64. return _fx_ui_danyao_qi;
  65. }
  66. }
  67. #endregion 自定义数据结束
  68. public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
  69. {
  70. await base.SetUIGameObject(gObjectPoolInterface);
  71. Init();
  72. }
  73. }
  74. }