mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Clang Format
This commit is contained in:
parent
fa98ad1e36
commit
216d4421ce
|
@ -47,7 +47,8 @@ int CMenus::DoButton_FontIcon(CButtonContainer *pButtonContainer, const char *pT
|
|||
SLabelProperties Props;
|
||||
UI()->DoLabel(&Temp, pText, Temp.h * CUI::ms_FontmodHeight, TEXTALIGN_CENTER, Props);
|
||||
|
||||
if (!Enabled){
|
||||
if(!Enabled)
|
||||
{
|
||||
TextRender()->TextColor(ColorRGBA(1.0f, 0.0f, 0.0f, 1.0f));
|
||||
TextRender()->TextOutlineColor(ColorRGBA(0.0f, 0.0f, 0.0f, 0.0f));
|
||||
UI()->DoLabel(&Temp, "\xEF\x9C\x95", Temp.h * CUI::ms_FontmodHeight, TEXTALIGN_CENTER, Props);
|
||||
|
@ -1160,7 +1161,7 @@ void CMenus::RenderDemoList(CUIRect MainView)
|
|||
|
||||
TextRender()->SetCurFont(TextRender()->GetFont(TEXT_FONT_ICON_FONT));
|
||||
TextRender()->TextColor(IconColor);
|
||||
UI()->DoLabel(&FileIcon, Item.m_IsDir ? "\xEF\x81\xBB": "\xEF\x80\x88", 12.0f, TEXTALIGN_LEFT);
|
||||
UI()->DoLabel(&FileIcon, Item.m_IsDir ? "\xEF\x81\xBB" : "\xEF\x80\x88", 12.0f, TEXTALIGN_LEFT);
|
||||
TextRender()->TextColor(TextRender()->DefaultTextColor());
|
||||
TextRender()->SetCurFont(nullptr);
|
||||
|
||||
|
|
|
@ -4328,26 +4328,27 @@ void CEditor::AddFileDialogEntry(int Index, CUIRect *pView)
|
|||
Button.VSplitLeft(Button.h, &FileIcon, &Button);
|
||||
Button.VSplitLeft(5.0f, nullptr, &Button);
|
||||
|
||||
const char* pIconType;
|
||||
const char *pIconType;
|
||||
|
||||
if(!m_vFileList[Index].m_IsDir)
|
||||
{
|
||||
switch(m_FileDialogFileType)
|
||||
{
|
||||
case FILETYPE_MAP :
|
||||
pIconType = "\xEF\x89\xB9";
|
||||
break;
|
||||
case FILETYPE_IMG :
|
||||
pIconType = "\xEF\x80\xBE";
|
||||
break;
|
||||
case FILETYPE_SOUND :
|
||||
pIconType = "\xEF\x80\x81";
|
||||
break;
|
||||
default :
|
||||
pIconType = "\xEF\x81\xBB";
|
||||
|
||||
case FILETYPE_MAP:
|
||||
pIconType = "\xEF\x89\xB9";
|
||||
break;
|
||||
case FILETYPE_IMG:
|
||||
pIconType = "\xEF\x80\xBE";
|
||||
break;
|
||||
case FILETYPE_SOUND:
|
||||
pIconType = "\xEF\x80\x81";
|
||||
break;
|
||||
default:
|
||||
pIconType = "\xEF\x81\xBB";
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
pIconType = "\xEF\x81\xBB";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue