From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/XFashionDrawer.cs | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XFashionDrawer.cs (limited to 'Client/Assets/Scripts/XMainClient/XFashionDrawer.cs') 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() + { + } + } +} -- cgit v1.1-26-g67d0