source-engine/engine/vgui_budgetpanel.h

51 lines
1.0 KiB
C
Raw Permalink Normal View History

2020-04-23 00:56:21 +08:00
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Does anyone ever read this?
//
//=============================================================================//
#ifndef VGUI_BUDGETPANEL_H
#define VGUI_BUDGETPANEL_H
#ifdef _WIN32
#pragma once
#endif
#include "vgui/vgui_budgetpanelshared.h"
#include "tier0/vprof.h"
#define NUM_BUDGET_FPS_LABELS 3
// Use the shared budget panel between the engine and dedicated server.
class CBudgetPanelEngine : public CBudgetPanelShared
{
typedef CBudgetPanelShared BaseClass;
public:
CBudgetPanelEngine( vgui::Panel *pParent, const char *pElementName );
~CBudgetPanelEngine();
virtual void SetTimeLabelText();
virtual void SetHistoryLabelText();
virtual void PostChildPaint();
virtual void OnTick( void );
// Command handlers
void UserCmd_ShowBudgetPanel( void );
void UserCmd_HideBudgetPanel( void );
bool IsBudgetPanelShown() const;
private:
bool m_bShowBudgetPanelHeld;
};
CBudgetPanelEngine *GetBudgetPanel( void );
#endif // VGUI_BUDGETPANEL_H