[WIP] Console Box for Main UI

This commit is contained in:
Alex Emmet 2026-02-19 09:54:17 +01:00
commit b8658e84b9
9 changed files with 409 additions and 19 deletions

View file

@ -28,3 +28,22 @@ impl Debug for InteractionResult {
}
}
}
impl PartialEq for InteractionResult {
fn eq(&self, other: &Self) -> bool {
match (self, other) {
(
InteractionResult::OpenScreen { screen: _ },
InteractionResult::OpenScreen { screen: _ },
) => true,
(
InteractionResult::OpenFutureScreen { screen: _ },
InteractionResult::OpenFutureScreen { screen: _ },
) => true,
(InteractionResult::CloseScreen, InteractionResult::CloseScreen) => true,
(InteractionResult::Handled, InteractionResult::Handled) => true,
(InteractionResult::Unhandled, InteractionResult::Unhandled) => true,
_ => false,
}
}
}