DialogBox.h 569 B

12345678910111213141516171819
  1. // ----------------------------------------------------------------
  2. // From Game Programming in C++ by Sanjay Madhav
  3. // Copyright (C) 2017 Sanjay Madhav. All rights reserved.
  4. //
  5. // Released under the BSD License
  6. // See LICENSE in root directory for full details.
  7. // ----------------------------------------------------------------
  8. #pragma once
  9. #include "UIScreen.h"
  10. class DialogBox : public UIScreen
  11. {
  12. public:
  13. // (Lower draw order corresponds with further back)
  14. DialogBox(class Game* game, const std::string& text,
  15. std::function<void()> onOK);
  16. ~DialogBox();
  17. };