blob: da2efedf4fec21de4bdb38a92c3390204a6f8dd8 (
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
|
using System;
using System.Collections.Generic;
using UILib;
using XMainClient.UI.UICommon;
using XUtliPoolLib;
namespace XMainClient.UI
{
internal class XGuildHuntDramaOperate : XDramaOperate
{
private XDramaOperateParam _param;
public override void ShowNpc(XNpc npc)
{
base.ShowNpc(npc);
this._param = XDataPool<XDramaOperateParam>.GetData();
this._param.Npc = npc;
this._param.Text = XSingleton<UiUtility>.singleton.ReplaceReturn(XStringDefineProxy.GetString("GuildGrowthHuntText"));
this._param.AppendButton(XStringDefineProxy.GetString("GuildGrowthHuntOK"), new ButtonClickEventHandler(this.ToDoSomething), 0UL);
this._param.AppendButton(XStringDefineProxy.GetString("GuildGrowthHuntRefuse"), new ButtonClickEventHandler(this.CloseUI), 0UL);
base._FireEvent(this._param);
}
private bool ToDoSomething(IXUIButton button)
{
bool flag = DlgBase<DramaDlg, DramaDlgBehaviour>.singleton.IsVisible();
if (flag)
{
DlgBase<DramaDlg, DramaDlgBehaviour>.singleton.SetVisible(false, true);
}
XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument<XExpeditionDocument>(XExpeditionDocument.uuID);
List<ExpeditionTable.RowData> expeditionList = specificDocument.GetExpeditionList(TeamLevelType.TeamLevelGuildHunt);
XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument<XTeamDocument>(XTeamDocument.uuID);
bool flag2 = expeditionList.Count > 0;
if (flag2)
{
specificDocument2.SetAndMatch(expeditionList[0].DNExpeditionID);
}
return true;
}
private bool CloseUI(IXUIButton button)
{
bool flag = DlgBase<DramaDlg, DramaDlgBehaviour>.singleton.IsVisible();
if (flag)
{
DlgBase<DramaDlg, DramaDlgBehaviour>.singleton.SetVisible(false, true);
}
return true;
}
}
}
|