NGSetStory.js 814 B

1234567891011121314151617181920212223
  1. var t = require;
  2. var e = module;
  3. var i = exports;
  4. Object.defineProperty(i, "__esModule", {value: !0});
  5. const s = t("App"),
  6. o = (t("ViewConst"), t("B3Tree1"));
  7. class a extends o.BaseAction {
  8. open(t) {
  9. t.blackboard.set("first", !0, t.tree.id, this.id);
  10. }
  11. tick(t) {
  12. return s.default.ViewManager.isShow(15)
  13. ? t.blackboard.get("first", t.tree.id, this.id)
  14. ? (this.properties.isShow
  15. ? t.target.showStory(this.properties)
  16. : (t.target.hideStory(), t.target.godGuide.reset()),
  17. t.blackboard.set("first", !1, t.tree.id, this.id),
  18. o.b3.RUNNING)
  19. : o.b3.SUCCESS
  20. : (t.target.openGuideView(), o.b3.RUNNING);
  21. }
  22. }
  23. (i.default = a), o.register(a, "NGSetStory");