Team Fortress 2 Source Code as on 22/4/2020
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.

56 lines
1.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef TF_HUD_TEAMGOAL_TOURNAMENT_H
  8. #define TF_HUD_TEAMGOAL_TOURNAMENT_H
  9. #include "hud.h"
  10. #include "hudelement.h"
  11. #include "tf_controls.h"
  12. #include "hud_basechat.h"
  13. using namespace vgui;
  14. //-----------------------------------------------------------------------------
  15. // Purpose:
  16. //-----------------------------------------------------------------------------
  17. class CHudTeamGoalTournament : public CHudElement, public EditablePanel
  18. {
  19. DECLARE_CLASS_SIMPLE( CHudTeamGoalTournament, EditablePanel );
  20. public:
  21. CHudTeamGoalTournament( const char *pElementName );
  22. virtual void LevelInit( void ) OVERRIDE;
  23. virtual void ApplySchemeSettings( IScheme *scheme ) OVERRIDE;
  24. virtual bool ShouldDraw( void ) OVERRIDE;
  25. virtual void SetVisible( bool bState ) OVERRIDE;
  26. int HudElementKeyInput( int down, ButtonCode_t keynum, const char *pszCurrentBinding );
  27. void SetupStopWatchLabel( void );
  28. void PrepareStopWatchString( wchar_t *pszString, CExRichText *pText );
  29. void FireGameEvent( IGameEvent * event );
  30. private:
  31. float m_flShowAt;
  32. EditablePanel *m_pStopWatchGoal;
  33. CExRichText *m_pStopWatchGoalText;
  34. CExRichText *m_pStopWatchGoalText2;
  35. Panel *m_pStopWatchGoalBGLarge;
  36. Panel *m_pStopWatchGoalBGSmall;
  37. Panel *m_pStopWatchGoalDivider;
  38. Panel *m_pStopWatchGoalArrow;
  39. CUtlVector< TextRange > m_textRanges;
  40. wchar_t *m_text;
  41. Color m_cRegularColor;
  42. Color m_cHighlightColor;
  43. };
  44. #endif // TF_HUD_TEAMGOAL_TOURNAMENT_H