287 【公会】BOSS讨伐 - 奖励界面伤害记录最新的排在上面;属性界面超过亿才缩写显示
| | |
| | | |
| | | |
| | | |
| | | //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); |
| | |
| | | label = result.ToString(); |
| | | } |
| | | } |
| | | else if (largeNumFormat == 3) |
| | | { |
| | | if (result > 100000000) |
| | | { |
| | | label = UIHelper.ReplaceLargeNum(result); |
| | | } |
| | | else |
| | | { |
| | | label = result.ToString(); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | label = result.ToString(); |
| | |
| | | |
| | | 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); |
| | | } |
| | | } |
| | | |
| | |
| | | void Display() |
| | | { |
| | | var _list = GuildBossManager.Instance.bossActions.Keys.ToList(); |
| | | _list.Sort(Cmp); |
| | | atkScroller.Refresh(); |
| | | for (int i = 0; i < _list.Count; i++) |
| | | { |
| | |
| | | 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>(); |