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.4 KiB

  1. //======= Copyright ( c ) 1996-2009, Valve Corporation, All rights reserved. ======
  2. //
  3. // Purpose: Definitions that are shared by the game DLL and the client DLL.
  4. //
  5. //===============================================================================
  6. #if defined( INCLUDE_SCALEFORM )
  7. #ifndef SPLITSCREENSIGNON_H
  8. #define SPLITSCREENSIGNON_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "GameEventListener.h"
  13. #include "matchmaking/imatchframework.h"
  14. #include "scaleformui/scaleformui.h"
  15. class SplitScreenSignonWidget : public ScaleformFlashInterfaceMixin<CGameEventListener>, public IMatchEventsSink
  16. {
  17. public:
  18. SplitScreenSignonWidget();
  19. void FlashReady( void );
  20. bool PreUnloadFlash( void );
  21. void OnShow( void );
  22. void OnHide( void );
  23. void Show( bool showit );
  24. void UpdateState( void );
  25. void SplitScreenConditionsAreValid( bool value );
  26. void Update( void );
  27. void DropSecondPlayer( void );
  28. void RevertUIToOnePlayerMode( void );
  29. virtual void FireGameEvent( IGameEvent *event );
  30. void SetPlayer2Name( const char* name );
  31. virtual void OnEvent( KeyValues *pEvent );
  32. void SetPlayerSignedIn( void );
  33. public:
  34. SFVALUE m_pPlayer2Name;
  35. int m_iSecondPlayerId;
  36. int m_iControllerThatPressedStart;
  37. bool m_bVisible;
  38. bool m_bLoading;
  39. bool m_bWantShown;
  40. bool m_bConditionsAreValid;
  41. bool m_bWaitingForSignon;
  42. bool m_bDropSecondPlayer;
  43. bool m_bCurrentlyProcessingSignin;
  44. };
  45. #endif // SPLITSCREENSIGNON_H
  46. #endif // include scaleform