123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class ShopBuyItemPanel
- {
- #region 自定义数据
- private Button _Btn_Function;
- public Button Btn_Function
- {
- get{
- if (_Btn_Function == null)
- {
- _Btn_Function = GetUIUnit<Button>("Btn_Function");
- }
- return _Btn_Function;
- }
- }
- private RectTransform _ItemRoot;
- public RectTransform ItemRoot
- {
- get{
- if (_ItemRoot == null)
- {
- _ItemRoot = GetUIUnit<RectTransform>("ItemRoot");
- }
- return _ItemRoot;
- }
- }
- private Text _Text_LimitCount;
- public Text Text_LimitCount
- {
- get{
- if (_Text_LimitCount == null)
- {
- _Text_LimitCount = GetUIUnit<Text>("Text_LimitCount");
- }
- return _Text_LimitCount;
- }
- }
- private Text _Text_desc;
- public Text Text_desc
- {
- get{
- if (_Text_desc == null)
- {
- _Text_desc = GetUIUnit<Text>("Text_desc");
- }
- return _Text_desc;
- }
- }
- private Button _Btn_Reduce;
- public Button Btn_Reduce
- {
- get{
- if (_Btn_Reduce == null)
- {
- _Btn_Reduce = GetUIUnit<Button>("Btn_Reduce");
- }
- return _Btn_Reduce;
- }
- }
- private Button _Btn_Add;
- public Button Btn_Add
- {
- get{
- if (_Btn_Add == null)
- {
- _Btn_Add = GetUIUnit<Button>("Btn_Add");
- }
- return _Btn_Add;
- }
- }
- private Button _Btn_Close;
- public Button Btn_Close
- {
- get{
- if (_Btn_Close == null)
- {
- _Btn_Close = GetUIUnit<Button>("Btn_Close");
- }
- return _Btn_Close;
- }
- }
- private Text _Text_name;
- public Text Text_name
- {
- get{
- if (_Text_name == null)
- {
- _Text_name = GetUIUnit<Text>("Text_name");
- }
- return _Text_name;
- }
- }
- private Slider _UseSlider;
- public Slider UseSlider
- {
- get{
- if (_UseSlider == null)
- {
- _UseSlider = GetUIUnit<Slider>("UseSlider");
- }
- return _UseSlider;
- }
- }
- private Text _Text_BuyCount;
- public Text Text_BuyCount
- {
- get{
- if (_Text_BuyCount == null)
- {
- _Text_BuyCount = GetUIUnit<Text>("Text_BuyCount");
- }
- return _Text_BuyCount;
- }
- }
- private MyImage _ImageCurrency;
- public MyImage ImageCurrency
- {
- get{
- if (_ImageCurrency == null)
- {
- _ImageCurrency = GetUIUnit<MyImage>("ImageCurrency");
- }
- return _ImageCurrency;
- }
- }
- private GameObject _LimitObj;
- public GameObject LimitObj
- {
- get{
- if (_LimitObj == null)
- {
- _LimitObj = GetUIUnit<GameObject>("LimitObj");
- }
- return _LimitObj;
- }
- }
- private GameObject _SliderObj;
- public GameObject SliderObj
- {
- get{
- if (_SliderObj == null)
- {
- _SliderObj = GetUIUnit<GameObject>("SliderObj");
- }
- return _SliderObj;
- }
- }
- private Text _Text_Price;
- public Text Text_Price
- {
- get{
- if (_Text_Price == null)
- {
- _Text_Price = GetUIUnit<Text>("Text_Price");
- }
- return _Text_Price;
- }
- }
- private Button _Btn_Close1;
- public Button Btn_Close1
- {
- get{
- if (_Btn_Close1 == null)
- {
- _Btn_Close1 = GetUIUnit<Button>("Btn_Close1");
- }
- return _Btn_Close1;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|