summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/AbyssPartyBattleHandler.cs
blob: a2d8b74da6ce154c9212fbe41a85e44cd3176d23 (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
using System;
using UILib;
using XUtliPoolLib;

namespace XMainClient
{
	internal class AbyssPartyBattleHandler : DlgHandlerBase
	{
		protected override string FileName
		{
			get
			{
				return "Battle/AbyssPartyBattleBegin";
			}
		}

		private XAbyssPartyDocument doc = null;

		private IXUILabel m_Difficulty;

		protected override void Init()
		{
			base.Init();
			this.doc = XDocuments.GetSpecificDocument<XAbyssPartyDocument>(XAbyssPartyDocument.uuID);
			this.m_Difficulty = (base.transform.Find("Bg/Difficulty/Title").GetComponent("XUILabel") as IXUILabel);
		}

		protected override void OnShow()
		{
			base.OnShow();
			AbyssPartyListTable.RowData abyssPartyList = this.doc.GetAbyssPartyList();
			bool flag = abyssPartyList != null;
			if (flag)
			{
				this.m_Difficulty.SetText(abyssPartyList.Name);
			}
		}
	}
}