blob: 93281033fe1577a7677a9ac4a4ed4563f0fdf9cb (
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
|
using System;
using UnityEngine;
using XUtliPoolLib;
namespace XMainClient
{
internal class XJadeItemDrawer : XItemDrawer
{
public void DrawItem(GameObject go, int itemid, int itemCount = 0, bool bForceShowNum = false)
{
this._GetUI(go);
bool flag = itemid == 0;
if (flag)
{
this.DrawEmpty();
this._ClearVariables();
}
else
{
base._GetItemData(itemid);
this._SetupIcon();
this._SetupName(null);
this._SetupAttrIcon(null);
base._SetupNum(itemCount, bForceShowNum);
this._SetupNumTop(null);
base._SetupLeftDownCorner(base._GetBindingState(null));
base._SetupLeftUpCorner(false, "");
base._SetupRightDownCorner(false);
base._SetupRightUpCorner(false);
base._SetUpProf(false);
base._SetupMask();
this._ClearVariables();
}
}
public void DrawItem(GameObject go, int itemid, int itemUseCount, bool bForceShowNum, int itemCount)
{
this._GetUI(go);
bool flag = itemid == 0;
if (flag)
{
this.DrawEmpty();
this._ClearVariables();
}
else
{
base._GetItemData(itemid);
this._SetupIcon();
this._SetupName(null);
this._SetupAttrIcon(null);
base._SetupNum(itemUseCount, bForceShowNum, itemCount);
this._SetupNumTop(null);
base._SetupLeftDownCorner(base._GetBindingState(null));
base._SetupLeftUpCorner(false, "");
base._SetupRightDownCorner(false);
base._SetupRightUpCorner(false);
base._SetUpProf(false);
base._SetupMask();
this._ClearVariables();
}
}
protected override void _SetupNumTop(XItem jade)
{
bool flag = this.m_numTop != null && this.itemdata != null;
if (flag)
{
XJadeDocument specificDocument = XDocuments.GetSpecificDocument<XJadeDocument>(XJadeDocument.uuID);
JadeTable jadeTable = specificDocument.jadeTable;
JadeTable.RowData byJadeID = jadeTable.GetByJadeID((uint)this.itemdata.ItemID);
bool flag2 = byJadeID != null;
if (flag2)
{
base._SetNumTopUI("Lv." + byJadeID.JadeLevel);
}
}
}
}
}
|