mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
Listen for a callback that says when avatar is available.
This commit is contained in:
parent
40076e33d0
commit
6e30d5d0eb
2 changed files with 25 additions and 7 deletions
|
@ -1208,7 +1208,7 @@ fn show_player_list_steam(
|
|||
let username = steam.get_user_name(peer.into());
|
||||
let avatar = steam.get_avatar(ctx, peer.into());
|
||||
ui.group(|ui| {
|
||||
if let Some(avatar) = avatar {
|
||||
if let Some(ref avatar) = avatar {
|
||||
avatar.display_with_labels(ui, &username, &role);
|
||||
} else {
|
||||
ui.label(&username);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue