blob: 78f9dd735f81f57d4883aae26f9efb7b50391ce0 (
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
59
60
61
62
63
|
using System;
using UILib;
using UnityEngine;
using XMainClient.UI;
using XMainClient.UI.UICommon;
using XUtliPoolLib;
namespace XMainClient
{
internal class AbyssPartyEntranceBehaviour : DlgBehaviourBase
{
public IXUIButton m_Close;
public IXUIButton m_Help;
public IXUIButton m_Join;
public IXUIButton m_Fall;
public XUIPool m_TabPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
public IXUILabel m_Name;
public IXUILabel m_CurPPT;
public IXUILabel m_SugPPT;
public IXUILabel m_SugLevel;
public Transform m_CostItem;
public XUIPool m_AbyssPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
private void Awake()
{
this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton);
this.m_Join = (base.transform.Find("Bg/EnterBtn").GetComponent("XUIButton") as IXUIButton);
this.m_Fall = (base.transform.Find("Bg/FallBtn").GetComponent("XUIButton") as IXUIButton);
Transform transform = base.transform.Find("Bg/Tab/TabTpl");
this.m_TabPool.SetupPool(null, transform.gameObject, 3u, false);
this.m_Name = (base.transform.Find("Bg/DetailFrame/NestName").GetComponent("XUILabel") as IXUILabel);
this.m_CurPPT = (base.transform.Find("Bg/DetailFrame/CurPPT").GetComponent("XUILabel") as IXUILabel);
this.m_SugPPT = (base.transform.Find("Bg/DetailFrame/SugPPT").GetComponent("XUILabel") as IXUILabel);
this.m_SugLevel = (base.transform.Find("Bg/DetailFrame/SugLevel").GetComponent("XUILabel") as IXUILabel);
this.m_CostItem = base.transform.Find("Bg/Cost");
Transform transform2 = base.transform.Find("Bg/LevelFrame");
Transform transform3 = transform2.Find("AbyssTpl");
this.m_AbyssPool.SetupPool(null, transform3.gameObject, AbyssPartyEntranceView.ABYSS_MAX, false);
this.m_AbyssPool.FakeReturnAll();
int num = 0;
while ((long)num < (long)((ulong)AbyssPartyEntranceView.ABYSS_MAX))
{
GameObject gameObject = this.m_AbyssPool.FetchGameObject(false);
Transform transform4 = transform2.Find(string.Format("Abyss{0}", num));
XSingleton<UiUtility>.singleton.AddChild(transform4.gameObject, gameObject);
gameObject.name = "item";
num++;
}
this.m_AbyssPool.ActualReturnAll(true);
}
}
}
|