12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class ExpElixirItemWidget
- {
- #region 自定义数据
- private Text _Text_ItemName;
- public Text Text_ItemName
- {
- get{
- if (_Text_ItemName == null)
- {
- _Text_ItemName = GetUIUnit<Text>("Text_ItemName");
- }
- return _Text_ItemName;
- }
- }
- private MyImage _Icon_ItemIcon;
- public MyImage Icon_ItemIcon
- {
- get{
- if (_Icon_ItemIcon == null)
- {
- _Icon_ItemIcon = GetUIUnit<MyImage>("Icon_ItemIcon");
- }
- return _Icon_ItemIcon;
- }
- }
- private MyImage _Icon_Bg;
- public MyImage Icon_Bg
- {
- get{
- if (_Icon_Bg == null)
- {
- _Icon_Bg = GetUIUnit<MyImage>("Icon_Bg");
- }
- return _Icon_Bg;
- }
- }
- private Text _Text_ExpDesc;
- public Text Text_ExpDesc
- {
- get{
- if (_Text_ExpDesc == null)
- {
- _Text_ExpDesc = GetUIUnit<Text>("Text_ExpDesc");
- }
- return _Text_ExpDesc;
- }
- }
- private Text _Text_ItemCount;
- public Text Text_ItemCount
- {
- get{
- if (_Text_ItemCount == null)
- {
- _Text_ItemCount = GetUIUnit<Text>("Text_ItemCount");
- }
- return _Text_ItemCount;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|