diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XFashionDrawer.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/XFashionDrawer.cs | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XFashionDrawer.cs b/Client/Assets/Scripts/XMainClient/XFashionDrawer.cs new file mode 100644 index 00000000..505e6a7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionDrawer.cs @@ -0,0 +1,66 @@ +using System;
+using UnityEngine;
+
+namespace XMainClient
+{
+ internal class XFashionDrawer : XItemDrawer
+ {
+ protected override string RightDownCornerName
+ {
+ get
+ {
+ return "sp_1";
+ }
+ }
+
+ public void DrawItem(GameObject go, int fashionID)
+ {
+ this._GetUI(go);
+ base._GetItemData(fashionID);
+ bool flag = this.itemdata == null;
+ if (flag)
+ {
+ this.DrawEmpty();
+ this._ClearVariables();
+ }
+ else
+ {
+ this._SetupIcon();
+ this._SetupName(null);
+ this._SetupNum(0);
+ this._SetupNumTop(null);
+ this._SetupAttrIcon(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, ClientFashionData fashion)
+ {
+ this.DrawItem(go, (int)fashion.itemID);
+ this._SetupTime();
+ }
+
+ protected void _SetupNum(int level)
+ {
+ bool flag = level > 0;
+ if (flag)
+ {
+ base._SetNumUI("+" + level);
+ }
+ else
+ {
+ base._SetNumUI(null);
+ }
+ }
+
+ protected void _SetupTime()
+ {
+ }
+ }
+}
|