mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove if
s when drawing quads QoL buttons
This commit is contained in:
parent
b77e91633f
commit
70d263a7d5
|
@ -339,8 +339,7 @@ CUI::EPopupMenuFunctionResult CEditor::PopupMenuSettings(void *pContext, CUIRect
|
||||||
Selector.VSplitMid(&No, &Yes);
|
Selector.VSplitMid(&No, &Yes);
|
||||||
|
|
||||||
pEditor->UI()->DoLabel(&Label, "Align quads", 10.0f, TEXTALIGN_ML);
|
pEditor->UI()->DoLabel(&Label, "Align quads", 10.0f, TEXTALIGN_ML);
|
||||||
if(pEditor->m_AllowPlaceUnusedTiles != -1)
|
|
||||||
{
|
|
||||||
static int s_ButtonNo = 0;
|
static int s_ButtonNo = 0;
|
||||||
static int s_ButtonYes = 0;
|
static int s_ButtonYes = 0;
|
||||||
if(pEditor->DoButton_ButtonDec(&s_ButtonNo, "No", !g_Config.m_EdAlignQuads, &No, 0, "Do not perform quad alignment to other quads/points when moving quads"))
|
if(pEditor->DoButton_ButtonDec(&s_ButtonNo, "No", !g_Config.m_EdAlignQuads, &No, 0, "Do not perform quad alignment to other quads/points when moving quads"))
|
||||||
|
@ -352,7 +351,6 @@ CUI::EPopupMenuFunctionResult CEditor::PopupMenuSettings(void *pContext, CUIRect
|
||||||
g_Config.m_EdAlignQuads = true;
|
g_Config.m_EdAlignQuads = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
View.HSplitTop(2.0f, nullptr, &View);
|
View.HSplitTop(2.0f, nullptr, &View);
|
||||||
View.HSplitTop(12.0f, &Slot, &View);
|
View.HSplitTop(12.0f, &Slot, &View);
|
||||||
|
@ -365,8 +363,7 @@ CUI::EPopupMenuFunctionResult CEditor::PopupMenuSettings(void *pContext, CUIRect
|
||||||
Selector.VSplitMid(&No, &Yes);
|
Selector.VSplitMid(&No, &Yes);
|
||||||
|
|
||||||
pEditor->UI()->DoLabel(&Label, "Show quads bounds", 10.0f, TEXTALIGN_ML);
|
pEditor->UI()->DoLabel(&Label, "Show quads bounds", 10.0f, TEXTALIGN_ML);
|
||||||
if(pEditor->m_AllowPlaceUnusedTiles != -1)
|
|
||||||
{
|
|
||||||
static int s_ButtonNo = 0;
|
static int s_ButtonNo = 0;
|
||||||
static int s_ButtonYes = 0;
|
static int s_ButtonYes = 0;
|
||||||
if(pEditor->DoButton_ButtonDec(&s_ButtonNo, "No", !g_Config.m_EdShowQuadsRect, &No, 0, "Do not show quad bounds when moving quads"))
|
if(pEditor->DoButton_ButtonDec(&s_ButtonNo, "No", !g_Config.m_EdShowQuadsRect, &No, 0, "Do not show quad bounds when moving quads"))
|
||||||
|
@ -378,7 +375,6 @@ CUI::EPopupMenuFunctionResult CEditor::PopupMenuSettings(void *pContext, CUIRect
|
||||||
g_Config.m_EdShowQuadsRect = true;
|
g_Config.m_EdShowQuadsRect = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return CUI::POPUP_KEEP_OPEN;
|
return CUI::POPUP_KEEP_OPEN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue