Skip to content

Commit

Permalink
我有强迫症
Browse files Browse the repository at this point in the history
  • Loading branch information
PercyDan54 committed Sep 25, 2024
1 parent 46114a8 commit a4ed101
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,26 +205,26 @@ protected override void UpdateValue(Lyric lyric)
contentText.Text = lyric.Content;
translateText.Text = lyric.TranslatedString;

var timeSpan = TimeSpan.FromMilliseconds(Math.Max(lyric.Time - plugin.Offset.Value, 0));
var timeSpan = TimeSpan.FromMilliseconds(Math.Max(lyric.Time - offset.Value, 0));
timeText.Text = $"{timeSpan:mm\\:ss\\.fff}";
TooltipText = $"{timeText.Text}"
+ (string.IsNullOrEmpty(lyric.Content)
? ""
? string.Empty
: $"- {lyric.Content}")
+ (string.IsNullOrEmpty(lyric.TranslatedString)
? ""
? string.Empty
: $"- {lyric.TranslatedString}");

haveLyric = string.IsNullOrEmpty(lyric.Content);
haveLyric = !string.IsNullOrWhiteSpace(lyric.Content);

Colour = haveLyric
? Color4Extensions.FromHex(@"555")
: Color4.White;
? Color4.White
: Color4Extensions.FromHex(@"555");
}

protected override bool OnClick(ClickEvent e)
{
llinScreen.SeekTo(Value.Time + 1 - plugin.Offset.Value);
llinScreen.SeekTo(Value.Time + 1 - offset.Value);
return base.OnClick(e);
}

Expand Down

0 comments on commit a4ed101

Please sign in to comment.