45 lines
1004 B
C#
45 lines
1004 B
C#
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using System.Collections;
|
|
using GCGame.Table;
|
|
using Games.Mission;
|
|
using Games.Events;
|
|
using Games.Item;
|
|
|
|
public class MarketPlayerSellLogItemInfo
|
|
{
|
|
public int ItemDataID;
|
|
public int ItemCnt;
|
|
public int SellMoney;
|
|
}
|
|
|
|
public class MarketPlayerSellLogItem : UIItemBase
|
|
{
|
|
|
|
public Text _ItemName;
|
|
public Text _SellCnt;
|
|
public Text _SellMoney;
|
|
|
|
public override void Show(Hashtable hash)
|
|
{
|
|
base.Show();
|
|
|
|
var logItem = (MarketPlayerSellLogItemInfo)hash["InitObj"];
|
|
if (logItem != null)
|
|
InitItem(logItem);
|
|
}
|
|
|
|
protected void InitItem(MarketPlayerSellLogItemInfo itemParam)
|
|
{
|
|
Tab_CommonItem commonItem = TableManager.GetCommonItemByID(itemParam.ItemDataID, 0);
|
|
if (commonItem == null)
|
|
return;
|
|
|
|
_ItemName.text = commonItem.Name;
|
|
_SellCnt.text = itemParam.ItemCnt.ToString();
|
|
_SellMoney.text = itemParam.SellMoney.ToString();
|
|
}
|
|
|
|
}
|