File tree Expand file tree Collapse file tree 2 files changed +21
-19
lines changed Expand file tree Collapse file tree 2 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ private void updateMessageContent()
300
300
301
301
private void updateTimestamp ( )
302
302
{
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" ) ;
304
304
}
305
305
306
306
private static readonly Color4 [ ] default_username_colours =
Original file line number Diff line number Diff line change @@ -84,24 +84,26 @@ protected override void LoadComplete()
84
84
highlightedMessage . BindValueChanged ( _ => processMessageHighlighting ( ) , true ) ;
85
85
}
86
86
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
+ // }
105
107
106
108
/// <summary>
107
109
/// Processes any pending message in <see cref="highlightedMessage"/>.
You can’t perform that action at this time.
0 commit comments