UIMessageModal.h 808 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  2. // Please see LICENSE.md in repository root for license information
  3. // https://github.com/AtomicGameEngine/AtomicGameEngine
  4. #pragma once
  5. #include <Atomic/Core/Object.h>
  6. using namespace Atomic;
  7. namespace AtomicEditor
  8. {
  9. class MessageModal : public Object
  10. {
  11. OBJECT(MessageModal);
  12. struct ErrorWindowInfo
  13. {
  14. String title_;
  15. String message_;
  16. String id_;
  17. };
  18. public:
  19. /// Construct.
  20. MessageModal(Context* context);
  21. /// Destruct.
  22. virtual ~MessageModal();
  23. void ShowErrorWindow(const String& title, const String& message);
  24. void ShowInfoWindow(const String& title, const String& message);
  25. private:
  26. void HandleEditorModal(StringHash eventType, VariantMap& eventData);
  27. };
  28. }