Merge pull request #8602 from Robyt3/Client-Ingame-Players-Skin-Tooltip

Show skin name as tooltip in ingame player list
This commit is contained in:
archimede67 2024-07-16 20:56:51 +00:00 committed by GitHub
commit fdf13e3bf5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -271,7 +271,7 @@ void CMenus::RenderPlayers(CUIRect MainView)
s_ListBox.DoStart(24.0f, TotalPlayers, 1, 3, -1, &Options);
// options
static char s_aPlayerIds[MAX_CLIENTS][3] = {{0}};
static char s_aPlayerIds[MAX_CLIENTS][4] = {{0}};
for(int i = 0, Count = 0; i < MAX_CLIENTS; ++i)
{
@ -306,8 +306,9 @@ void CMenus::RenderPlayers(CUIRect MainView)
vec2 OffsetToMid;
CRenderTools::GetRenderTeeOffsetToRenderedTee(pIdleState, &TeeInfo, OffsetToMid);
vec2 TeeRenderPos(Button.x + Button.h / 2, Button.y + Button.h / 2 + OffsetToMid.y);
RenderTools()->RenderTee(pIdleState, &TeeInfo, EMOTE_NORMAL, vec2(1.0f, 0.0f), TeeRenderPos);
Ui()->DoButtonLogic(&s_aPlayerIds[Index][3], 0, &Button);
GameClient()->m_Tooltips.DoToolTip(&s_aPlayerIds[Index][3], &Button, CurrentClient.m_aSkinName);
Player.HSplitTop(1.5f, nullptr, &Player);
Player.VSplitMid(&Player, &Button);