GameSpyOverlay.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. ** Command & Conquer Generals(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. ////////////////////////////////////////////////////////////////////////////////
  19. // //
  20. // (c) 2001-2003 Electronic Arts Inc. //
  21. // //
  22. ////////////////////////////////////////////////////////////////////////////////
  23. // FILE: GamespyOverlay.h //////////////////////////////////////////////////////
  24. // Generals GameSpy overlay screens
  25. // Author: Matthew D. Campbell, March 2002
  26. #pragma once
  27. #ifndef __GAMESPYOVERLAY_H__
  28. #define __GAMESPYOVERLAY_H__
  29. #include "Common/NameKeyGenerator.h"
  30. #include "GameClient/WindowLayout.h"
  31. #include "GameClient/Gadget.h"
  32. #include "GameClient/Shell.h"
  33. #include "GameClient/KeyDefs.h"
  34. #include "GameClient/GameWindowManager.h"
  35. void ClearGSMessageBoxes( void ); ///< Tear down any GS message boxes (e.g. in case we have a new one to put up)
  36. void GSMessageBoxOk(UnicodeString titleString,UnicodeString bodyString, GameWinMsgBoxFunc okFunc = NULL); ///< Display a Message box with Ok button and track it
  37. void GSMessageBoxOkCancel(UnicodeString title, UnicodeString message, GameWinMsgBoxFunc okFunc, GameWinMsgBoxFunc cancelFunc); ///< Display a Message box with Ok/Cancel buttons and track it
  38. void GSMessageBoxYesNo(UnicodeString title, UnicodeString message, GameWinMsgBoxFunc yesFunc, GameWinMsgBoxFunc noFunc); ///< Display a Message box with Yes/No buttons and track it
  39. void RaiseGSMessageBox( void ); ///< Bring GS message box to the foreground (if we transition screens while a message box is up)
  40. enum GSOverlayType
  41. {
  42. GSOVERLAY_PLAYERINFO,
  43. GSOVERLAY_MAPSELECT,
  44. GSOVERLAY_BUDDY,
  45. GSOVERLAY_PAGE,
  46. GSOVERLAY_GAMEOPTIONS,
  47. GSOVERLAY_GAMEPASSWORD,
  48. GSOVERLAY_LADDERSELECT,
  49. GSOVERLAY_LOCALESELECT,
  50. GSOVERLAY_OPTIONS,
  51. GSOVERLAY_MAX
  52. };
  53. void GameSpyOpenOverlay( GSOverlayType );
  54. void GameSpyCloseOverlay( GSOverlayType );
  55. void GameSpyCloseAllOverlays( void );
  56. Bool GameSpyIsOverlayOpen( GSOverlayType );
  57. void GameSpyToggleOverlay( GSOverlayType );
  58. void GameSpyUpdateOverlays( void );
  59. void ReOpenPlayerInfo( void );
  60. void CheckReOpenPlayerInfo(void );
  61. #endif // __GAMESPYOVERLAY_H__