blob: f5a6d7e566e915b81542357bb63cba644214b465 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Create and display a win panel at the end of a round displaying interesting stats and info about the round.
//
// $NoKeywords: $
//=============================================================================//
#ifndef CSWINPANEL_ROUND_H
#define CSWINPANEL_ROUND_H
#ifdef _WIN32
#pragma once
#endif
#include "VGUI/bordered_panel.h"
#include <game/client/iviewport.h>
#include <vgui/IScheme.h>
#include "hud.h"
#include "hudelement.h"
#include "c_cs_player.h"
#include "vgui_avatarimage.h"
#include "cs_shareddefs.h"
using namespace vgui;
class WinPanel_Round : public BorderedPanel, public CHudElement
{
private:
DECLARE_CLASS_SIMPLE( WinPanel_Round, BorderedPanel );
public:
WinPanel_Round(const char *pElementName);
~WinPanel_Round();
virtual void Reset();
virtual void Init();
virtual void VidInit();
virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
virtual void FireGameEvent( IGameEvent * event );
virtual bool ShouldDraw( void );
virtual void Paint( void ) {};
virtual void OnScreenSizeChanged(int nOldWide, int nOldTall);
virtual void OnThink();
void InitLayout();
void Show();
void Hide();
protected:
void SetMVP( C_CSPlayer* pPlayer, CSMvpReason_t reason );
void SetFunFactLabel( const wchar *szFunFact );
private:
bool m_bShowTimerDefend;
bool m_bShowTimerAttack;
bool m_bShouldBeVisible;
// fade tracking
bool m_bIsFading;
float m_fFadeBeginTime;
};
#endif //CSWINPANEL_ROUND_H
|