Merge pull request #1487 from 12pm/editbox-corners

Don't change active edit box corners to default
This commit is contained in:
Dennis Felsing 2019-03-12 22:42:17 +01:00 committed by GitHub
commit b033418d12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -793,7 +793,7 @@ int CEditor::UiDoValueSelector(void *pID, CUIRect *pRect, const char *pLabel, in
m_pTooltip = "Type your number"; m_pTooltip = "Type your number";
static float s_NumberBoxID = 0; static float s_NumberBoxID = 0;
DoEditBox(&s_NumberBoxID, pRect, s_NumStr, sizeof(s_NumStr), 10.0f, &s_NumberBoxID); DoEditBox(&s_NumberBoxID, pRect, s_NumStr, sizeof(s_NumStr), 10.0f, &s_NumberBoxID, false, Corners);
UI()->SetActiveItem(&s_NumberBoxID); UI()->SetActiveItem(&s_NumberBoxID);