UIAbout.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #include "AtomicEditor.h"
  5. #include <TurboBadger/tb_window.h>
  6. #include <TurboBadger/tb_select.h>
  7. #include <TurboBadger/tb_editfield.h>
  8. #include <Atomic/Core/Context.h>
  9. #include <Atomic/UI/TBUI.h>
  10. #include "Resources/AEResourceOps.h"
  11. #include "AEPreferences.h"
  12. #include "AEEditor.h"
  13. #include "AEEvents.h"
  14. #include "Project/AEProject.h"
  15. #include "Project/ProjectUtils.h"
  16. #include "UIAbout.h"
  17. namespace AtomicEditor
  18. {
  19. // UIBuildSettings------------------------------------------------
  20. UIAbout::UIAbout(Context* context):
  21. UIModalOpWindow(context)
  22. {
  23. Editor* editor = GetSubsystem<Editor>();
  24. Project* project = editor->GetProject();
  25. TBUI* tbui = GetSubsystem<TBUI>();
  26. window_->SetText("About the Atomic Game Engine");
  27. tbui->LoadResourceFile(window_->GetContentRoot(), "AtomicEditor/editor/ui/about.tb.txt");
  28. window_->ResizeToFitContent();
  29. Center();
  30. }
  31. UIAbout::~UIAbout()
  32. {
  33. }
  34. bool UIAbout::OnEvent(const TBWidgetEvent &ev)
  35. {
  36. return false;
  37. }
  38. }