slightly tweak features::game_networking design & add visual indicator for blocking failing due to game being closed

This commit is contained in:
2025-04-20 01:25:25 +01:00
parent 10168e84d1
commit ccc27b1944
3 changed files with 86 additions and 20 deletions
+2 -5
View File
@@ -156,15 +156,12 @@ impl App {
{
self.game_networking.unblock_all();
}
let tint = match self.game_networking.is_blocked {
true => egui::Color32::from_hex("#f96554").unwrap(),
false => egui::Color32::from_hex("#68f954").unwrap(),
};
ui.add(
egui::Image::new(egui::include_image!("../../assets/circle.svg"))
.max_size([4.0, 4.0].into())
.tint(tint),
.tint(self.game_networking.blocked_status.to_color32()),
);
self.game_networking.if_failed_return_to_unblocked();
});
});
response.response.on_disabled_hover_text(