ShellHooks.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. ** Command & Conquer Generals Zero Hour(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. // ShellHooks.h
  24. // Author: Matthew D. Campbell, October 2002
  25. #pragma once
  26. #ifndef SHELLHOOKS_H
  27. #define SHELLHOOKS_H
  28. //
  29. // This enumeration holds all the shell script hooks that we currently have, If you are going to
  30. // add more, it's important to keep the enum lined up with the names in TheShellHookNames located
  31. // in Scripts.cpp.
  32. //
  33. enum
  34. {
  35. SHELL_SCRIPT_HOOK_MAIN_MENU_CAMPAIGN_SELECTED = 0,
  36. SHELL_SCRIPT_HOOK_MAIN_MENU_CAMPAIGN_HIGHLIGHTED,
  37. SHELL_SCRIPT_HOOK_MAIN_MENU_CAMPAIGN_UNHIGHLIGHTED,
  38. SHELL_SCRIPT_HOOK_MAIN_MENU_SKIRMISH_SELECTED,
  39. SHELL_SCRIPT_HOOK_MAIN_MENU_SKIRMISH_HIGHLIGHTED,
  40. SHELL_SCRIPT_HOOK_MAIN_MENU_SKIRMISH_UNHIGHLIGHTED,
  41. SHELL_SCRIPT_HOOK_MAIN_MENU_OPTIONS_SELECTED,
  42. SHELL_SCRIPT_HOOK_MAIN_MENU_OPTIONS_HIGHLIGHTED,
  43. SHELL_SCRIPT_HOOK_MAIN_MENU_OPTIONS_UNHIGHLIGHTED,
  44. SHELL_SCRIPT_HOOK_MAIN_MENU_ONLINE_SELECTED,
  45. SHELL_SCRIPT_HOOK_MAIN_MENU_ONLINE_HIGHLIGHTED,
  46. SHELL_SCRIPT_HOOK_MAIN_MENU_ONLINE_UNHIGHLIGHTED,
  47. SHELL_SCRIPT_HOOK_MAIN_MENU_NETWORK_SELECTED,
  48. SHELL_SCRIPT_HOOK_MAIN_MENU_NETWORK_HIGHLIGHTED,
  49. SHELL_SCRIPT_HOOK_MAIN_MENU_NETWORK_UNHIGHLIGHTED,
  50. SHELL_SCRIPT_HOOK_MAIN_MENU_EXIT_SELECTED,
  51. SHELL_SCRIPT_HOOK_MAIN_MENU_EXIT_HIGHLIGHTED,
  52. SHELL_SCRIPT_HOOK_MAIN_MENU_EXIT_UNHIGHLIGHTED,
  53. SHELL_SCRIPT_HOOK_GENERALS_ONLINE_LOGIN,
  54. SHELL_SCRIPT_HOOK_GENERALS_ONLINE_LOGOUT,
  55. SHELL_SCRIPT_HOOK_GENERALS_ONLINE_ENTERED_FROM_GAME,
  56. SHELL_SCRIPT_HOOK_OPTIONS_OPENED,
  57. SHELL_SCRIPT_HOOK_OPTIONS_CLOSED,
  58. SHELL_SCRIPT_HOOK_SKIRMISH_OPENED,
  59. SHELL_SCRIPT_HOOK_SKIRMISH_CLOSED,
  60. SHELL_SCRIPT_HOOK_SKIRMISH_ENTERED_FROM_GAME,
  61. SHELL_SCRIPT_HOOK_LAN_OPENED,
  62. SHELL_SCRIPT_HOOK_LAN_CLOSED,
  63. SHELL_SCRIPT_HOOK_LAN_ENTERED_FROM_GAME,
  64. SHELL_SCRIPT_HOOK_TOTAL // Keep this guy last!
  65. };
  66. extern char *TheShellHookNames[]; ///< Contains a list of the text representation of the shell hooks Used in WorldBuilder and in the shell.
  67. void SignalUIInteraction(Int interaction);
  68. #endif SHELLHOOKS_H