Use IGraphics::CORNER_NONE for CUIRect::Draw function

This commit is contained in:
Robert Müller 2024-01-24 23:05:19 +01:00
parent f13888b2cc
commit 7854a277c7
2 changed files with 3 additions and 3 deletions

View file

@ -625,7 +625,7 @@ void CMenus::RenderServerControl(CUIRect MainView)
// render background
CUIRect Bottom, RconExtension, TabBar, Button;
MainView.HSplitTop(20.0f, &Bottom, &MainView);
Bottom.Draw(ms_ColorTabbarActive, 0, 10.0f);
Bottom.Draw(ms_ColorTabbarActive, IGraphics::CORNER_NONE, 0.0f);
MainView.HSplitTop(20.0f, &TabBar, &MainView);
MainView.Draw(ms_ColorTabbarActive, IGraphics::CORNER_B, 10.0f);
MainView.Margin(10.0f, &MainView);

View file

@ -154,11 +154,11 @@ SEditResult<E> CEditor::DoPropertiesWithState(CUIRect *pToolBox, CProperty *pPro
Shifter.VSplitMid(&Left, &Up, 2.0f);
Left.VSplitLeft(10.0f, &Left, &Shifter);
Shifter.VSplitRight(10.0f, &Shifter, &Right);
Shifter.Draw(ColorRGBA(1, 1, 1, 0.5f), 0, 0.0f);
Shifter.Draw(ColorRGBA(1, 1, 1, 0.5f), IGraphics::CORNER_NONE, 0.0f);
UI()->DoLabel(&Shifter, "X", 10.0f, TEXTALIGN_MC);
Up.VSplitLeft(10.0f, &Up, &Shifter);
Shifter.VSplitRight(10.0f, &Shifter, &Down);
Shifter.Draw(ColorRGBA(1, 1, 1, 0.5f), 0, 0.0f);
Shifter.Draw(ColorRGBA(1, 1, 1, 0.5f), IGraphics::CORNER_NONE, 0.0f);
UI()->DoLabel(&Shifter, "Y", 10.0f, TEXTALIGN_MC);
if(DoButton_ButtonDec(&pIDs[i], "-", 0, &Left, 0, "Left"))
{