mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Use CRenderTools::RenderIcon
in editor file dialog
This commit is contained in:
parent
fb91881765
commit
42532f3149
|
@ -4325,12 +4325,7 @@ void CEditor::AddFileDialogEntry(int Index, CUIRect *pView)
|
|||
Button.VSplitLeft(Button.h, &FileIcon, &Button);
|
||||
Button.VSplitLeft(5.0f, nullptr, &Button);
|
||||
|
||||
Graphics()->TextureSet(g_pData->m_aImages[IMAGE_FILEICONS].m_Id);
|
||||
Graphics()->QuadsBegin();
|
||||
RenderTools()->SelectSprite(m_vFileList[Index].m_IsDir ? SPRITE_FILE_FOLDER : SPRITE_FILE_MAP2);
|
||||
IGraphics::CQuadItem QuadItem(FileIcon.x, FileIcon.y, FileIcon.w, FileIcon.h);
|
||||
Graphics()->QuadsDrawTL(&QuadItem, 1);
|
||||
Graphics()->QuadsEnd();
|
||||
RenderTools()->RenderIcon(IMAGE_FILEICONS, m_vFileList[Index].m_IsDir ? SPRITE_FILE_FOLDER : SPRITE_FILE_MAP2, &FileIcon);
|
||||
|
||||
if(DoButton_File(&m_vFileList[Index], m_vFileList[Index].m_aName, m_FilesSelectedIndex == Index, &Button, 0, nullptr))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue