hch
2025-07-04 b0326592b8124fddd28a35e40d37f9415cd3119f
70 子 【常规】排行榜 / 【常规】排行榜-客户端
7个文件已修改
34 ■■■■■ 已修改文件
Main/System/BillboardRank/PlayerRankCell.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/BillboardRank/PlayerRankWin.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/BillboardRank/PlayerTop3Cell.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/BillboardRank/RankModel.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Boss/MainBossEnterWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/KnapSack/Logic/ItemModel.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/KnapSack/PackManager.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/BillboardRank/PlayerRankCell.cs
@@ -55,7 +55,7 @@
            avatarCell.SetActive(true);
            avatarCell.InitUI(AvatarHelper.GetAvatarModel((int)rankData.id, (int)rankData.value3, (int)rankData.value4));
            nameText.text = rankData.name1;
            rankValueText.text = string.Format(valueFormat, rankData.cmpValue, rankData.cmpValue2, rankData.cmpValue3);
            rankValueText.text = string.Format(valueFormat, UIHelper.ReplaceLargeNum(rankData.cmpValue2 + rankData.cmpValue * Constants.ExpPointValue));
        }
        rankText.text = rank.ToString();
Main/System/BillboardRank/PlayerRankWin.cs
@@ -35,7 +35,6 @@
    protected override void NextFrameAfterOpen()
    {
        RankModel.Instance.onRankRefresh += OnRankRefresh;
        RankModel.Instance.onMyRankRefresh += OnMyRankRefresh;
        scrollerController.OnRefreshCell += OnRefreshCell;
        Refresh();
        
@@ -44,7 +43,6 @@
    protected override void OnPreClose()
    {
        RankModel.Instance.onRankRefresh -= OnRankRefresh;
        RankModel.Instance.onMyRankRefresh -= OnMyRankRefresh;
        scrollerController.OnRefreshCell -= OnRefreshCell;
    }
@@ -98,6 +96,7 @@
    {
        ShowTop3();
        scrollerController.m_Scorller.RefreshActiveCellViews();
        ShowMyRank();
    }
    void OnMyRankRefresh(int type)
Main/System/BillboardRank/PlayerTop3Cell.cs
@@ -25,7 +25,7 @@
            return;
        }
        officialTitleCell.SetActive(true);
        rankValueText.text = string.Format(valueFormat, rankData.cmpValue, rankData.cmpValue2, rankData.cmpValue3);
        rankValueText.text = string.Format(valueFormat, UIHelper.ReplaceLargeNum(rankData.cmpValue2 + rankData.cmpValue * Constants.ExpPointValue));
        nameText.text = rankData.name1;
        officialTitleCell.InitUI((int)rankData.value1, (int)rankData.value2);
    }
Main/System/BillboardRank/RankModel.cs
@@ -6,7 +6,7 @@
public class RankModel : GameSystemManager<RankModel>
{
    public event Action<int> onRankRefresh;
    public event Action<int> onMyRankRefresh;
    //public event Action<int> onMyRankRefresh;
    
    //排行榜滚动显示的最大数量 类型
    Dictionary<int, int> ranksShowMaxCnt = new Dictionary<int, int>();
@@ -265,12 +265,11 @@
                }
                ReSetRankData(m_RankPageDatas[rankType][orderIndex], package.ViewIDDataList[i], package.Type);
            }
            onMyRankRefresh?.Invoke(package.Type);
            //onMyRankRefresh?.Invoke(package.Type);    同时查询没有单独返回数据,暂时不要这个事件
        }
        else
        {
            onRankRefresh?.Invoke(package.Type);
        }
    }
@@ -346,6 +345,9 @@
// Value3     -             头像
// Value4     -             头像框
// Value5     -             主角形象
// cmpValue     比较值亿
// cmpValue2    比较值小于亿
// cmpValue3    时间戳
// ---------------------------------------
// 仙盟榜
// ID            -             仙盟ID
Main/System/Boss/MainBossEnterWin.cs
@@ -23,9 +23,9 @@
        rankBtn.AddListener(()=>
        {
            RankModel.Instance.ResetQueryParam();
            RankModel.Instance.QueryRankByPage(1, watchID: (int)PlayerDatas.Instance.baseData.PlayerID);
            RankModel.Instance.QueryRankByPage(0, watchID: (int)PlayerDatas.Instance.baseData.PlayerID);
            var win = UIManager.Instance.OpenWindow<PlayerRankWin>();
            win.rankType = 1;
            win.rankType = 0;
            
        });
    }
Main/System/KnapSack/Logic/ItemModel.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using UnityEngine;
public class ItemModel
@@ -76,6 +77,11 @@
        itemInfo = info;
        config = ItemConfig.Get(info.itemId);
        if (config == null)
        {
            Debug.LogErrorFormat("ItemConfig.Get({0}) is null", info.itemId);
            return;
        }
        useDataDict = ConfigParse.Analysis(info.userData);
        var customCount = GetUseDataFirstValue((int)ItemUseDataKey.itemCount);
Main/System/KnapSack/PackManager.cs
@@ -354,6 +354,11 @@
            if (singlePack != null)
            {
                ItemModel itemModel = singlePack.GetItemByIndex(clearItem.ItemIndex);
            if (itemModel == null)
            {
                Debug.LogErrorFormat("删除不存在的物品索引:{0}", clearItem.ItemIndex);
                return;
            }
                guid = itemModel.guid;
                int itemId = itemModel.itemId;