123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class SkillUIComponent
- {
- #region 自定义数据
- private Text _txtSkillName;
- public Text txtSkillName
- {
- get{
- if (_txtSkillName == null)
- {
- _txtSkillName = GetUIUnit<Text>("txtSkillName");
- }
- return _txtSkillName;
- }
- }
- private Text _txtLv;
- public Text txtLv
- {
- get{
- if (_txtLv == null)
- {
- _txtLv = GetUIUnit<Text>("txtLv");
- }
- return _txtLv;
- }
- }
- private Text _txtCD;
- public Text txtCD
- {
- get{
- if (_txtCD == null)
- {
- _txtCD = GetUIUnit<Text>("txtCD");
- }
- return _txtCD;
- }
- }
- private Text _txSkillLv1Desc;
- public Text txSkillLv1Desc
- {
- get{
- if (_txSkillLv1Desc == null)
- {
- _txSkillLv1Desc = GetUIUnit<Text>("txSkillLv1Desc");
- }
- return _txSkillLv1Desc;
- }
- }
- private Text _txSkillLv2Add;
- public Text txSkillLv2Add
- {
- get{
- if (_txSkillLv2Add == null)
- {
- _txSkillLv2Add = GetUIUnit<Text>("txSkillLv2Add");
- }
- return _txSkillLv2Add;
- }
- }
- private Text _txSkillLv3Add;
- public Text txSkillLv3Add
- {
- get{
- if (_txSkillLv3Add == null)
- {
- _txSkillLv3Add = GetUIUnit<Text>("txSkillLv3Add");
- }
- return _txSkillLv3Add;
- }
- }
- private Text _txSkillLv4Add;
- public Text txSkillLv4Add
- {
- get{
- if (_txSkillLv4Add == null)
- {
- _txSkillLv4Add = GetUIUnit<Text>("txSkillLv4Add");
- }
- return _txSkillLv4Add;
- }
- }
- private RectTransform _skillRoot;
- public RectTransform skillRoot
- {
- get{
- if (_skillRoot == null)
- {
- _skillRoot = GetUIUnit<RectTransform>("skillRoot");
- }
- return _skillRoot;
- }
- }
- private Text _txtTips;
- public Text txtTips
- {
- get{
- if (_txtTips == null)
- {
- _txtTips = GetUIUnit<Text>("txtTips");
- }
- return _txtTips;
- }
- }
- private List<object> _skillDesc;
- public List<object> skillDesc
- {
- get{
- if (_skillDesc == null)
- {
- _skillDesc = GetUIUnit<List<object>>("skillDesc");
- }
- return _skillDesc;
- }
- }
- private VerticalLayoutGroup _layoutGroup;
- public VerticalLayoutGroup layoutGroup
- {
- get{
- if (_layoutGroup == null)
- {
- _layoutGroup = GetUIUnit<VerticalLayoutGroup>("layoutGroup");
- }
- return _layoutGroup;
- }
- }
- private Button _btnBack;
- public Button btnBack
- {
- get{
- if (_btnBack == null)
- {
- _btnBack = GetUIUnit<Button>("btnBack");
- }
- return _btnBack;
- }
- }
- private GameObject _widgetSkill;
- public GameObject widgetSkill
- {
- get{
- if (_widgetSkill == null)
- {
- _widgetSkill = GetUIUnit<GameObject>("widgetSkill");
- }
- return _widgetSkill;
- }
- }
- 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();
- }
- }
- }
|