123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class ItemSourcePanel
- {
- #region 自定义数据
- private MyImage _bg;
- public MyImage bg
- {
- get{
- if (_bg == null)
- {
- _bg = GetUIUnit<MyImage>("bg");
- }
- return _bg;
- }
- }
- private RectTransform _Content;
- public RectTransform Content
- {
- get{
- if (_Content == null)
- {
- _Content = GetUIUnit<RectTransform>("Content");
- }
- return _Content;
- }
- }
- 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_quality;
- public MyImage Icon_quality
- {
- get{
- if (_Icon_quality == null)
- {
- _Icon_quality = GetUIUnit<MyImage>("Icon_quality");
- }
- return _Icon_quality;
- }
- }
- private MyImage _Icon_Item;
- public MyImage Icon_Item
- {
- get{
- if (_Icon_Item == null)
- {
- _Icon_Item = GetUIUnit<MyImage>("Icon_Item");
- }
- return _Icon_Item;
- }
- }
- 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();
- }
- }
- }
|