mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-08-29 16:02:10 +00:00
calculate last event diff
This commit is contained in:
parent
f7b2bbc432
commit
b7496933c7
@ -245,12 +245,14 @@ impl Dialog for PreferencesDialog {
|
|||||||
.title(n)
|
.title(n)
|
||||||
.build(),
|
.build(),
|
||||||
);
|
);
|
||||||
for e in &info.event[1..] {
|
for (i, e) in info.event[1..].iter().enumerate() {
|
||||||
g.add(
|
g.add(
|
||||||
&ActionRow::builder()
|
&ActionRow::builder()
|
||||||
|
.use_markup(true)
|
||||||
.subtitle(gformat!(
|
.subtitle(gformat!(
|
||||||
"{} ms",
|
"{} <sup>+{}</sup> ms",
|
||||||
e.time().difference(t).as_milliseconds()
|
e.time().difference(t).as_milliseconds(),
|
||||||
|
e.time().difference(info.event[i].time()).as_milliseconds(),
|
||||||
))
|
))
|
||||||
.subtitle_selectable(true)
|
.subtitle_selectable(true)
|
||||||
.title_selectable(true)
|
.title_selectable(true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user