mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 17:48:19 +00:00
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:
commit
fdf13e3bf5
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue