Pro3DWindow.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. import EditorEvents = require("editor/EditorEvents");
  8. import EditorUI = require("ui/EditorUI");
  9. import ModalWindow = require("../ModalWindow");
  10. import ProgressModal = require("../ProgressModal");
  11. class Pro3DWindow extends ModalWindow {
  12. constructor() {
  13. super(false);
  14. this.init("3D Module License Required", "AtomicEditor/editor/ui/infomodule3d.tb.txt");
  15. }
  16. handleWidgetEvent(ev: Atomic.UIWidgetEvent) {
  17. if (ev.type == Atomic.UI_EVENT_TYPE_CLICK) {
  18. var id = ev.target.id;
  19. if (id == 'purchase') {
  20. Atomic.fileSystem.systemOpen("https://store.atomicgameengine.com/site");
  21. } else if (id == "ok") {
  22. this.hide();
  23. return true;
  24. }
  25. return false;
  26. }
  27. }
  28. }
  29. export = Pro3DWindow;