NGAShowMask.js 1001 B

12345678910111213141516171819202122232425262728
  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. setTouchState(t, e) {
  9. t.blackboard.set("state", e, t.tree.id, this.id);
  10. }
  11. open(t) {}
  12. tick(t) {
  13. return s.default.ViewManager.isShow(15)
  14. ? t.blackboard.get("state", t.tree.id, this.id)
  15. ? o.b3.SUCCESS
  16. : (t.target.showMask(this.properties.opacity),
  17. this.properties.args
  18. ? (t.target.locatorTouchNodeAsync(this.properties, () => {
  19. this.setTouchState(t, !0);
  20. }),
  21. this.setTouchState(t, !1),
  22. o.b3.RUNNING)
  23. : (this.setTouchState(t, !0), o.b3.SUCCESS))
  24. : (t.target.openGuideView(), o.b3.RUNNING);
  25. }
  26. close(t) {}
  27. }
  28. (i.default = a), o.register(a, "NGAShowMask");