示例#1
0
    public static void AddMySelled(COM_SelledItem item)
    {
        if (mySellRecordList_.Count >= SellRecordMax)
        {
            mySellRecordList_.RemoveAt(0);
        }
        mySellRecordList_.Add(item);
        if (OnMySelledListUpdate != null)
        {
            OnMySelledListUpdate();
        }

        DelMySelling(item.guid_);
    }
示例#2
0
    public void SetData(COM_SelledItem item)
    {
        string fmt = "MM月dd日HH:mm";

        Define.FormatUnixTimestamp(ref fmt, item.selledTime_);
        date_.text = fmt;
        string name = "";

        if (item.itemId_ != 0)
        {
            name       = ItemData.GetData(item.itemId_).name_;
            name_.text = name + string.Format("({0})", item.itemStack_);
        }
        else
        {
            name       = BabyData.GetData(item.babyId_)._Name;
            name_.text = name;
        }
        gainDiamond_.text = item.price_.ToString();
        tax_.text         = item.tax_.ToString();
    }