From b852dad9a2f049f763fa936c1573ebff46b9c2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Sun, 4 Dec 2022 12:36:26 +0100 Subject: [PATCH] Fix demo name not being shown in demo player And slightly increase space for the speed label. --- src/game/client/components/menus_demo.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp index 99cd06283..73ccb8388 100644 --- a/src/game/client/components/menus_demo.cpp +++ b/src/game/client/components/menus_demo.cpp @@ -337,10 +337,6 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) ButtonBar.HSplitTop(Margins, 0, &ButtonBar); ButtonBar.HSplitBottom(NameBarHeight, &ButtonBar, &NameBar); NameBar.HSplitTop(4.0f, 0, &NameBar); - SpeedBar.HSplitBottom(NameBarHeight, &SpeedBar, &NameBar); - ButtonBar.HSplitTop(0.0f, 0, &SpeedBar); - SpeedBar.VSplitLeft(123.0f, 0, &SpeedBar); - SpeedBar.VSplitLeft(133.0f, &SpeedBar, 0); // do seekbar { @@ -521,13 +517,12 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) GameClient()->m_Tooltips.DoToolTip(&s_FastForwardButton, &Button, Localize("Speed up the demo")); // speed meter - ButtonBar.VSplitLeft(Margins * 3, 0, &ButtonBar); + ButtonBar.VSplitLeft(Margins * 12, &SpeedBar, &ButtonBar); char aBuffer[64]; str_format(aBuffer, sizeof(aBuffer), "×%g", pInfo->m_Speed); UI()->DoLabel(&SpeedBar, aBuffer, Button.h * 0.7f, TEXTALIGN_CENTER); // slice begin button - ButtonBar.VSplitLeft(Margins * 7, 0, &ButtonBar); ButtonBar.VSplitLeft(ButtonbarHeight, &Button, &ButtonBar); static CButtonContainer s_SliceBeginButton; if(DoButton_FontIcon(&s_SliceBeginButton, "\xEF\x8B\xB5", 0, &Button, IGraphics::CORNER_ALL))