Use font icon for editor proof mode selection button

This commit is contained in:
Robert Müller 2023-06-12 21:31:33 +02:00
parent d172d63815
commit e51fe4a86e

View file

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