slightly tweak features::game_networking design & add visual indicator for blocking failing due to game being closed
This commit is contained in:
+2
-5
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user