summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/ModalDlgBehaviour.cs
blob: 4bf661941905ab21fd1acf320820d44e4fbcd7f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;

namespace XMainClient.UI
{
	public class ModalDlgBehaviour : DlgBehaviourBase
	{
		public IXUILabel m_Label = null;

		public IXUILabelSymbol m_LabelSymbol = null;

		public IXUIButton m_OKButton = null;

		public IXUIButton m_CancelButton = null;

		public IXUIButton m_CloseButton = null;

		public IXUISprite m_Grey = null;

		public IXUITweenTool m_PlayTween = null;

		public IXUIPanel m_Panel = null;

		public GameObject m_TwoButtonPos0;

		public GameObject m_TwoButtonPos1;

		public IXUICheckBox m_NoTip = null;

		public IXUILabel m_lblTip = null;

		public IXUILabel m_title = null;

		private void Awake()
		{
			Transform transform = base.transform.Find("Bg/Label");
			this.m_Label = (transform.GetComponent("XUILabel") as IXUILabel);
			this.m_LabelSymbol = (transform.GetComponent("XUILabelSymbol") as IXUILabelSymbol);
			Transform transform2 = base.transform.Find("Bg/OK");
			this.m_OKButton = (transform2.GetComponent("XUIButton") as IXUIButton);
			Transform transform3 = base.transform.Find("Bg/Cancel");
			this.m_CancelButton = (transform3.GetComponent("XUIButton") as IXUIButton);
			this.m_CloseButton = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
			this.m_CloseButton.SetVisible(false);
			this.m_Grey = (base.transform.Find("Grey").GetComponent("XUISprite") as IXUISprite);
			Transform transform4 = base.transform.Find("Bg");
			this.m_PlayTween = (transform4.GetComponent("XUIPlayTween") as IXUITweenTool);
			this.m_Panel = (base.transform.GetComponent("XUIPanel") as IXUIPanel);
			this.m_TwoButtonPos0 = base.transform.Find("Bg/TwoButtonPos0").gameObject;
			this.m_TwoButtonPos1 = base.transform.Find("Bg/TwoButtonPos1").gameObject;
			this.m_NoTip = (transform4.Find("NoTip/NoTip").GetComponent("XUICheckBox") as IXUICheckBox);
			this.m_lblTip = (transform4.transform.Find("NoTip/T").GetComponent("XUILabel") as IXUILabel);
			this.m_title = (transform4.transform.Find("Title").GetComponent("XUILabel") as IXUILabel);
		}
	}
}