From e16ea21dc8a710237ade8413207f58d403c616a3 Mon Sep 17 00:00:00 2001 From: Joe Ludwig Date: Wed, 17 Jul 2013 18:26:59 -0700 Subject: * Added support for building shaders in your mod * Added nav mesh support * fixed many warnings and misc bugs * Fixed the create*projects scripts in mp * Added a bunch of stuff to .gitignore --- sp/src/game/client/hud_controlpointicons.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'sp/src/game/client/hud_controlpointicons.cpp') diff --git a/sp/src/game/client/hud_controlpointicons.cpp b/sp/src/game/client/hud_controlpointicons.cpp index 20d6150b..a8c390ae 100644 --- a/sp/src/game/client/hud_controlpointicons.cpp +++ b/sp/src/game/client/hud_controlpointicons.cpp @@ -1107,7 +1107,23 @@ void CHudControlPointIcons::PerformLayout( void ) } // Setup the main panel - SetBounds( (ScreenWidth() - iWidest) * 0.5, ScreenHeight() - iTall - m_nHeightOffset, iWidest, iTall ); + float flPositionX = (ScreenWidth() - iWidest) * 0.5; + float flPositionY = ScreenHeight() - iTall - m_nHeightOffset; + if ( ObjectiveResource() ) + { + float flCustomPositionX = -1.f; + float flCustomPositionY = -1.f; + ObjectiveResource()->GetCapLayoutCustomPosition( flCustomPositionX, flCustomPositionY ); + if ( flCustomPositionX != -1.f ) + { + flPositionX = flCustomPositionX * ScreenWidth(); + } + if ( flCustomPositionY != -1.f ) + { + flPositionY = flCustomPositionY * ScreenHeight(); + } + } + SetBounds( flPositionX, flPositionY, iWidest, iTall ); // Now that we know how wide we are, and how many icons are in each line, // we can lay the icons out, centered in the lines. -- cgit v1.2.3