1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- var t = require;
- var e = module;
- var i = exports;
- Object.defineProperty(i, "__esModule", {value: !0});
- const s = t("App"),
- o = t("ControllerConst"),
- a = t("B3Tree1");
- class n extends a.BaseAction {
- parseParam(t) {
- let e = t.split("|"),
- i = [];
- for (const s of e)
- "i" === s[0]
- ? i.push(parseInt(s.slice(1)))
- : "f" === s[0]
- ? i.push(parseFloat(s.slice(1)))
- : i.push(s.slice(1));
- return i;
- }
- open(t) {
- "string" == typeof this.properties.controller &&
- "" != this.properties.controller &&
- this.properties.key &&
- (this.properties.param
- ? s.default.ControllerManager.applyFunc2(
- o.ControllerConst[this.properties.controller],
- this.properties.key,
- ...this.parseParam(this.properties.param)
- )
- : s.default.ControllerManager.applyFunc2(
- o.ControllerConst[this.properties.controller],
- this.properties.key,
- this.properties.param
- )),
- this.properties.notification &&
- "" !== this.properties.notification &&
- s.default.NotificationCenter.dispatch(this.properties.notification, this.properties.param);
- }
- tick(t) {
- return a.b3.SUCCESS;
- }
- close(t) {}
- }
- (i.default = n), a.register(n, "NGASpecial");
|