blob: f2ebd9381510afe792ccad744b3048aae76a2c31 (
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
|
using System;
using UILib;
using UnityEngine;
using XMainClient.UI;
using XMainClient.UI.UICommon;
using XUtliPoolLib;
namespace XMainClient
{
internal class XCharacterCommonMenuBehaviour : DlgBehaviourBase
{
public XPlayerInfoChildView playerView;
public XUIPool m_btntemPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
public Transform m_bgTra;
public Transform m_parentTra;
public IXUISprite m_bgSpr;
public IXUIButton btnSendFlower;
public IXUIButton btnExchange;
public IXUIButton btnClose;
public IXUISprite m_sprFrame;
public int TotalHeight = 0;
private void Awake()
{
Transform transform = base.transform.Find("Bg");
this.playerView = new XPlayerInfoChildView();
this.playerView.FindFrom(transform);
this.m_bgTra = transform;
this.m_parentTra = transform.Find("buttons");
this.m_bgSpr = (transform.Find("Bg").GetComponent("XUISprite") as IXUISprite);
this.TotalHeight = this.m_bgSpr.spriteHeight;
this.m_sprFrame = (transform.Find("AvatarFrame").GetComponent("XUISprite") as IXUISprite);
this.btnSendFlower = (transform.Find("send").GetComponent("XUIButton") as IXUIButton);
this.btnExchange = (transform.Find("CardChange").GetComponent("XUIButton") as IXUIButton);
this.btnClose = (base.transform.Find("BgBlack").GetComponent("XUIButton") as IXUIButton);
this.m_btntemPool.SetupPool(transform.gameObject, transform.Find("BtnTpl").gameObject, 5u, true);
}
}
}
|