summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildView.cs
blob: 5c7de4a98b2a3a2a4cf7daefbd09c32f440d26a9 (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
using System;
using UILib;
using UnityEngine;

namespace XMainClient.UI
{
	public class XPlayerInfoChildView : XPlayerInfoChildBaseView
	{
		public IXUILabel lbPPT;

		public IXUILabel lbGuildName;

		public IXUILabel uidLab;

		public override void FindFrom(Transform t)
		{
			base.FindFrom(t);
			this.lbPPT = (t.Find("PPT").GetComponent("XUILabel") as IXUILabel);
			this.lbGuildName = (t.Find("guild").GetComponent("XUILabel") as IXUILabel);
			this.uidLab = (t.Find("UID").GetComponent("XUILabel") as IXUILabel);
		}

		public void SetGuildName(string name)
		{
			bool flag = (string.Empty + name).Length > 0;
			if (flag)
			{
				this.lbGuildName.Alpha = 1f;
				this.lbGuildName.SetText(name);
			}
			else
			{
				this.lbGuildName.SetText(string.Empty);
				this.lbGuildName.Alpha = 0f;
			}
		}
	}
}