Counter Strike : Global Offensive Source Code
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.

69 lines
1.5 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef SFHUDMONEY_H_
  7. #define SFHUDMONEY_H_
  8. #include "hud.h"
  9. #include "hud_element_helper.h"
  10. #include "scaleformui/scaleformui.h"
  11. #include "sfhudflashinterface.h"
  12. #include "c_cs_hostage.h"
  13. class SFHudMoney : public SFHudFlashInterface
  14. {
  15. public:
  16. explicit SFHudMoney( const char *value );
  17. virtual ~SFHudMoney();
  18. // These overload the CHudElement class
  19. virtual void ProcessInput( void );
  20. virtual void LevelInit( void );
  21. virtual void LevelShutdown( void );
  22. virtual void SetActive( bool bActive );
  23. virtual void Init( void );
  24. virtual bool ShouldDraw( void );
  25. // these overload the ScaleformFlashInterfaceMixin class
  26. virtual void FlashReady( void );
  27. virtual bool PreUnloadFlash( void );
  28. void Show( bool show );
  29. bool MsgFunc_AdjustMoney( const CCSUsrMsg_AdjustMoney &msg );
  30. void UpdateMoneyChange( int nDelta = 0 );
  31. void DoneAnimatingAdd( SCALEFORM_CALLBACK_ARGS_DECL );
  32. void DoneAnimatingSub( SCALEFORM_CALLBACK_ARGS_DECL );
  33. CUserMessageBinder m_UMCMsgAdjustMoney;
  34. private:
  35. void UpdateCurrentMoneyText();
  36. int m_nMoneyChange;
  37. int m_nLastMoney;
  38. int m_lastEntityIndex;
  39. int m_nShiftState;
  40. bool m_bShowBuyZoneIcon;
  41. ISFTextObject * m_hCash;
  42. ISFTextObject * m_hAddCash;
  43. ISFTextObject * m_hRemoveCash;
  44. ISFTextObject * m_hBuyZoneIcon;
  45. CUtlVector<int> m_cashAdjustmentQueue;
  46. bool m_bAnimatingAdd;
  47. bool m_bAnimatingSub;
  48. };
  49. #endif /* SFHUDMONEY_H_ */