Open Source Tomb Raider Engine
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*!
  2. * \file include/Menu.h
  3. * \brief Menu 'overlay'
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _MENU_H_
  8. #define _MENU_H_
  9. #include "Window.h"
  10. /*!
  11. * \brief Menu 'overlay'
  12. */
  13. class Menu {
  14. public:
  15. /*!
  16. * \brief Constructs an object of Menu
  17. */
  18. Menu();
  19. /*!
  20. * \brief Deconstructs an object of Menu
  21. */
  22. ~Menu();
  23. void setVisible(bool visible);
  24. bool isVisible();
  25. void display();
  26. void handleKeyboard(KeyboardButton key, bool pressed);
  27. void handleMouseClick(unsigned int x, unsigned int y, KeyboardButton button, bool released);
  28. private:
  29. void loadPakFolderRecursive(const char *dir);
  30. void fillMapList();
  31. void displayMapList();
  32. bool mVisible;
  33. unsigned int mCursor;
  34. unsigned int mMin;
  35. WindowString mainText;
  36. bool mMapListFilled;
  37. bool mFirstPass;
  38. std::vector<char *> mMapList;
  39. };
  40. #endif