Skip to content

Commit 7824246

Browse files
committed
非常暴力的部分恢复为旧版风格
未恢复的有字体大小
1 parent 78e41fb commit 7824246

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

osu.Game/Overlays/Chat/ChatLine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ private void updateMessageContent()
300300

301301
private void updateTimestamp()
302302
{
303-
drawableTimestamp.Text = message.Timestamp.LocalDateTime.ToLocalisableString(prefer24HourTime.Value ? @"HH:mm" : @"hh:mm tt");
303+
drawableTimestamp.Text = message.Timestamp.LocalDateTime.ToLocalisableString(prefer24HourTime.Value ? @"HH:mm:ss" : @"hh:mm:ss tt");
304304
}
305305

306306
private static readonly Color4[] default_username_colours =

osu.Game/Overlays/Chat/DrawableChannel.cs

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -84,24 +84,26 @@ protected override void LoadComplete()
8484
highlightedMessage.BindValueChanged(_ => processMessageHighlighting(), true);
8585
}
8686

87-
protected override void Update()
88-
{
89-
base.Update();
90-
91-
long? lastMinutes = null;
92-
93-
for (int i = 0; i < ChatLineFlow.Count; i++)
94-
{
95-
if (ChatLineFlow[i] is ChatLine chatline)
96-
{
97-
long minutes = chatline.Message.Timestamp.ToUnixTimeSeconds() / 60;
98-
99-
chatline.AlternatingBackground = i % 2 == 0;
100-
chatline.RequiresTimestamp = minutes != lastMinutes;
101-
lastMinutes = minutes;
102-
}
103-
}
104-
}
87+
// 去除背景替换和时间消除
88+
// 其实就是返回旧版
89+
// protected override void Update()
90+
// {
91+
// base.Update();
92+
//
93+
// long? lastMinutes = null;
94+
//
95+
// for (int i = 0; i < ChatLineFlow.Count; i++)
96+
// {
97+
// if (ChatLineFlow[i] is ChatLine chatline)
98+
// {
99+
// long minutes = chatline.Message.Timestamp.ToUnixTimeSeconds() / 60;
100+
//
101+
// chatline.AlternatingBackground = i % 2 == 0;
102+
// chatline.RequiresTimestamp = minutes != lastMinutes;
103+
// lastMinutes = minutes;
104+
// }
105+
// }
106+
// }
105107

106108
/// <summary>
107109
/// Processes any pending message in <see cref="highlightedMessage"/>.

0 commit comments

Comments
 (0)