123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- using Fort23.Core;
- using Fort23.UTool;
- using UnityEngine.UI;
- using UnityEngine;
- using System.Collections.Generic;
- namespace Fort23.Mono
- {
- public partial class DialoguePanel
- {
- #region 自定义数据
- private GameObject _nextIcon;
- public GameObject nextIcon
- {
- get{
- if (_nextIcon == null)
- {
- _nextIcon = GetUIUnit<GameObject>("nextIcon");
- }
- return _nextIcon;
- }
- }
- private Text _message;
- public Text message
- {
- get{
- if (_message == null)
- {
- _message = GetUIUnit<Text>("message");
- }
- return _message;
- }
- }
- private Button _nextButton;
- public Button nextButton
- {
- get{
- if (_nextButton == null)
- {
- _nextButton = GetUIUnit<Button>("nextButton");
- }
- return _nextButton;
- }
- }
- private MyImage _icon;
- public MyImage icon
- {
- get{
- if (_icon == null)
- {
- _icon = GetUIUnit<MyImage>("icon");
- }
- return _icon;
- }
- }
- private RectTransform _OptionRoot;
- public RectTransform OptionRoot
- {
- get{
- if (_OptionRoot == null)
- {
- _OptionRoot = GetUIUnit<RectTransform>("OptionRoot");
- }
- return _OptionRoot;
- }
- }
- private RectTransform _Dialgue;
- public RectTransform Dialgue
- {
- get{
- if (_Dialgue == null)
- {
- _Dialgue = GetUIUnit<RectTransform>("Dialgue");
- }
- return _Dialgue;
- }
- }
- private GameObject _OptionMarsk;
- public GameObject OptionMarsk
- {
- get{
- if (_OptionMarsk == null)
- {
- _OptionMarsk = GetUIUnit<GameObject>("OptionMarsk");
- }
- return _OptionMarsk;
- }
- }
- private GameObject _DialgueType1;
- public GameObject DialgueType1
- {
- get{
- if (_DialgueType1 == null)
- {
- _DialgueType1 = GetUIUnit<GameObject>("DialgueType1");
- }
- return _DialgueType1;
- }
- }
- private GameObject _DialgueType2;
- public GameObject DialgueType2
- {
- get{
- if (_DialgueType2 == null)
- {
- _DialgueType2 = GetUIUnit<GameObject>("DialgueType2");
- }
- return _DialgueType2;
- }
- }
- private GameObject _nextIcon2;
- public GameObject nextIcon2
- {
- get{
- if (_nextIcon2 == null)
- {
- _nextIcon2 = GetUIUnit<GameObject>("nextIcon2");
- }
- return _nextIcon2;
- }
- }
- private Text _message2;
- public Text message2
- {
- get{
- if (_message2 == null)
- {
- _message2 = GetUIUnit<Text>("message2");
- }
- return _message2;
- }
- }
- private Button _Btn_Cancel;
- public Button Btn_Cancel
- {
- get{
- if (_Btn_Cancel == null)
- {
- _Btn_Cancel = GetUIUnit<Button>("Btn_Cancel");
- }
- return _Btn_Cancel;
- }
- }
- private Text _message3;
- public Text message3
- {
- get{
- if (_message3 == null)
- {
- _message3 = GetUIUnit<Text>("message3");
- }
- return _message3;
- }
- }
- private GameObject _nextIcon3;
- public GameObject nextIcon3
- {
- get{
- if (_nextIcon3 == null)
- {
- _nextIcon3 = GetUIUnit<GameObject>("nextIcon3");
- }
- return _nextIcon3;
- }
- }
- private GameObject _DialgueType3;
- public GameObject DialgueType3
- {
- get{
- if (_DialgueType3 == null)
- {
- _DialgueType3 = GetUIUnit<GameObject>("DialgueType3");
- }
- return _DialgueType3;
- }
- }
- #endregion 自定义数据结束
- public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
- {
- await base.SetUIGameObject(gObjectPoolInterface);
- Init();
- }
- }
- }
|