Merge pull request #8218 from dobrykafe/pr-align-friendslist

Fix alignment of labels in friends list
This commit is contained in:
Dennis Felsing 2024-04-15 01:31:55 +00:00 committed by GitHub
commit 2e211c9a31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1479,12 +1479,11 @@ void CMenus::RenderServerbrowserFriends(CUIRect View)
Rect.HSplitTop(11.0f + 10.0f, &Rect, nullptr);
// tee
CUIRect Skin;
Rect.VSplitLeft(Rect.h, &Skin, &Rect);
Rect.VSplitLeft(2.0f, nullptr, &Rect);
if(Friend.Skin()[0] != '\0')
{
CUIRect Skin;
Rect.VSplitLeft(Rect.h, &Skin, &Rect);
Rect.VSplitLeft(2.0f, nullptr, &Rect);
const CTeeRenderInfo TeeInfo = GetTeeRenderInfo(vec2(Skin.w, Skin.h), Friend.Skin(), Friend.CustomSkinColors(), Friend.CustomSkinColorBody(), Friend.CustomSkinColorFeet());
const CAnimState *pIdleState = CAnimState::GetIdle();
vec2 OffsetToMid;