2022-02-19 02:31:16 +01:00
|
|
|
//===========================================================================//
|
|
|
|
//
|
|
|
|
// Purpose: Framerate indicator panel.
|
|
|
|
//
|
|
|
|
// $NoKeywords: $
|
|
|
|
//===========================================================================//
|
|
|
|
|
2021-12-25 22:36:38 +01:00
|
|
|
#include "core/stdafx.h"
|
2022-04-09 16:16:40 +02:00
|
|
|
#include "tier1/cvar.h"
|
2021-12-25 22:36:38 +01:00
|
|
|
#include "vgui/vgui_fpspanel.h"
|
2022-02-19 02:31:16 +01:00
|
|
|
#include "vgui/vgui_debugpanel.h"
|
2021-12-25 22:36:38 +01:00
|
|
|
|
2022-02-19 02:31:16 +01:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Purpose:
|
|
|
|
//-----------------------------------------------------------------------------
|
2021-12-25 22:36:38 +01:00
|
|
|
ConVar* HCFPSPanel_Paint(void* thisptr)
|
|
|
|
{
|
2022-10-26 01:55:36 +02:00
|
|
|
g_pOverlay->Update();
|
2024-01-02 15:21:36 +01:00
|
|
|
return CFPSPanel__Paint(thisptr);
|
2021-12-25 22:36:38 +01:00
|
|
|
}
|
|
|
|
|
2022-02-19 02:31:16 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2023-11-26 13:21:20 +01:00
|
|
|
void VFPSPanel::Detour(const bool bAttach) const
|
2021-12-25 22:36:38 +01:00
|
|
|
{
|
2024-01-02 15:21:36 +01:00
|
|
|
DetourSetup(&CFPSPanel__Paint, &HCFPSPanel_Paint, bAttach);
|
2021-12-25 22:36:38 +01:00
|
|
|
}
|