Skip to content

Commit

Permalink
use CardSize
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrc6 committed Dec 7, 2024
1 parent 7f21724 commit 416937b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/game/client/components/tclient/menus_tclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,8 @@ void CMenus::RenderSettingsTClient(CUIRect MainView)
bool WhiteFeetTemp = g_Config.m_ClWhiteFeet;
g_Config.m_ClWhiteFeet = false;
{
RightView.HSplitTop(TeeSize + MarginSmall, &DevCardRect, &RightView);
DevCardRect.VSplitLeft(TeeSize + MarginSmall, &TeeRect, &Label);
RightView.HSplitTop(CardSize, &DevCardRect, &RightView);
DevCardRect.VSplitLeft(CardSize, &TeeRect, &Label);
Label.VSplitLeft(TextRender()->TextWidth(LineSize, "Tater"), &Label, &Button);
Button.VSplitLeft(MarginSmall, nullptr, &Button);
Button.w = LineSize, Button.h = LineSize, Button.y = Label.y + (Label.h / 2.0f - Button.h / 2.0f);
Expand All @@ -782,8 +782,8 @@ void CMenus::RenderSettingsTClient(CUIRect MainView)
RenderDevSkin(TeeRect.Center(), 50.0f, "glow_mermyfox", "mermyfox", true, 15911221, 9981775, 0, false);
}
{
RightView.HSplitTop(TeeSize + MarginSmall, &DevCardRect, &RightView);
DevCardRect.VSplitLeft(TeeSize + MarginSmall, &TeeRect, &Label);
RightView.HSplitTop(CardSize, &DevCardRect, &RightView);
DevCardRect.VSplitLeft(CardSize, &TeeRect, &Label);
Label.VSplitLeft(TextRender()->TextWidth(LineSize, "Solly"), &Label, &Button);
Button.VSplitLeft(MarginSmall, nullptr, &Button);
Button.w = LineSize, Button.h = LineSize, Button.y = Label.y + (Label.h / 2.0f - Button.h / 2.0f);
Expand All @@ -793,8 +793,8 @@ void CMenus::RenderSettingsTClient(CUIRect MainView)
RenderDevSkin(TeeRect.Center(), 50.0f, "tuzi", "tuzi", false, 10944256, 2621184, 2, true);
}
{
RightView.HSplitTop(TeeSize + MarginSmall, &DevCardRect, &RightView);
DevCardRect.VSplitLeft(TeeSize + MarginSmall, &TeeRect, &Label);
RightView.HSplitTop(CardSize, &DevCardRect, &RightView);
DevCardRect.VSplitLeft(CardSize, &TeeRect, &Label);
Label.VSplitLeft(TextRender()->TextWidth(LineSize, "Daniel"), &Label, &Button);
Button.VSplitLeft(MarginSmall, nullptr, &Button);
Button.w = LineSize, Button.h = LineSize, Button.y = Label.y + (Label.h / 2.0f - Button.h / 2.0f);
Expand All @@ -805,8 +805,8 @@ void CMenus::RenderSettingsTClient(CUIRect MainView)
}

{
RightView.HSplitTop(TeeSize + MarginSmall, &DevCardRect, &RightView);
DevCardRect.VSplitLeft(TeeSize + MarginSmall, &TeeRect, &Label);
RightView.HSplitTop(CardSize, &DevCardRect, &RightView);
DevCardRect.VSplitLeft(CardSize, &TeeRect, &Label);
Label.VSplitLeft(TextRender()->TextWidth(LineSize, "Teero"), &Label, &Button);
Button.VSplitLeft(MarginSmall, nullptr, &Button);
Button.w = LineSize, Button.h = LineSize, Button.y = Label.y + (Label.h / 2.0f - Button.h / 2.0f);
Expand Down

0 comments on commit 416937b

Please sign in to comment.