Refactor avatar handling completely for overlay + scoreboard + killer info - #2101
Conversation
Just a minor thing so spectator doesn't have to press tab to get avatar working for overlay sometimes.
7e53736 to
b769331
Compare
|
Ideally we would have a separate CAvatarImage storage that is updated as players join and leave, that other elements can reference instead of each requesting their own copy of each player's avatar, but this seems like a fine workaround for now |
|
Edit: Review is up 👍 two nits, higher-res-monitor issue with icons, and image list fix. |
|
Oh yeah m_pImageList has m_bDeleteImagesWhenDone set to false, when are the new CAvatarImage s deleted? |
sunmachine
left a comment
There was a problem hiding this comment.
non-blocking nit-picks
|
Going to work on a "NeoAvatar" CAvatarImage replacement and extend this PR to cover redoing scoreboard + killer HUD. |
4a19fd2 to
6c8ed0e
Compare
Throw away using CAvatarImage and instead just have our own simpler version of it. Applied for overlay, scoreboard, and killer info.
6c8ed0e to
5403871
Compare
|
@Agiel @AdamTadeusz @sunmachine Just to note the PR is completely re-written so re-review it fully. |
Somehow Windows need it but Linux doesn't? But just one thing that was glossed over verses vgui avatar version.
AdamTadeusz
left a comment
There was a problem hiding this comment.
I think steamapicontext is deprecated but lgtm
Agiel
left a comment
There was a problem hiding this comment.
Verified that it's working on Linux also 🐧
|
@AdamTadeusz a670556 removed steamapicontext now, mainly so lines aren't so long/redudent anyway |
🤌 Good shit |



Description
Throw away CAvatarImage and just it ourselves
Testing: Just go through a lot of demos + reloading NT;RE and doing it again to be sure it loads up properly.
Toolchain