123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- using TMPro;
- namespace Fort23.Mono
- {
- public partial class WidgetItem
- {
- #region 自定义数据
- private Button _btnClick;
- public Button btnClick
- {
- get{
- if (_btnClick == null)
- {
- _btnClick = GetUIUnit<Button>("btnClick");
- }
- return _btnClick;
- }
- }
- private MyImage _bg;
- public MyImage bg
- {
- get{
- if (_bg == null)
- {
- _bg = GetUIUnit<MyImage>("bg");
- }
- return _bg;
- }
- }
- private MyImage _icon;
- public MyImage icon
- {
- get{
- if (_icon == null)
- {
- _icon = GetUIUnit<MyImage>("icon");
- }
- return _icon;
- }
- }
- private TextMeshProUGUI _num;
- public TextMeshProUGUI num
- {
- get{
- if (_num == null)
- {
- _num = GetUIUnit<TextMeshProUGUI>("num");
- }
- return _num;
- }
- }
- private GameObject _numObj;
- public GameObject numObj
- {
- get{
- if (_numObj == null)
- {
- _numObj = GetUIUnit<GameObject>("numObj");
- }
- return _numObj;
- }
- }
- private GameObject _alertRed;
- public GameObject alertRed
- {
- get{
- if (_alertRed == null)
- {
- _alertRed = GetUIUnit<GameObject>("alertRed");
- }
- return _alertRed;
- }
- }
- private MyImage _corner;
- public MyImage corner
- {
- get{
- if (_corner == null)
- {
- _corner = GetUIUnit<MyImage>("corner");
- }
- return _corner;
- }
- }
- private MyImage _glow;
- public MyImage glow
- {
- get{
- if (_glow == null)
- {
- _glow = GetUIUnit<MyImage>("glow");
- }
- return _glow;
- }
- }
- private MyImage _light;
- public MyImage light
- {
- get{
- if (_light == null)
- {
- _light = GetUIUnit<MyImage>("light");
- }
- return _light;
- }
- }
- private MyImage _border;
- public MyImage border
- {
- get{
- if (_border == null)
- {
- _border = GetUIUnit<MyImage>("border");
- }
- return _border;
- }
- }
- private GameObject _lvObj;
- public GameObject lvObj
- {
- get{
- if (_lvObj == null)
- {
- _lvObj = GetUIUnit<GameObject>("lvObj");
- }
- return _lvObj;
- }
- }
- private Text _txtLv;
- public Text txtLv
- {
- get{
- if (_txtLv == null)
- {
- _txtLv = GetUIUnit<Text>("txtLv");
- }
- return _txtLv;
- }
- }
- private GameObject _heroShards;
- public GameObject heroShards
- {
- get{
- if (_heroShards == null)
- {
- _heroShards = GetUIUnit<GameObject>("heroShards");
- }
- return _heroShards;
- }
- }
- private MyImage _heroShardsIcon;
- public MyImage heroShardsIcon
- {
- get{
- if (_heroShardsIcon == null)
- {
- _heroShardsIcon = GetUIUnit<MyImage>("heroShardsIcon");
- }
- return _heroShardsIcon;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|