123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class ItemPanel
- {
- #region 自定义数据
- private Text _txtlName;
- public Text txtlName
- {
- get{
- if (_txtlName == null)
- {
- _txtlName = GetUIUnit<Text>("txtlName");
- }
- return _txtlName;
- }
- }
- private Button _btnBack;
- public Button btnBack
- {
- get{
- if (_btnBack == null)
- {
- _btnBack = GetUIUnit<Button>("btnBack");
- }
- return _btnBack;
- }
- }
- private GameObject _diObj;
- public GameObject diObj
- {
- get{
- if (_diObj == null)
- {
- _diObj = GetUIUnit<GameObject>("diObj");
- }
- return _diObj;
- }
- }
- private RectTransform _itemRoot;
- public RectTransform itemRoot
- {
- get{
- if (_itemRoot == null)
- {
- _itemRoot = GetUIUnit<RectTransform>("itemRoot");
- }
- return _itemRoot;
- }
- }
- private GameObject _item;
- public GameObject item
- {
- get{
- if (_item == null)
- {
- _item = GetUIUnit<GameObject>("item");
- }
- return _item;
- }
- }
- private MyImage _zyIcon;
- public MyImage zyIcon
- {
- get{
- if (_zyIcon == null)
- {
- _zyIcon = GetUIUnit<MyImage>("zyIcon");
- }
- return _zyIcon;
- }
- }
- private Text _desc;
- public Text desc
- {
- get{
- if (_desc == null)
- {
- _desc = GetUIUnit<Text>("desc");
- }
- return _desc;
- }
- }
- private List<object> _attIcon;
- public List<object> attIcon
- {
- get{
- if (_attIcon == null)
- {
- _attIcon = GetUIUnit<List<object>>("attIcon");
- }
- return _attIcon;
- }
- }
- private List<object> _attValue;
- public List<object> attValue
- {
- get{
- if (_attValue == null)
- {
- _attValue = GetUIUnit<List<object>>("attValue");
- }
- return _attValue;
- }
- }
- private Button _btnDi;
- public Button btnDi
- {
- get{
- if (_btnDi == null)
- {
- _btnDi = GetUIUnit<Button>("btnDi");
- }
- return _btnDi;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|