123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- using TMPro;
- namespace Fort23.Mono
- {
- public partial class WidgetHero
- {
- #region 自定义数据
- private Image _bgImg;
- public Image bgImg
- {
- get{
- if (_bgImg == null)
- {
- _bgImg = GetUIUnit<Image>("bgImg");
- }
- return _bgImg;
- }
- }
- private MyImage _iconHero;
- public MyImage iconHero
- {
- get{
- if (_iconHero == null)
- {
- _iconHero = GetUIUnit<MyImage>("iconHero");
- }
- return _iconHero;
- }
- }
- private List<object> _stars;
- public List<object> stars
- {
- get{
- if (_stars == null)
- {
- _stars = GetUIUnit<List<object>>("stars");
- }
- return _stars;
- }
- }
- private TextMeshProUGUI _lv;
- public TextMeshProUGUI lv
- {
- get{
- if (_lv == null)
- {
- _lv = GetUIUnit<TextMeshProUGUI>("lv");
- }
- return _lv;
- }
- }
- private MyImage _iconZhiYe;
- public MyImage iconZhiYe
- {
- get{
- if (_iconZhiYe == null)
- {
- _iconZhiYe = GetUIUnit<MyImage>("iconZhiYe");
- }
- return _iconZhiYe;
- }
- }
- private Button _btnHero;
- public Button btnHero
- {
- get{
- if (_btnHero == null)
- {
- _btnHero = GetUIUnit<Button>("btnHero");
- }
- return _btnHero;
- }
- }
- private Button _btnUpgrade;
- public Button btnUpgrade
- {
- get{
- if (_btnUpgrade == null)
- {
- _btnUpgrade = GetUIUnit<Button>("btnUpgrade");
- }
- return _btnUpgrade;
- }
- }
- private Button _btnHeroPanel;
- public Button btnHeroPanel
- {
- get{
- if (_btnHeroPanel == null)
- {
- _btnHeroPanel = GetUIUnit<Button>("btnHeroPanel");
- }
- return _btnHeroPanel;
- }
- }
- private TextMeshProUGUI _txtUpgrade;
- public TextMeshProUGUI txtUpgrade
- {
- get{
- if (_txtUpgrade == null)
- {
- _txtUpgrade = GetUIUnit<TextMeshProUGUI>("txtUpgrade");
- }
- return _txtUpgrade;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|