287 【公会】BOSS讨伐 - 奖励界面伤害记录最新的排在上面;属性界面超过亿才缩写显示
3个文件已修改
23 ■■■■■ 已修改文件
Main/Config/PartialConfigs/PlayerPropertyConfig.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Attribute/TotalAttributeWin.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Guild/GuildBossAwardWin.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Config/PartialConfigs/PlayerPropertyConfig.cs
@@ -135,7 +135,7 @@
    //largeNumFormat 大数值格式:0 默认原数值 1 按万或者(K)显示 2 按6位数以上(才转换大数值,根据情况可统一调整)
    //largeNumFormat 大数值格式:0 默认原数值 1 按万或者(K)显示 2 按6位数以上(才转换大数值,根据情况可统一调整)3 超过亿缩写
    public static string GetValueDescription(int id, long value, int largeNumFormat = 2)
    {
        return GetValueDescriptionEx(id, value, largeNumFormat);
@@ -185,6 +185,17 @@
                label = result.ToString();
            }
        }
        else if (largeNumFormat == 3)
        {
            if (result > 100000000)
            {
                label = UIHelper.ReplaceLargeNum(result);
            }
            else
            {
                label = result.ToString();
            }
        }
        else
        {
            label = result.ToString();
Main/System/Attribute/TotalAttributeWin.cs
@@ -110,7 +110,7 @@
            nameText.text = PlayerPropertyConfig.Get(id).ShowName;
            var value = dict.TryGetValue(id, out long v) ? v : 0;
            valueText.text = PlayerPropertyConfig.GetValueDescription(id, value);
            valueText.text = PlayerPropertyConfig.GetValueDescription(id, value, 3);
        }
    }
Main/System/Guild/GuildBossAwardWin.cs
@@ -34,6 +34,7 @@
    void Display()
    {
        var _list = GuildBossManager.Instance.bossActions.Keys.ToList();
        _list.Sort(Cmp);
        atkScroller.Refresh();
        for (int i = 0; i < _list.Count; i++)
        {
@@ -60,6 +61,13 @@
        awardScroller.Restart();
    }
    int Cmp(int playerIDA, int playerIDB)
    {
        int timeA = (int)GuildBossManager.Instance.bossActions[playerIDA].Time;
        int timeB = (int)GuildBossManager.Instance.bossActions[playerIDB].Time;
        return timeB.CompareTo(timeA);
    }
    void OnRefreshCell(ScrollerDataType type, CellView cell)
    {
        var _cell = cell.GetComponent<Text>();