blob: e212625ab3752604401f9c366384df95b1580fb1 (
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
64
65
66
67
68
69
70
|
using System;
using System.Collections.Generic;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUtliPoolLib;
namespace XMainClient.UI
{
internal class DemoUIBehaviour : DlgBehaviourBase
{
public IXUIButton m_Button = null;
public IXUIButton m_PreviousButton = null;
public IXUIButton m_NextButton = null;
public IXUIInput m_Input = null;
public IXUIButton m_Close = null;
public XUIPool m_MessagePool;
public List<IXUILabel> m_ActiveMessages;
public IXUIScrollView m_ScrollView;
public GameObject m_Bg;
public IXUILabel m_fps = null;
public IXUIButton m_Open = null;
private void Awake()
{
this.m_Bg = base.transform.Find("Bg").gameObject;
Transform transform = base.transform.Find("Bg/DebugCommitBtn");
bool flag = null != transform;
if (flag)
{
this.m_Button = (transform.GetComponent("XUIButton") as IXUIButton);
}
this.m_PreviousButton = (base.transform.Find("Bg/PreviousBtn").GetComponent("XUIButton") as IXUIButton);
this.m_NextButton = (base.transform.Find("Bg/NextBtn").GetComponent("XUIButton") as IXUIButton);
this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
Transform transform2 = base.transform.Find("Bg/DebugDlgInput");
bool flag2 = null != transform2;
if (flag2)
{
this.m_Input = (transform2.GetComponent("XUIInput") as IXUIInput);
}
this.m_ScrollView = (base.transform.Find("Bg/MessageDisplay").GetComponent("XUIScrollView") as IXUIScrollView);
this.m_MessagePool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
this.m_MessagePool.SetupPool(base.transform.Find("Bg/MessageDisplay").gameObject, base.transform.Find("Bg/MessageDisplay/MessageTpl").gameObject, DemoUI.MAX_MESSAGE_COUNT, false);
this.m_ActiveMessages = new List<IXUILabel>((int)DemoUI.MAX_MESSAGE_COUNT);
Transform transform3 = base.transform.Find("fps");
bool flag3 = null != transform3;
if (flag3)
{
this.m_fps = (transform3.GetComponent("XUILabel") as IXUILabel);
Transform transform4 = transform3.Find("Open");
bool flag4 = transform4 != null;
if (flag4)
{
this.m_Open = (transform4.GetComponent("XUIButton") as IXUIButton);
}
}
}
}
}
|