mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Remove unused DoFilter
Thanks to cheeser0613
This commit is contained in:
parent
62569da76e
commit
5fa2fefd35
|
@ -1227,9 +1227,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Position:
|
||||
==
|
||||
|
||||
|
|
|
@ -674,9 +674,6 @@ Sending initial client info
|
|||
Warning
|
||||
== Папярэджанне
|
||||
|
||||
Search:
|
||||
== Пошук:
|
||||
|
||||
Debug mode enabled. Press Ctrl+Shift+D to disable debug mode.
|
||||
== Рэжым адладкі уключаны. Націсніце Ctrl+Shift+D, каб выключыць яго.
|
||||
|
||||
|
|
|
@ -1090,9 +1090,6 @@ Sending initial client info
|
|||
Warning
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Debug mode enabled. Press Ctrl+Shift+D to disable debug mode.
|
||||
==
|
||||
|
||||
|
|
|
@ -1710,9 +1710,6 @@ Could not initialize the given graphics backend, this is probably because you di
|
|||
Could not save downloaded map. Try manually deleting this file: %s
|
||||
== Não foi possível salvar o mapa baixado. Tente excluir manualmente este arquivo: %s
|
||||
|
||||
Search:
|
||||
== Pesquisa:
|
||||
|
||||
Copy info
|
||||
== Copiar informação
|
||||
|
||||
|
|
|
@ -672,9 +672,6 @@ Sending initial client info
|
|||
Warning
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Debug mode enabled. Press Ctrl+Shift+D to disable debug mode.
|
||||
==
|
||||
|
||||
|
|
|
@ -1344,9 +1344,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Position:
|
||||
==
|
||||
|
||||
|
|
|
@ -675,9 +675,6 @@ Sending initial client info
|
|||
Warning
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Debug mode enabled. Press Ctrl+Shift+D to disable debug mode.
|
||||
==
|
||||
|
||||
|
|
|
@ -1240,9 +1240,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Position:
|
||||
==
|
||||
|
||||
|
|
|
@ -1238,9 +1238,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Position:
|
||||
==
|
||||
|
||||
|
|
|
@ -1393,9 +1393,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Position:
|
||||
==
|
||||
|
||||
|
|
|
@ -655,9 +655,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Debug mode enabled. Press Ctrl+Shift+D to disable debug mode.
|
||||
==
|
||||
|
||||
|
|
|
@ -1222,9 +1222,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Position:
|
||||
==
|
||||
|
||||
|
|
|
@ -1712,9 +1712,6 @@ Could not initialize the given graphics backend, this is probably because you di
|
|||
Could not save downloaded map. Try manually deleting this file: %s
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Copy info
|
||||
==
|
||||
|
||||
|
|
|
@ -1697,9 +1697,6 @@ Could not initialize the given graphics backend, this is probably because you di
|
|||
Could not save downloaded map. Try manually deleting this file: %s
|
||||
== Konnte heruntergeladene Map nicht speichern. Versuch die Datei händisch zu löschen: %s
|
||||
|
||||
Search:
|
||||
== Suche:
|
||||
|
||||
Copy info
|
||||
== Kopier Info
|
||||
|
||||
|
|
|
@ -681,9 +681,6 @@ Sending initial client info
|
|||
Warning
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Debug mode enabled. Press Ctrl+Shift+D to disable debug mode.
|
||||
==
|
||||
|
||||
|
|
|
@ -1566,9 +1566,6 @@ Could not save downloaded map. Try manually deleting this file: %s
|
|||
Why are you slowmo replaying to read this?
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Cancel
|
||||
==
|
||||
|
||||
|
|
|
@ -1256,9 +1256,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Position:
|
||||
==
|
||||
|
||||
|
|
|
@ -1276,9 +1276,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Position:
|
||||
==
|
||||
|
||||
|
|
|
@ -1701,9 +1701,6 @@ Could not initialize the given graphics backend, this is probably because you di
|
|||
Could not save downloaded map. Try manually deleting this file: %s
|
||||
== 다운로드한 맵을 저장하지 못했습니다. 다음 파일을 삭제해 보십시오: %s
|
||||
|
||||
Search:
|
||||
== 검색:
|
||||
|
||||
Copy info
|
||||
== 정보 복사
|
||||
|
||||
|
|
|
@ -672,9 +672,6 @@ Sending initial client info
|
|||
Warning
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Debug mode enabled. Press Ctrl+Shift+D to disable debug mode.
|
||||
==
|
||||
|
||||
|
|
|
@ -1239,9 +1239,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Position:
|
||||
==
|
||||
|
||||
|
|
|
@ -1668,9 +1668,6 @@ The format of texture %s is not RGBA which will cause visual bugs.
|
|||
Initializing map logic
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Copy info
|
||||
==
|
||||
|
||||
|
|
|
@ -1385,9 +1385,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Position:
|
||||
==
|
||||
|
||||
|
|
|
@ -1030,9 +1030,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Debug mode enabled. Press Ctrl+Shift+D to disable debug mode.
|
||||
==
|
||||
|
||||
|
|
|
@ -687,9 +687,6 @@ Sending initial client info
|
|||
Warning
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Debug mode enabled. Press Ctrl+Shift+D to disable debug mode.
|
||||
==
|
||||
|
||||
|
|
|
@ -1698,9 +1698,6 @@ Could not initialize the given graphics backend, this is probably because you di
|
|||
Could not save downloaded map. Try manually deleting this file: %s
|
||||
== Не удалось сохранить загруженную карту. Попробуйте вручную удалить этот файл: %s
|
||||
|
||||
Search:
|
||||
== Поиск:
|
||||
|
||||
Copy info
|
||||
== Cкопировать данные
|
||||
|
||||
|
|
|
@ -1567,9 +1567,6 @@ Could not save downloaded map. Try manually deleting this file: %s
|
|||
Initializing components
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Cancel
|
||||
==
|
||||
|
||||
|
|
|
@ -1566,9 +1566,6 @@ Could not save downloaded map. Try manually deleting this file: %s
|
|||
Initializing components
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Cancel
|
||||
==
|
||||
|
||||
|
|
|
@ -1721,9 +1721,6 @@ Could not initialize the given graphics backend, this is probably because you di
|
|||
Could not save downloaded map. Try manually deleting this file: %s
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Copy info
|
||||
==
|
||||
|
||||
|
|
|
@ -675,9 +675,6 @@ Sending initial client info
|
|||
Warning
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Debug mode enabled. Press Ctrl+Shift+D to disable debug mode.
|
||||
==
|
||||
|
||||
|
|
|
@ -1706,9 +1706,6 @@ Could not initialize the given graphics backend, this is probably because you di
|
|||
Could not save downloaded map. Try manually deleting this file: %s
|
||||
== No se pudo almacenar el mapa descargado. Intenta eliminar este archivo manualmente: %s
|
||||
|
||||
Search:
|
||||
== Buscar:
|
||||
|
||||
Copy info
|
||||
== Copiar información
|
||||
|
||||
|
|
|
@ -1326,9 +1326,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Position:
|
||||
==
|
||||
|
||||
|
|
|
@ -1710,9 +1710,6 @@ Could not initialize the given graphics backend, this is probably because you di
|
|||
Could not save downloaded map. Try manually deleting this file: %s
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Copy info
|
||||
==
|
||||
|
||||
|
|
|
@ -1139,9 +1139,6 @@ Sending initial client info
|
|||
Warning
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Debug mode enabled. Press Ctrl+Shift+D to disable debug mode.
|
||||
==
|
||||
|
||||
|
|
|
@ -1309,9 +1309,6 @@ Initializing map logic
|
|||
Sending initial client info
|
||||
==
|
||||
|
||||
Search:
|
||||
==
|
||||
|
||||
Position:
|
||||
==
|
||||
|
||||
|
|
|
@ -56,34 +56,6 @@ void CListBox::DoSpacing(float Spacing)
|
|||
m_ListBoxView = View;
|
||||
}
|
||||
|
||||
bool CListBox::DoFilter(float FilterHeight, float Spacing)
|
||||
{
|
||||
CUIRect Filter;
|
||||
CUIRect View = m_ListBoxView;
|
||||
|
||||
// background
|
||||
View.HSplitTop(FilterHeight + Spacing, &Filter, 0);
|
||||
Filter.Draw(ColorRGBA(0.0f, 0.0f, 0.0f, 0.15f), IGraphics::CORNER_NONE, 0.0f);
|
||||
|
||||
// draw filter
|
||||
View.HSplitTop(FilterHeight, &Filter, &View);
|
||||
Filter.Margin(Spacing, &Filter);
|
||||
|
||||
const float FontSize = Filter.h * CUI::ms_FontmodHeight * 0.8f;
|
||||
|
||||
CUIRect Label, EditBox;
|
||||
Filter.VSplitLeft(Filter.w / 5.0f, &Label, &EditBox);
|
||||
Label.y += Spacing;
|
||||
UI()->DoLabel(&Label, Localize("Search:"), FontSize, TEXTALIGN_CENTER);
|
||||
bool Changed = UI()->DoClearableEditBox(m_aFilterString, m_aFilterString + 1, &EditBox, m_aFilterString, sizeof(m_aFilterString), FontSize, &m_FilterOffset);
|
||||
|
||||
View.HSplitTop(Spacing, &Filter, &View);
|
||||
|
||||
m_ListBoxView = View;
|
||||
|
||||
return Changed;
|
||||
}
|
||||
|
||||
void CListBox::DoFooter(const char *pBottomText, float FooterHeight)
|
||||
{
|
||||
m_pBottomText = pBottomText;
|
||||
|
|
|
@ -50,7 +50,6 @@ public:
|
|||
void DoHeader(const CUIRect *pRect, const char *pTitle, float HeaderHeight = 20.0f, float Spacing = 2.0f);
|
||||
void DoAutoSpacing(float Spacing = 20.0f) { m_AutoSpacing = Spacing; }
|
||||
void DoSpacing(float Spacing = 20.0f);
|
||||
bool DoFilter(float FilterHeight = 20.0f, float Spacing = 2.0f);
|
||||
void DoFooter(const char *pBottomText, float FooterHeight = 20.0f); // call before DoStart to create a footer
|
||||
void DoStart(float RowHeight, int NumItems, int ItemsPerRow, int RowsPerScroll, int SelectedIndex, const CUIRect *pRect = nullptr, bool Background = true, bool *pActive = nullptr, int BackgroundCorners = IGraphics::CORNER_ALL);
|
||||
void ScrollToSelected() { m_ListBoxUpdateScroll = true; }
|
||||
|
|
Loading…
Reference in a new issue