123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class MainPanel
- {
- #region 自定义数据
- private RectTransform _DynamicEvent;
- public RectTransform DynamicEvent
- {
- get{
- if (_DynamicEvent == null)
- {
- _DynamicEvent = GetUIUnit<RectTransform>("DynamicEvent");
- }
- return _DynamicEvent;
- }
- }
- private Text _Text_ExplorationProgress;
- public Text Text_ExplorationProgress
- {
- get{
- if (_Text_ExplorationProgress == null)
- {
- _Text_ExplorationProgress = GetUIUnit<Text>("Text_ExplorationProgress");
- }
- return _Text_ExplorationProgress;
- }
- }
- private Slider _CameraSelect;
- public Slider CameraSelect
- {
- get{
- if (_CameraSelect == null)
- {
- _CameraSelect = GetUIUnit<Slider>("CameraSelect");
- }
- return _CameraSelect;
- }
- }
- private Button _Btn_Event;
- public Button Btn_Event
- {
- get{
- if (_Btn_Event == null)
- {
- _Btn_Event = GetUIUnit<Button>("Btn_Event");
- }
- return _Btn_Event;
- }
- }
- private Text _Text_EventNum;
- public Text Text_EventNum
- {
- get{
- if (_Text_EventNum == null)
- {
- _Text_EventNum = GetUIUnit<Text>("Text_EventNum");
- }
- return _Text_EventNum;
- }
- }
- private Button _Btn_Chat;
- public Button Btn_Chat
- {
- get{
- if (_Btn_Chat == null)
- {
- _Btn_Chat = GetUIUnit<Button>("Btn_Chat");
- }
- return _Btn_Chat;
- }
- }
- private Text _Text_Jingjie;
- public Text Text_Jingjie
- {
- get{
- if (_Text_Jingjie == null)
- {
- _Text_Jingjie = GetUIUnit<Text>("Text_Jingjie");
- }
- return _Text_Jingjie;
- }
- }
- private MyImage _Icon_Player;
- public MyImage Icon_Player
- {
- get{
- if (_Icon_Player == null)
- {
- _Icon_Player = GetUIUnit<MyImage>("Icon_Player");
- }
- return _Icon_Player;
- }
- }
- private Text _Text_PlayerName;
- public Text Text_PlayerName
- {
- get{
- if (_Text_PlayerName == null)
- {
- _Text_PlayerName = GetUIUnit<Text>("Text_PlayerName");
- }
- return _Text_PlayerName;
- }
- }
- private Slider _Slider_Map;
- public Slider Slider_Map
- {
- get{
- if (_Slider_Map == null)
- {
- _Slider_Map = GetUIUnit<Slider>("Slider_Map");
- }
- return _Slider_Map;
- }
- }
- private Slider _Slider_Exp;
- public Slider Slider_Exp
- {
- get{
- if (_Slider_Exp == null)
- {
- _Slider_Exp = GetUIUnit<Slider>("Slider_Exp");
- }
- return _Slider_Exp;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|