mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Use DoIcon
for ingame player GUI icons
This commit is contained in:
parent
87cb948166
commit
25ad47bed2
|
@ -225,30 +225,15 @@ void CMenus::RenderPlayers(CUIRect MainView)
|
|||
ButtonBar.HMargin(1.0f, &ButtonBar);
|
||||
float Width = ButtonBar.h * 2.0f;
|
||||
ButtonBar.VSplitLeft(Width, &Button, &ButtonBar);
|
||||
Graphics()->TextureSet(g_pData->m_aImages[IMAGE_GUIICONS].m_Id);
|
||||
Graphics()->QuadsBegin();
|
||||
RenderTools()->SelectSprite(SPRITE_GUIICON_MUTE);
|
||||
IGraphics::CQuadItem QuadItem(Button.x, Button.y, Button.w, Button.h);
|
||||
Graphics()->QuadsDrawTL(&QuadItem, 1);
|
||||
Graphics()->QuadsEnd();
|
||||
DoIcon(IMAGE_GUIICONS, SPRITE_GUIICON_MUTE, &Button);
|
||||
|
||||
ButtonBar.VSplitLeft(20.0f, 0, &ButtonBar);
|
||||
ButtonBar.VSplitLeft(Width, &Button, &ButtonBar);
|
||||
Graphics()->TextureSet(g_pData->m_aImages[IMAGE_GUIICONS].m_Id);
|
||||
Graphics()->QuadsBegin();
|
||||
RenderTools()->SelectSprite(SPRITE_GUIICON_EMOTICON_MUTE);
|
||||
QuadItem = IGraphics::CQuadItem(Button.x, Button.y, Button.w, Button.h);
|
||||
Graphics()->QuadsDrawTL(&QuadItem, 1);
|
||||
Graphics()->QuadsEnd();
|
||||
DoIcon(IMAGE_GUIICONS, SPRITE_GUIICON_EMOTICON_MUTE, &Button);
|
||||
|
||||
ButtonBar.VSplitLeft(20.0f, 0, &ButtonBar);
|
||||
ButtonBar.VSplitLeft(Width, &Button, &ButtonBar);
|
||||
Graphics()->TextureSet(g_pData->m_aImages[IMAGE_GUIICONS].m_Id);
|
||||
Graphics()->QuadsBegin();
|
||||
RenderTools()->SelectSprite(SPRITE_GUIICON_FRIEND);
|
||||
QuadItem = IGraphics::CQuadItem(Button.x, Button.y, Button.w, Button.h);
|
||||
Graphics()->QuadsDrawTL(&QuadItem, 1);
|
||||
Graphics()->QuadsEnd();
|
||||
DoIcon(IMAGE_GUIICONS, SPRITE_GUIICON_FRIEND, &Button);
|
||||
|
||||
int TotalPlayers = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue