123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- using TMPro;
- namespace Fort23.Mono
- {
- public partial class HeroDetailPanel
- {
- #region 自定义数据
- private Button _btnBack;
- public Button btnBack
- {
- get{
- if (_btnBack == null)
- {
- _btnBack = GetUIUnit<Button>("btnBack");
- }
- return _btnBack;
- }
- }
- private Text _heroRarity;
- public Text heroRarity
- {
- get{
- if (_heroRarity == null)
- {
- _heroRarity = GetUIUnit<Text>("heroRarity");
- }
- return _heroRarity;
- }
- }
- private Text _heroName;
- public Text heroName
- {
- get{
- if (_heroName == null)
- {
- _heroName = GetUIUnit<Text>("heroName");
- }
- return _heroName;
- }
- }
- private List<object> _stars;
- public List<object> stars
- {
- get{
- if (_stars == null)
- {
- _stars = GetUIUnit<List<object>>("stars");
- }
- return _stars;
- }
- }
- private MyImage _iconZhiYe;
- public MyImage iconZhiYe
- {
- get{
- if (_iconZhiYe == null)
- {
- _iconZhiYe = GetUIUnit<MyImage>("iconZhiYe");
- }
- return _iconZhiYe;
- }
- }
- private TextMeshProUGUI _txtHP;
- public TextMeshProUGUI txtHP
- {
- get{
- if (_txtHP == null)
- {
- _txtHP = GetUIUnit<TextMeshProUGUI>("txtHP");
- }
- return _txtHP;
- }
- }
- private TextMeshProUGUI _txtATK;
- public TextMeshProUGUI txtATK
- {
- get{
- if (_txtATK == null)
- {
- _txtATK = GetUIUnit<TextMeshProUGUI>("txtATK");
- }
- return _txtATK;
- }
- }
- private TextMeshProUGUI _txtDEF;
- public TextMeshProUGUI txtDEF
- {
- get{
- if (_txtDEF == null)
- {
- _txtDEF = GetUIUnit<TextMeshProUGUI>("txtDEF");
- }
- return _txtDEF;
- }
- }
- private TextMeshProUGUI _txtSHANBI;
- public TextMeshProUGUI txtSHANBI
- {
- get{
- if (_txtSHANBI == null)
- {
- _txtSHANBI = GetUIUnit<TextMeshProUGUI>("txtSHANBI");
- }
- return _txtSHANBI;
- }
- }
- private TextMeshProUGUI _txtLv;
- public TextMeshProUGUI txtLv
- {
- get{
- if (_txtLv == null)
- {
- _txtLv = GetUIUnit<TextMeshProUGUI>("txtLv");
- }
- return _txtLv;
- }
- }
- private TextMeshProUGUI _txtExpGain;
- public TextMeshProUGUI txtExpGain
- {
- get{
- if (_txtExpGain == null)
- {
- _txtExpGain = GetUIUnit<TextMeshProUGUI>("txtExpGain");
- }
- return _txtExpGain;
- }
- }
- private TextMeshProUGUI _txtUpgrade;
- public TextMeshProUGUI txtUpgrade
- {
- get{
- if (_txtUpgrade == null)
- {
- _txtUpgrade = GetUIUnit<TextMeshProUGUI>("txtUpgrade");
- }
- return _txtUpgrade;
- }
- }
- private TextMeshProUGUI _txtPromote;
- public TextMeshProUGUI txtPromote
- {
- get{
- if (_txtPromote == null)
- {
- _txtPromote = GetUIUnit<TextMeshProUGUI>("txtPromote");
- }
- return _txtPromote;
- }
- }
- private MyImage _heroShards;
- public MyImage heroShards
- {
- get{
- if (_heroShards == null)
- {
- _heroShards = GetUIUnit<MyImage>("heroShards");
- }
- return _heroShards;
- }
- }
- private TextMeshProUGUI _txtBasicEquipLv;
- public TextMeshProUGUI txtBasicEquipLv
- {
- get{
- if (_txtBasicEquipLv == null)
- {
- _txtBasicEquipLv = GetUIUnit<TextMeshProUGUI>("txtBasicEquipLv");
- }
- return _txtBasicEquipLv;
- }
- }
- private MyImage _iconCommonEquip;
- public MyImage iconCommonEquip
- {
- get{
- if (_iconCommonEquip == null)
- {
- _iconCommonEquip = GetUIUnit<MyImage>("iconCommonEquip");
- }
- return _iconCommonEquip;
- }
- }
- private MyImage _iconSpecailEquip;
- public MyImage iconSpecailEquip
- {
- get{
- if (_iconSpecailEquip == null)
- {
- _iconSpecailEquip = GetUIUnit<MyImage>("iconSpecailEquip");
- }
- return _iconSpecailEquip;
- }
- }
- private GameObject _lockObj;
- public GameObject lockObj
- {
- get{
- if (_lockObj == null)
- {
- _lockObj = GetUIUnit<GameObject>("lockObj");
- }
- return _lockObj;
- }
- }
- private Button _btnUpgrade;
- public Button btnUpgrade
- {
- get{
- if (_btnUpgrade == null)
- {
- _btnUpgrade = GetUIUnit<Button>("btnUpgrade");
- }
- return _btnUpgrade;
- }
- }
- private Button _btnPromote;
- public Button btnPromote
- {
- get{
- if (_btnPromote == null)
- {
- _btnPromote = GetUIUnit<Button>("btnPromote");
- }
- return _btnPromote;
- }
- }
- private RectTransform _ModelPos;
- public RectTransform ModelPos
- {
- get{
- if (_ModelPos == null)
- {
- _ModelPos = GetUIUnit<RectTransform>("ModelPos");
- }
- return _ModelPos;
- }
- }
- private Button _btnSkill;
- public Button btnSkill
- {
- get{
- if (_btnSkill == null)
- {
- _btnSkill = GetUIUnit<Button>("btnSkill");
- }
- return _btnSkill;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|