blob: dbd2bcdbed4d88937f619adb2b9005595e311f0c (
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
|
using System;
using System.Collections.Generic;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUtliPoolLib;
namespace XMainClient
{
internal class XFriendsSendFlowerBehaviour : DlgBehaviourBase
{
public const int TOTAL_RANK_NUM = 3;
public IXUIButton m_Close;
public IXUISprite m_PlayerImage;
public IXUIButton m_AddFriends;
public IXUIButton m_Chat;
public IXUILabel m_FlowerTotalNum;
public IXUILabel m_FlowerWeekNum;
public IXUILabel m_FlowerRankNum;
public IXUILabel m_PlayerName;
public IXUILabel m_SendTimes;
public IXUIButton m_SendOne;
public IXUIButton m_SendNine;
public IXUIButton m_SendNN;
public List<IXUISprite> m_RankBoard = new List<IXUISprite>();
public List<IXUISprite> m_RankSprite = new List<IXUISprite>();
public List<IXUILabel> m_RankName = new List<IXUILabel>();
public List<IXUILabel> m_RankNum = new List<IXUILabel>();
public List<IXUILabel> m_GiveFatigueNum = new List<IXUILabel>();
public List<IXUILabel> m_CostMoneyNum = new List<IXUILabel>();
public List<IXUILabel> m_GiveFlowerNum = new List<IXUILabel>();
public List<IXUISprite> m_CostSprite = new List<IXUISprite>();
public List<IXUISprite> m_RewardSprite = new List<IXUISprite>();
public List<IXUIButton> m_SendButton = new List<IXUIButton>();
public List<IXUISprite> m_SendFlowerSp = new List<IXUISprite>();
public XUIPool m_FlowerMsgPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
public XUIPool m_FlowerMineMsgPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
public IXUILabel m_GiveFatigueNum2;
public IXUISprite m_SendBoard;
public IXUISprite m_InfoOther;
public IXUISprite m_InfoMine;
private void Awake()
{
this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
this.m_PlayerImage = (base.transform.Find("Bg/info/head").GetComponent("XUISprite") as IXUISprite);
this.m_AddFriends = (base.transform.Find("Bg/info/addfriend").GetComponent("XUIButton") as IXUIButton);
this.m_Chat = (base.transform.Find("Bg/info/chat").GetComponent("XUIButton") as IXUIButton);
this.m_FlowerTotalNum = (base.transform.Find("Bg/totalnum").GetComponent("XUILabel") as IXUILabel);
this.m_FlowerWeekNum = (base.transform.Find("Bg/weeklynum").GetComponent("XUILabel") as IXUILabel);
this.m_FlowerRankNum = (base.transform.Find("Bg/weeklyranknum").GetComponent("XUILabel") as IXUILabel);
this.m_PlayerName = (base.transform.Find("Bg/titleback/name").GetComponent("XUILabel") as IXUILabel);
this.m_GiveFatigueNum2 = (base.transform.Find("Bg/SendBoard/send3/Sprite/fatiguenum2").GetComponent("XUILabel") as IXUILabel);
this.m_SendTimes = (base.transform.Find("Bg/SendBoard/times").GetComponent("XUILabel") as IXUILabel);
this.m_SendOne = (base.transform.Find("Bg/SendBoard/send1/Sprite/change").GetComponent("XUIButton") as IXUIButton);
this.m_SendNine = (base.transform.Find("Bg/SendBoard/send2/Sprite/change").GetComponent("XUIButton") as IXUIButton);
this.m_SendNN = (base.transform.Find("Bg/SendBoard/send3/Sprite/change").GetComponent("XUIButton") as IXUIButton);
this.m_SendOne.ID = 1UL;
this.m_SendNine.ID = 9UL;
this.m_SendNN.ID = 99UL;
for (int i = 1; i <= 3; i++)
{
IXUISprite item = base.transform.Find("Bg/rank/rank" + i.ToString() + "/head").GetComponent("XUISprite") as IXUISprite;
IXUILabel item2 = base.transform.Find("Bg/rank/rank" + i.ToString() + "/name").GetComponent("XUILabel") as IXUILabel;
IXUILabel item3 = base.transform.Find("Bg/rank/rank" + i.ToString() + "/num").GetComponent("XUILabel") as IXUILabel;
IXUISprite item4 = base.transform.Find("Bg/rank/rank" + i.ToString()).GetComponent("XUISprite") as IXUISprite;
IXUILabel item5 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/fatiguenum").GetComponent("XUILabel") as IXUILabel;
IXUILabel item6 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/coinnum").GetComponent("XUILabel") as IXUILabel;
IXUILabel item7 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/change/flowernum").GetComponent("XUILabel") as IXUILabel;
IXUIButton item8 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/change").GetComponent("XUIButton") as IXUIButton;
IXUISprite item9 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/change/Sprite").GetComponent("XUISprite") as IXUISprite;
IXUISprite item10 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/iconreward").GetComponent("XUISprite") as IXUISprite;
IXUISprite item11 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/iconcost").GetComponent("XUISprite") as IXUISprite;
this.m_RankBoard.Add(item4);
this.m_RankSprite.Add(item);
this.m_RankName.Add(item2);
this.m_RankNum.Add(item3);
this.m_GiveFatigueNum.Add(item5);
this.m_CostMoneyNum.Add(item6);
this.m_GiveFlowerNum.Add(item7);
this.m_SendButton.Add(item8);
this.m_SendFlowerSp.Add(item9);
this.m_CostSprite.Add(item11);
this.m_RewardSprite.Add(item10);
}
GameObject gameObject = base.transform.Find("Bg/back/scrollteam").gameObject;
GameObject gameObject2 = base.transform.Find("Bg/back/scrollteam/template").gameObject;
this.m_FlowerMsgPool.SetupPool(gameObject, gameObject2, 10u, false);
this.m_FlowerMineMsgPool.SetupPool(base.transform.Find("Bg/backMine/scrollteam").gameObject, base.transform.Find("Bg/backMine/scrollteam/template").gameObject, 10u, false);
this.m_SendBoard = (base.transform.Find("Bg/SendBoard").GetComponent("XUISprite") as IXUISprite);
this.m_InfoOther = (base.transform.Find("Bg/back").GetComponent("XUISprite") as IXUISprite);
this.m_InfoMine = (base.transform.Find("Bg/backMine").GetComponent("XUISprite") as IXUISprite);
}
}
}
|