mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Use font icon for editor proof mode selection button
This commit is contained in:
parent
d172d63815
commit
e51fe4a86e
|
@ -942,9 +942,9 @@ void CEditor::DoToolbar(CUIRect ToolBar)
|
|||
m_ProofBorders = m_ProofBorders == PROOF_BORDER_OFF ? PROOF_BORDER_INGAME : PROOF_BORDER_OFF;
|
||||
}
|
||||
|
||||
TB_Top.VSplitLeft(10.0f, &Button, &TB_Top);
|
||||
static int s_MenuProofButton = 0;
|
||||
if(DoButton_Ex(&s_MenuProofButton, "▾", 0, &Button, 0, "Select proof mode.", IGraphics::CORNER_R))
|
||||
TB_Top.VSplitLeft(14.0f, &Button, &TB_Top);
|
||||
static int s_ProofModeButton = 0;
|
||||
if(DoButton_FontIcon(&s_ProofModeButton, FONT_ICON_CIRCLE_CHEVRON_DOWN, 0, &Button, 0, "Select proof mode.", IGraphics::CORNER_R, 8.0f))
|
||||
{
|
||||
static SPopupMenuId s_PopupProofModeId;
|
||||
UI()->DoPopupMenu(&s_PopupProofModeId, Button.x, Button.y + Button.h, 60.0f, 36.0f, this, PopupProofMode);
|
||||
|
|
Loading…
Reference in a new issue