From 92812ee05ecadc4b8524c7cc96a7b15dc002cac0 Mon Sep 17 00:00:00 2001 From: pierow Date: Sun, 12 Aug 2018 22:21:24 -0400 Subject: [PATCH] Spectator UI transparent. Spec checkbox position and transparency change --- main/gfx/vgui/640_checkset.tga | Bin 1304 -> 1724 bytes main/gfx/vgui/640_checkunset.tga | Bin 1304 -> 1724 bytes main/source/cl_dll/vgui_SpectatorPanel.cpp | 16 ++++++++-------- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/main/gfx/vgui/640_checkset.tga b/main/gfx/vgui/640_checkset.tga index f8df2b7e5115da2a65e3371368d798dd8613d072..372fb992fa317606922eef6e049f25d4503dbc8b 100644 GIT binary patch literal 1724 zcmdUwO$x#=5Jm@A9zgeAKyOhYAPQE++vI9l=2q2NJP2VXR$3JUVQA+2-u!GTvJlQ% zRf7>7^Xl+rNQr9b68k4(MF`FAF}ZSBI+v}Pxlb2j&^@47eDm38r1In|N(eD!G^!VSS%z-B4xQ;20IuGB9RC=f5fqx$z(R0&15o($K&`cl}cc-&!Q+23*!`yrF=fW zTCLDXtyWvF*W>Xx7K^#r-*K!K3I*G?kr!+<8a-nF#FNP+3gBhqM10|3XI}$bz2EP# zX`xW)D8i}U6N$uhI<+iImSrH#W)n5^`~7opv^g4$w%aXwCw;5cLWEwg=kCIr9mk3T z+U<75Vv$&Gbh}+dP*s)uUR)3aUDxs7l7@^xAb<$&%jLyMe2zi5JLWkc*U*K%uHL86y=wQi#Sb8+s0CNq68J3dbg2KWI7R@0+p{`+`!Jhtpx)E-kKCXHU0R2Cy A;Q#;t diff --git a/main/source/cl_dll/vgui_SpectatorPanel.cpp b/main/source/cl_dll/vgui_SpectatorPanel.cpp index 625a8fcd..e42662d1 100644 --- a/main/source/cl_dll/vgui_SpectatorPanel.cpp +++ b/main/source/cl_dll/vgui_SpectatorPanel.cpp @@ -161,10 +161,10 @@ void SpectatorPanel::Initialize() Font* font = pSchemes->getFont(hSmallScheme); //m_TopBorder = new CTransparentPanel(64, 0, 0, ScreenWidth, YRES(PANEL_HEIGHT)); - m_TopBorder = new CTransparentPanel(1, 0, ScreenHeight() - YRES(32), ScreenWidth(), YRES(SPECTATOR_PANEL_HEIGHT)); + m_TopBorder = new CTransparentPanel(128, 0, ScreenHeight() - YRES(32), ScreenWidth(), YRES(SPECTATOR_PANEL_HEIGHT)); m_TopBorder->setParent(this); - m_BottomBorder = new CTransparentPanel(1, 0, ScreenHeight() - YRES(32), ScreenWidth(), YRES(SPECTATOR_PANEL_HEIGHT)); + m_BottomBorder = new CTransparentPanel(128, 0, ScreenHeight() - YRES(32), ScreenWidth(), YRES(SPECTATOR_PANEL_HEIGHT)); m_BottomBorder->setParent(this); setPaintBackgroundEnabled(false); @@ -259,8 +259,8 @@ void SpectatorPanel::Initialize() m_overviewButton->setFont(font); m_overviewButton->setParent( m_BottomBorder ); m_overviewButton->SetText("Overview"); - m_overviewButton->setPos(XRES(10), YRES(6)); - m_overviewButton->setSize(XRES(100), YRES(20)); + m_overviewButton->setPos(XRES(150), YRES(6)); + m_overviewButton->setSize(XRES(50), YRES(20)); m_overviewButton->SetImages("gfx/vgui/640_checkset.tga", "gfx/vgui/640_checkunset.tga"); m_overviewButton->SetHandler(new Spectator_CheckButtonHandler(this)); m_overviewButton->SetTextColor(colorR, colorG, colorB, 0); @@ -269,8 +269,8 @@ void SpectatorPanel::Initialize() m_firstPersonButton->setFont(font); m_firstPersonButton->setParent( m_BottomBorder ); m_firstPersonButton->SetText("First person"); - m_firstPersonButton->setPos(XRES(10 + 100), YRES(6)); - m_firstPersonButton->setSize(XRES(100), YRES(20)); + m_firstPersonButton->setPos(XRES(150 + 50), YRES(6)); + m_firstPersonButton->setSize(XRES(50), YRES(20)); m_firstPersonButton->SetImages("gfx/vgui/640_checkset.tga", "gfx/vgui/640_checkunset.tga"); m_firstPersonButton->SetHandler(new Spectator_CheckButtonHandler(this)); m_firstPersonButton->SetTextColor(colorR, colorG, colorB, 0); @@ -279,8 +279,8 @@ void SpectatorPanel::Initialize() m_autoDirectorButton->setFont(font); m_autoDirectorButton->setParent( m_BottomBorder ); m_autoDirectorButton->SetText("Auto-director"); - m_autoDirectorButton->setPos(XRES(10 + 200), YRES(6)); - m_autoDirectorButton->setSize(XRES(100), YRES(20)); + m_autoDirectorButton->setPos(XRES(150 + 100), YRES(6)); + m_autoDirectorButton->setSize(XRES(50), YRES(20)); m_autoDirectorButton->SetImages("gfx/vgui/640_checkset.tga", "gfx/vgui/640_checkunset.tga"); m_autoDirectorButton->SetHandler(new Spectator_CheckButtonHandler(this)); m_autoDirectorButton->SetTextColor(colorR, colorG, colorB, 0);