| | |
| | | GameNetSystem.Instance.SendInfo(cb511);
|
| | | } |
| | | |
| | | public void SendQueryAuctionRecord()//拍卖行查询拍卖记录
|
| | | public void SendQueryAuctionRecord(int recordType)//拍卖行查询拍卖记录(0-我的拍品记录 1-仙盟拍品记录 2-我的竞拍记录)
|
| | | {
|
| | | CB512_tagCGQueryAuctionRecord cb512 = new CB512_tagCGQueryAuctionRecord();
|
| | | cb512.RecordType = (byte)recordType;
|
| | | GameNetSystem.Instance.SendInfo(cb512);
|
| | | }
|
| | | |
| | |
| | | m_ScrollerController.OnRefreshCell += OnRefreshGridCell; |
| | | m_ScrollerControllerType.OnRefreshCell += OnRefreshGridCellType;
|
| | | m_ScrollerController.lockType = EnhanceLockType.KeepVertical; |
| | | AuctionInquiry.Instance.SendQueryAuctionRecord();//查询拍卖记录 |
| | | AuctionInquiry.Instance.SendQueryAuctionRecord(0);//查询拍卖记录 |
| | | } |
| | | |
| | | protected override void AddListeners() |
| | |
| | | if (idnex != AuctionType)
|
| | | {
|
| | | AuctionType = idnex;
|
| | | AuctionInquiry.Instance.SendQueryAuctionRecord(idnex);//查询拍卖记录
|
| | | m_TypeTip.SetActive(false);
|
| | | OnCreateGridCell(m_ScrollerController);
|
| | | m_TypeText.text = GetTextName(AuctionType);
|
| | |
| | | public virtual void Init(ItemModel model, bool isCompare = false, int compareScore = 0)
|
| | | {
|
| | | itemConfig = model.config;
|
| | | InitUI(model.guid, model.itemId, (ulong)model.count, model.equipScore, model.packType, isCompare, model.useDataDict, compareScore);
|
| | | InitUI(model.guid, model.itemId, (ulong)model.count, model.equipScore, model.isBind, model.packType, isCompare, model.useDataDict, compareScore);
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | public virtual void Init(ItemCellModel model, int compareScore = 0)
|
| | | {
|
| | | itemConfig = model.itemConfig;
|
| | | InitUI(model.guid, model.itemId, model.count, model.score, model.packType, model.isCompare, model.useDataDic, compareScore);
|
| | | InitUI(model.guid, model.itemId, model.count, model.score, model.isBind, model.packType, model.isCompare, model.useDataDic, compareScore);
|
| | | }
|
| | |
|
| | | private void InitUI(string guid, int itemId, ulong count, int score, PackType type, bool isCompare, Dictionary<int, List<int>> useDataDic, int compareScore = 0)
|
| | | private void InitUI(string guid, int itemId, ulong count, int score, int isBind, PackType type, bool isCompare, Dictionary<int, List<int>> useDataDic, int compareScore = 0)
|
| | | {
|
| | | if (itemConfig == null) return;
|
| | |
|
| | |
| | | starIcon.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | | bindIcon.gameObject.SetActive(false);
|
| | | bindIcon.gameObject.SetActive(isBind == 1);
|
| | |
|
| | | countText.text = UIHelper.ReplaceLargeNum((double)count);
|
| | | if (count > 1)
|
| | |
| | | fileFormatVersion: 2 |
| | | guid: 35473b2a6cd5171499a434642f1712a8 |
| | | timeCreated: 1516008186 |
| | | timeCreated: 1552035262 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |