123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class DivineSenceEventPreviewPanel
- {
- #region 自定义数据
- private Button _myButton;
- public Button myButton
- {
- get{
- if (_myButton == null)
- {
- _myButton = GetUIUnit<Button>("myButton");
- }
- return _myButton;
- }
- }
- private MyImage _bg;
- public MyImage bg
- {
- get{
- if (_bg == null)
- {
- _bg = GetUIUnit<MyImage>("bg");
- }
- return _bg;
- }
- }
- private ScrollList _Content;
- public ScrollList Content
- {
- get{
- if (_Content == null)
- {
- _Content = GetUIUnit<ScrollList>("Content");
- }
- return _Content;
- }
- }
- private RectTransform _ContentRoot;
- public RectTransform ContentRoot
- {
- get{
- if (_ContentRoot == null)
- {
- _ContentRoot = GetUIUnit<RectTransform>("ContentRoot");
- }
- return _ContentRoot;
- }
- }
- private Button _Btn_Close;
- public Button Btn_Close
- {
- get{
- if (_Btn_Close == null)
- {
- _Btn_Close = GetUIUnit<Button>("Btn_Close");
- }
- return _Btn_Close;
- }
- }
- private RectTransform _ShengShiEventWidgetType2Root;
- public RectTransform ShengShiEventWidgetType2Root
- {
- get{
- if (_ShengShiEventWidgetType2Root == null)
- {
- _ShengShiEventWidgetType2Root = GetUIUnit<RectTransform>("ShengShiEventWidgetType2Root");
- }
- return _ShengShiEventWidgetType2Root;
- }
- }
- private Button _Btn_ShenShi;
- public Button Btn_ShenShi
- {
- get{
- if (_Btn_ShenShi == null)
- {
- _Btn_ShenShi = GetUIUnit<Button>("Btn_ShenShi");
- }
- return _Btn_ShenShi;
- }
- }
- private Button _Btn_DaoYou;
- public Button Btn_DaoYou
- {
- get{
- if (_Btn_DaoYou == null)
- {
- _Btn_DaoYou = GetUIUnit<Button>("Btn_DaoYou");
- }
- return _Btn_DaoYou;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|