/src/MenuConfirm.h

http://github.com/clintbellanger/flare · C Header · 45 lines · 20 code · 9 blank · 16 comment · 0 complexity · 23007118a09c0c2849ae93289186e927 MD5 · raw file

  1. /*
  2. Copyright 2011 Clint Bellanger
  3. This file is part of FLARE.
  4. FLARE is free software: you can redistribute it and/or modify it under the terms
  5. of the GNU General Public License as published by the Free Software Foundation,
  6. either version 3 of the License, or (at your option) any later version.
  7. FLARE is distributed in the hope that it will be useful, but WITHOUT ANY
  8. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. PARTICULAR PURPOSE. See the GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License along with
  11. FLARE. If not, see http://www.gnu.org/licenses/
  12. */
  13. #ifndef MENU_CONFIRM_H
  14. #define MENU_CONFIRM_H
  15. #include "Menu.h"
  16. #include "WidgetButton.h"
  17. #include <SDL_image.h>
  18. class MenuConfirm : public Menu {
  19. protected:
  20. void loadGraphics();
  21. WidgetButton *buttonConfirm;
  22. WidgetButton *buttonClose;
  23. WidgetLabel label;
  24. std::string boxMsg;
  25. public:
  26. MenuConfirm(const std::string&, const std::string&);
  27. ~MenuConfirm();
  28. void logic();
  29. virtual void render();
  30. bool confirmClicked;
  31. };
  32. #endif