blob: 82af93d4cc72bb81667481141a059f21fa12ab3f (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
using System;
using UILib;
using UnityEngine;
namespace XMainClient.UI.UICommon
{
public class DlgBehaviourBase : MonoBehaviour, IXUIBehaviour, IXUIObject
{
public IXUIObject parent
{
get
{
return null;
}
set
{
}
}
public ulong ID
{
get
{
return this.m_id;
}
set
{
this.m_id = value;
}
}
public bool Exculsive
{
get
{
return this.m_bExculsive;
}
set
{
this.m_bExculsive = value;
}
}
public IXUIDlg uiDlgInterface
{
get
{
return this.m_uiDlgInterface;
}
set
{
this.m_uiDlgInterface = value;
}
}
public IXUIObject[] uiChilds
{
get
{
return this.m_uiChilds;
}
}
private IXUIDlg m_uiDlgInterface = null;
private IXUIObject[] m_uiChilds = null;
private ulong m_id;
private bool m_bExculsive = false;
public bool IsVisible()
{
return base.gameObject.activeInHierarchy;
}
public void SetVisible(bool bVisible)
{
base.gameObject.SetActive(bVisible);
}
public IXUIObject GetUIObject(string strName)
{
Transform transform = base.transform.Find(strName);
bool flag = null != transform;
IXUIObject result;
if (flag)
{
result = transform.GetComponent<XUIObjectBase>();
}
else
{
result = null;
}
return result;
}
public void OnPress()
{
this.OnFocus();
}
public void OnFocus()
{
}
public virtual void Init()
{
IXUIObject[] componentsInChildren = base.GetComponentsInChildren<XUIObjectBase>();
this.m_uiChilds = componentsInChildren;
for (int i = 0; i < this.m_uiChilds.Length; i++)
{
XUIObjectBase xuiobjectBase = this.m_uiChilds[i] as XUIObjectBase;
xuiobjectBase.Init();
}
}
public virtual void Highlight(bool bTrue)
{
}
GameObject IXUIObject.gameObject
{
get
{
return base.gameObject;
}
}
}
}
|