Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef DOD_HUD_TNT_PICKUP_H
#define DOD_HUD_TNT_PICKUP_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/EditablePanel.h>
#include "IconPanel.h"
//-----------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------
class CDODHudTNTPickupPanel : public CHudElement, public vgui::EditablePanel
{
public:
DECLARE_CLASS_SIMPLE( CDODHudTNTPickupPanel, vgui::EditablePanel );
CDODHudTNTPickupPanel( const char *pElementName );
virtual void Init();
virtual void VidInit();
virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
virtual void OnScreenSizeChanged( int iOldWide, int iOldTall );
virtual void FireGameEvent( IGameEvent *event );
virtual void OnThink( void );
private:
bool m_bInitLayout;
CIconPanel *m_pTNTImage;
vgui::Panel *m_pBackground;
vgui::Label *m_pPickupLabel;
float m_flShowUntilTime;
};
#endif // DOD_HUD_TNT_PICKUP_H