mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
Merge #2954
2954: Add clear button to server address field r=Jupeyy a=def- as suggested by Cøke Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
commit
c92af2e2df
|
@ -612,8 +612,9 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
|
|||
// address info
|
||||
UI()->DoLabelScaled(&ServerAddr, Localize("Server address:"), 14.0f, -1);
|
||||
ServerAddr.VSplitLeft(SearchExcludeAddrStrMax + 5.0f + ExcludeSearchIconMax + 5.0f, NULL, &ServerAddr);
|
||||
static int s_ClearButton = 0;
|
||||
static float Offset = 0.0f;
|
||||
DoEditBox(&g_Config.m_UiServerAddress, &ServerAddr, g_Config.m_UiServerAddress, sizeof(g_Config.m_UiServerAddress), 12.0f, &Offset);
|
||||
DoClearableEditBox(&g_Config.m_UiServerAddress, &s_ClearButton, &ServerAddr, g_Config.m_UiServerAddress, sizeof(g_Config.m_UiServerAddress), 12.0f, &Offset);
|
||||
|
||||
// button area
|
||||
ButtonArea = ConnectButtons;
|
||||
|
|
Loading…
Reference in a new issue