OOPTMENU.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Seven Kingdoms: Ancient Adversaries
  3. *
  4. * Copyright 1997,1998 Enlight Software Ltd.
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. // Filename : OOPTMENU.H
  21. // Description : in-game option menu (async version)
  22. #ifndef __OOPTMENU_H
  23. #define __OOPTMENU_H
  24. #include <OCONFIG.h>
  25. #include <OBUTTCUS.h>
  26. #include <OBUTT3D.h>
  27. #include <OSLIDCUS.h>
  28. class OptionMenu
  29. {
  30. public:
  31. int active_flag;
  32. int refresh_flag;
  33. int update_flag;
  34. Config old_config;
  35. SlideBar se_vol_slide;
  36. SlideBar music_vol_slide;
  37. SlideBar frame_speed_slide;
  38. SlideBar scroll_speed_slide;
  39. ButtonCustom race_button[MAX_RACE];
  40. ButtonCustomGroup help_group;
  41. ButtonCustomGroup news_group;
  42. ButtonCustomGroup report_group;
  43. ButtonCustomGroup show_icon_group;
  44. ButtonCustomGroup show_path_group;
  45. Button3D start_button, cancel_button;
  46. public:
  47. OptionMenu();
  48. int is_active() { return active_flag; }
  49. void enter(char untilExitFlag);
  50. void disp(int needRepaint=0);
  51. int detect();
  52. void exit(int action);
  53. void abort();
  54. static int slide_to_percent_volume(int slideVolume);
  55. static int percent_to_slide_volume(int percentVolume);
  56. };
  57. extern OptionMenu option_menu;
  58. #endif