toast translations, empty set warning

This commit is contained in:
galister
2025-12-22 20:50:00 +09:00
parent 9e6d4379b8
commit 4e77058618
7 changed files with 65 additions and 37 deletions

View File

@@ -306,16 +306,15 @@ pub(super) fn setup_custom_button<S: 'static>(
return Ok(EventResult::Pass);
}
for i in 0..5 {
Toast::new(
ToastTopic::System,
format!("Fixing floor in {}", 5 - i),
"Touch your controller to the floor!".into(),
)
.with_timeout(1.)
.with_sound(true)
.submit_at(app, Instant::now() + Duration::from_secs(i));
}
Toast::new(
ToastTopic::System,
"TOAST.FIXING_FLOOR".into(),
"TOAST.ONE_CONTROLLER_ON_FLOOR".into(),
)
.with_timeout(5.)
.with_sound(true)
.submit(app);
app.tasks.enqueue_at(
TaskType::Playspace(PlayspaceTask::FixFloor),
Instant::now() + Duration::from_secs(5),