Clang Format

This commit is contained in:
VoxelDoesCode 2022-08-24 16:17:04 -04:00
parent fa98ad1e36
commit 216d4421ce
2 changed files with 18 additions and 16 deletions

View file

@ -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);

View file

@ -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";
}