@famibee/skynovel 1.48.7 → 1.48.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +1067 -1071
- package/dist/app.js.map +1 -1
- package/dist/sn/CmnLib.d.ts +1 -1
- package/dist/sn/CmnLib.d.ts.map +1 -1
- package/dist/sn/CmnTween.d.ts +1 -2
- package/dist/sn/CmnTween.d.ts.map +1 -1
- package/dist/sn/EventMng.d.ts +1 -1
- package/dist/sn/EventMng.d.ts.map +1 -1
- package/dist/sn/GrpLayer.d.ts.map +1 -1
- package/dist/sn/ReadState.d.ts +1 -1
- package/dist/sn/ReadState.d.ts.map +1 -1
- package/dist/web.js +139 -143
- package/dist/web.js.map +1 -1
- package/package.json +2 -2
package/dist/web.js
CHANGED
|
@@ -17524,7 +17524,7 @@ class Grammar {
|
|
|
17524
17524
|
`\\n+|\\t+|\\[let_ml\\s+[^\\]]+\\].+?(?=\\[endlet_ml[\\]\\s])|\\[(?:(?=([^"'#;\\]]+))\\1|(["'#]).*?\\2|;[^\\n]*)*?]|;[^\\n]*|&[^&\\n]+&|&&?[^&;\\n\\t]+|^\\*[^\\s\\[&;\\\\]+|[^\\n\\t\\[;${t ? `\\${t}` : ""}]+`,
|
|
17525
17525
|
// 本文
|
|
17526
17526
|
"gs"
|
|
17527
|
-
), this.#e = new RegExp(`[\\w\\s;[\\]*=&|《》${t ? `\\${t}` : ""}]`), this.#
|
|
17527
|
+
), this.#e = new RegExp(`[\\w\\s;[\\]*=&|《》${t ? `\\${t}` : ""}]`), this.#l = new RegExp(`[\\n\\t;\\[*&${t ? `\\${t}` : ""}]`);
|
|
17528
17528
|
}
|
|
17529
17529
|
// 括弧マクロの定義
|
|
17530
17530
|
bracket2macro(t, e, r, N) {
|
|
@@ -17550,7 +17550,7 @@ class Grammar {
|
|
|
17550
17550
|
throw "[bracket2macro] text【" + B + "】は括弧マクロに使用できない文字です";
|
|
17551
17551
|
if (this.#e.test($))
|
|
17552
17552
|
throw "[bracket2macro] text【" + $ + "】は括弧マクロに使用できない文字です";
|
|
17553
|
-
this.#o[$] = "0", this.#o[B] = `[${k} text=`, this.addC2M(`\\${B}[^\\${$}]*\\${$}`, `\\${B}\\${$}`), this.#
|
|
17553
|
+
this.#o[$] = "0", this.#o[B] = `[${k} text=`, this.addC2M(`\\${B}[^\\${$}]*\\${$}`, `\\${B}\\${$}`), this.#h(r, N);
|
|
17554
17554
|
}
|
|
17555
17555
|
// 一文字マクロの定義
|
|
17556
17556
|
char2macro(t, e, r, N) {
|
|
@@ -17565,7 +17565,7 @@ class Grammar {
|
|
|
17565
17565
|
throw "[char2macro] nameは必須です";
|
|
17566
17566
|
if (!(D in e))
|
|
17567
17567
|
throw `[char2macro] 未定義のタグ又はマクロ[${D}]です`;
|
|
17568
|
-
this.#o[k] = `[${D}]`, this.addC2M(`\\${k}`, `\\${k}`), this.#
|
|
17568
|
+
this.#o[k] = `[${D}]`, this.addC2M(`\\${k}`, `\\${k}`), this.#h(r, N);
|
|
17569
17569
|
}
|
|
17570
17570
|
#e;
|
|
17571
17571
|
#r = new RegExp("");
|
|
@@ -17588,7 +17588,7 @@ class Grammar {
|
|
|
17588
17588
|
const [, D, B] = k;
|
|
17589
17589
|
return [D, B];
|
|
17590
17590
|
}) ?? [], r = { aToken: e, len: e.length, aLNum: [] };
|
|
17591
|
-
return this.#
|
|
17591
|
+
return this.#h(r), r;
|
|
17592
17592
|
}
|
|
17593
17593
|
testTagLetml(t) {
|
|
17594
17594
|
return /^\[let_ml\s/.test(t);
|
|
@@ -17600,8 +17600,8 @@ class Grammar {
|
|
|
17600
17600
|
return this.#t.lastIndex = 0, this.#t.exec(t);
|
|
17601
17601
|
}
|
|
17602
17602
|
#o;
|
|
17603
|
-
#
|
|
17604
|
-
#
|
|
17603
|
+
#l;
|
|
17604
|
+
#h(t, e = 0) {
|
|
17605
17605
|
if (this.#o) {
|
|
17606
17606
|
for (let r = t.len - 1; r >= e; --r) {
|
|
17607
17607
|
const N = t.aToken[r];
|
|
@@ -17622,7 +17622,7 @@ class Grammar {
|
|
|
17622
17622
|
}
|
|
17623
17623
|
}
|
|
17624
17624
|
testNoTxt(t) {
|
|
17625
|
-
return this.#
|
|
17625
|
+
return this.#l.test(t);
|
|
17626
17626
|
}
|
|
17627
17627
|
//4tst
|
|
17628
17628
|
}
|
|
@@ -18550,21 +18550,21 @@ class PropParser {
|
|
|
18550
18550
|
);
|
|
18551
18551
|
}
|
|
18552
18552
|
getValAmpersand = (t) => t.at(0) === "&" ? String(this.parse(t.slice(1))) : t;
|
|
18553
|
-
static #
|
|
18553
|
+
static #l = /^((?<scope>\w+?):)?(?<name>[^\s :@]+)(?<at>\@str)?$/;
|
|
18554
18554
|
// 522 match 18413 step(~10ms) https://regex101.com/r/tmCKuE/1
|
|
18555
18555
|
// →これは改良しようがない。いい意味で改善の余地なし
|
|
18556
18556
|
static getValName(t) {
|
|
18557
|
-
const r = this.#
|
|
18557
|
+
const r = this.#l.exec(t.trim())?.groups;
|
|
18558
18558
|
if (!r)
|
|
18559
18559
|
return null;
|
|
18560
18560
|
const { scope: N = "tmp", name: k, at: D = "" } = r;
|
|
18561
18561
|
return {
|
|
18562
18562
|
scope: N,
|
|
18563
|
-
name: PropParser.#
|
|
18563
|
+
name: PropParser.#h(k),
|
|
18564
18564
|
at: D
|
|
18565
18565
|
};
|
|
18566
18566
|
}
|
|
18567
|
-
static #
|
|
18567
|
+
static #h(t) {
|
|
18568
18568
|
let e = 0, r = 0;
|
|
18569
18569
|
for (; ; ) {
|
|
18570
18570
|
if (e = t.indexOf('["'), e < 0) {
|
|
@@ -18582,7 +18582,7 @@ class PropParser {
|
|
|
18582
18582
|
}
|
|
18583
18583
|
class DebugMng {
|
|
18584
18584
|
constructor(t, e, r) {
|
|
18585
|
-
this.sys = t, DebugMng.#t = r, DebugMng.#e = e, DebugMng.#r = e.title, DebugMng.myTrace = DebugMng.#
|
|
18585
|
+
this.sys = t, DebugMng.#t = r, DebugMng.#e = e, DebugMng.#r = e.title, DebugMng.myTrace = DebugMng.#h, e.log = (N) => this.#o(N), e.trace = (N) => this.#l(N), DebugMng.#i = document.createElement("span"), DebugMng.#i.hidden = !0, DebugMng.#i.textContent = "", DebugMng.#i.style.cssText = ` z-index: ${Number.MAX_SAFE_INTEGER};
|
|
18586
18586
|
position: absolute; left: 0; top: 0;
|
|
18587
18587
|
color: black;
|
|
18588
18588
|
background-color: rgba(255, 255, 255, 0.7);`, document.body.appendChild(DebugMng.#i);
|
|
@@ -18609,7 +18609,7 @@ ${t.text || `(text is ${t.text})`}
|
|
|
18609
18609
|
}
|
|
18610
18610
|
), !1;
|
|
18611
18611
|
}
|
|
18612
|
-
#
|
|
18612
|
+
#l(t) {
|
|
18613
18613
|
return DebugMng.myTrace(t.text || `(text is ${t.text})`, "I"), !1;
|
|
18614
18614
|
}
|
|
18615
18615
|
// private禁止、galleryでエラーになる
|
|
@@ -18637,7 +18637,7 @@ ${t.text || `(text is ${t.text})`}
|
|
|
18637
18637
|
}
|
|
18638
18638
|
static myTrace = DebugMng.trace_beforeNew;
|
|
18639
18639
|
static strPos = () => DebugMng.#t && DebugMng.#t.lineNum > 0 ? `(fn:${DebugMng.#t.scriptFn} line:${DebugMng.#t.lineNum}) ` : "";
|
|
18640
|
-
static #
|
|
18640
|
+
static #h(t, e = "E") {
|
|
18641
18641
|
let r = `{${e}} ` + DebugMng.strPos() + t;
|
|
18642
18642
|
DebugMng.#p(r, e);
|
|
18643
18643
|
let N = "";
|
|
@@ -18754,8 +18754,8 @@ class Variable {
|
|
|
18754
18754
|
#i;
|
|
18755
18755
|
#n = { sys: {}, mark: {}, kidoku: {} };
|
|
18756
18756
|
#o;
|
|
18757
|
-
#
|
|
18758
|
-
#
|
|
18757
|
+
#l = {};
|
|
18758
|
+
#h;
|
|
18759
18759
|
setSys(t) {
|
|
18760
18760
|
this.#i = t, t.initVal(this.#n, this.#r, (e) => {
|
|
18761
18761
|
this.updateData(e), sessionStorage.clear();
|
|
@@ -18785,7 +18785,7 @@ class Variable {
|
|
|
18785
18785
|
for (const [z, V] of Object.entries(this.#n.kidoku))
|
|
18786
18786
|
H[z] = V instanceof Function ? V() : V;
|
|
18787
18787
|
sessionStorage[r + "kidoku"] = JSON.stringify(H), t.flush();
|
|
18788
|
-
} : () => t.flush(), this.#
|
|
18788
|
+
} : () => t.flush(), this.#h = (k, D) => t.callHook(k, D), t.addHook((k, D) => this.#p[k]?.(k, D));
|
|
18789
18789
|
const N = this.getVal("sys:sn.tagCh.msecWait", -1);
|
|
18790
18790
|
(this.#r["const.sn.isFirstBoot"] || N === -1) && this.#S();
|
|
18791
18791
|
});
|
|
@@ -18810,10 +18810,10 @@ class Variable {
|
|
|
18810
18810
|
Variable.#N[e.dataId] = 1;
|
|
18811
18811
|
}
|
|
18812
18812
|
updateData(t) {
|
|
18813
|
-
this.#n = t, this.#o = this.#t.sys = this.#n.sys, this.#
|
|
18813
|
+
this.#n = t, this.#o = this.#t.sys = this.#n.sys, this.#l = {};
|
|
18814
18814
|
for (const [e, r] of Object.entries(this.#n.kidoku)) {
|
|
18815
18815
|
const N = new Areas();
|
|
18816
|
-
N.hAreas = { ...r }, this.#
|
|
18816
|
+
N.hAreas = { ...r }, this.#l[e] = N;
|
|
18817
18817
|
}
|
|
18818
18818
|
}
|
|
18819
18819
|
#c = () => {
|
|
@@ -18848,11 +18848,11 @@ class Variable {
|
|
|
18848
18848
|
}
|
|
18849
18849
|
// 既読系
|
|
18850
18850
|
loadScrWork(t) {
|
|
18851
|
-
t in this.#
|
|
18851
|
+
t in this.#l || (this.#l[t] = new Areas());
|
|
18852
18852
|
}
|
|
18853
|
-
getAreaKidoku = (t) => this.#
|
|
18853
|
+
getAreaKidoku = (t) => this.#l[t];
|
|
18854
18854
|
saveKidoku() {
|
|
18855
|
-
for (const [t, { hAreas: e }] of Object.entries(this.#
|
|
18855
|
+
for (const [t, { hAreas: e }] of Object.entries(this.#l))
|
|
18856
18856
|
this.#n.kidoku[t] = { ...e };
|
|
18857
18857
|
this.flush();
|
|
18858
18858
|
}
|
|
@@ -18956,7 +18956,7 @@ class Variable {
|
|
|
18956
18956
|
const t = this.#o = this.#t.sys = this.#n.sys = {};
|
|
18957
18957
|
typeof process < "u" || (this.setVal_Nochk("sys", "const.sn.window.x", 0), this.setVal_Nochk("sys", "const.sn.window.y", 0)), this.setVal_Nochk("sys", "sn.tagCh.doWait", !0), this.setVal_Nochk("sys", "sn.tagCh.doWait_Kidoku", !0), this.setVal_Nochk("sys", "sn.tagCh.msecWait", this.cfg.oCfg.init.tagch_msecwait), this.setVal_Nochk("sys", "sn.tagCh.msecWait_Kidoku", this.cfg.oCfg.init.tagch_msecwait), this.setVal_Nochk("sys", "sn.tagCh.canskip", !0), this.setVal_Nochk("sys", "sn.skip.mode", "s"), this.setVal_Nochk("sys", "sn.auto.msecPageWait", argChk_Num(t, "sn.auto.msecPageWait", this.cfg.oCfg.init.auto_msecpagewait ?? 3500)), this.setVal_Nochk("sys", "sn.auto.msecPageWait_Kidoku", argChk_Num(t, "sn.auto.msecPageWait", this.cfg.oCfg.init.auto_msecpagewait ?? 3500)), this.setVal_Nochk("sys", "sn.auto.msecLineWait", 500), this.setVal_Nochk("sys", "sn.auto.msecLineWait_Kidoku", 500), this.setVal_Nochk("sys", "const.sn.sound.BGM.volume", 1), this.setVal_Nochk("sys", "const.sn.sound.SE.volume", 1), this.setVal_Nochk("sys", "const.sn.sound.SYS.volume", 1);
|
|
18958
18958
|
for (const [r, N] of Object.entries(this.#n.kidoku))
|
|
18959
|
-
N.hAreas = {}, this.#
|
|
18959
|
+
N.hAreas = {}, this.#l[r].clear();
|
|
18960
18960
|
return this.setVal_Nochk("sys", "TextLayer.Back.Alpha", 0.5), this.#t.mark = this.#n.mark = {}, this.setVal_Nochk("sys", "const.sn.save.place", 1), this.flush(), !1;
|
|
18961
18961
|
}
|
|
18962
18962
|
// ゲーム変数の全消去
|
|
@@ -18986,7 +18986,7 @@ class Variable {
|
|
|
18986
18986
|
const D = t + ":" + e;
|
|
18987
18987
|
if (D in Variable.#N) {
|
|
18988
18988
|
const B = k[e], $ = r;
|
|
18989
|
-
B != $ && this.#
|
|
18989
|
+
B != $ && this.#h("data_break", {
|
|
18990
18990
|
dataId: D,
|
|
18991
18991
|
old_v: B,
|
|
18992
18992
|
new_v: $
|
|
@@ -19512,19 +19512,18 @@ class CmnTween {
|
|
|
19512
19512
|
static #t = {};
|
|
19513
19513
|
static #e;
|
|
19514
19514
|
static #r;
|
|
19515
|
-
static
|
|
19516
|
-
|
|
19517
|
-
CmnTween.#t = {}, CmnTween.#e = t, CmnTween.#r = e, CmnTween.#i = r, CmnTween.#i.ticker.add(CmnTween.#n);
|
|
19515
|
+
static init(t, e) {
|
|
19516
|
+
CmnTween.#t = {}, CmnTween.#e = t, CmnTween.#r = e, CmnTween.#r.ticker.add(CmnTween.#i);
|
|
19518
19517
|
}
|
|
19519
|
-
static #
|
|
19518
|
+
static #i = () => update();
|
|
19520
19519
|
static destroy() {
|
|
19521
|
-
CmnTween.stopAllTw(), CmnTween.#
|
|
19520
|
+
CmnTween.stopAllTw(), CmnTween.#r.ticker.remove(CmnTween.#i);
|
|
19522
19521
|
}
|
|
19523
19522
|
static setTwProp(t, e) {
|
|
19524
19523
|
const r = argChk_Num(e, "repeat", 1);
|
|
19525
19524
|
return t.delay(argChk_Num(e, "delay", 0)).easing(CmnTween.ease(e.ease)).repeat(r > 0 ? r - 1 : 1 / 0).yoyo(argChk_Boolean(e, "yoyo", !1));
|
|
19526
19525
|
}
|
|
19527
|
-
static #
|
|
19526
|
+
static #n = {
|
|
19528
19527
|
"Back.In": (t) => Easing.Back.In(t),
|
|
19529
19528
|
"Back.InOut": (t) => Easing.Back.InOut(t),
|
|
19530
19529
|
"Back.Out": (t) => Easing.Back.Out(t),
|
|
@@ -19560,9 +19559,9 @@ class CmnTween {
|
|
|
19560
19559
|
static ease(t) {
|
|
19561
19560
|
if (!t)
|
|
19562
19561
|
return (e) => Easing.Linear.None(e);
|
|
19563
|
-
if (!(t in CmnTween.#
|
|
19562
|
+
if (!(t in CmnTween.#n))
|
|
19564
19563
|
throw "異常なease指定です";
|
|
19565
|
-
return CmnTween.#
|
|
19564
|
+
return CmnTween.#n[t];
|
|
19566
19565
|
}
|
|
19567
19566
|
static hMemberCnt = {
|
|
19568
19567
|
alpha: 0,
|
|
@@ -19599,12 +19598,12 @@ class CmnTween {
|
|
|
19599
19598
|
}
|
|
19600
19599
|
static tweenA(t, e, r, N, k, D, B) {
|
|
19601
19600
|
const $ = this.#e.isSkipping() ? 0 : argChk_Num(e, "time", NaN), U = new Tween(r).to(N, $).onUpdate(k);
|
|
19602
|
-
CmnTween.setTwProp(U, e), CmnTween.#t[t] = { tw: U,
|
|
19601
|
+
CmnTween.setTwProp(U, e), CmnTween.#t[t] = { tw: U, onEnd: B };
|
|
19603
19602
|
const { path: H } = e;
|
|
19604
19603
|
let z = U;
|
|
19605
19604
|
if (H) {
|
|
19606
19605
|
CmnLib.debugLog && console.group(`🍝 [${e[":タグ名"]}] path=${H}= start(${r.x},${r.y},${r.alpha})`);
|
|
19607
|
-
for (const { groups: V } of H.matchAll(CmnTween.#
|
|
19606
|
+
for (const { groups: V } of H.matchAll(CmnTween.#o)) {
|
|
19608
19607
|
const { x: X, x2: q, y: W, y2: Y, o: K, o2: Z, json: J } = V;
|
|
19609
19608
|
let tt = {};
|
|
19610
19609
|
if (J)
|
|
@@ -19625,7 +19624,7 @@ class CmnTween {
|
|
|
19625
19624
|
}
|
|
19626
19625
|
return z.onComplete(() => {
|
|
19627
19626
|
const V = CmnTween.#t[t];
|
|
19628
|
-
V && (delete CmnTween.#t[t], V.tw = void 0, U.stop(), CmnTween.#e.
|
|
19627
|
+
V && (delete CmnTween.#t[t], V.tw = void 0, U.stop(), CmnTween.#e.breakLimitedEvent(), V.onEnd?.(), D());
|
|
19629
19628
|
}), U;
|
|
19630
19629
|
}
|
|
19631
19630
|
static tweenB(t, e) {
|
|
@@ -19654,11 +19653,10 @@ class CmnTween {
|
|
|
19654
19653
|
|
|
|
19655
19654
|
(?<json>\{[^{}]*})
|
|
19656
19655
|
*/
|
|
19657
|
-
static #
|
|
19656
|
+
static #o = /\(\s*(?:(?<x>[-=\d\.]+)|(['"])(?<x2>.*?)\2)?(?:\s*,\s*(?:(?<y>[-=\d\.]+)|(['"])(?<y2>.*?)\5)?(?:\s*,\s*(?:(?<o>[-=\d\.]+)|(['"])(?<o2>.*?)\8))?)?|(?<json>\{[^{}]*})/g;
|
|
19658
19657
|
// トランス終了待ち
|
|
19659
19658
|
static wt(t) {
|
|
19660
|
-
|
|
19661
|
-
return e?.tw ? e.resume = CmnTween.#e.waitEvent(t, () => CmnTween.finish_trans()) : !1;
|
|
19659
|
+
return CmnTween.#t[CmnTween.TW_INT_TRANS]?.tw ? CmnTween.#e.waitEvent(t, () => CmnTween.finish_trans()) : !1;
|
|
19662
19660
|
}
|
|
19663
19661
|
static TW_INT_TRANS = `trans
|
|
19664
19662
|
`;
|
|
@@ -19676,7 +19674,7 @@ ${r}` : N ?? e;
|
|
|
19676
19674
|
if (!k)
|
|
19677
19675
|
throw "トゥイーンが指定されていません";
|
|
19678
19676
|
const D = CmnTween.#t[k];
|
|
19679
|
-
return D?.tw ?
|
|
19677
|
+
return D?.tw ? CmnTween.#e.waitEvent(t, () => D.tw?.end()) : !1;
|
|
19680
19678
|
}
|
|
19681
19679
|
// トゥイーン中断
|
|
19682
19680
|
static stop_tsy(t) {
|
|
@@ -20875,7 +20873,8 @@ class SsPlaying {
|
|
|
20875
20873
|
return !1;
|
|
20876
20874
|
const { buf: r = "SE" } = e, N = argChk_Boolean(e, "stop", !0);
|
|
20877
20875
|
return argChk_Boolean(e, "canskip", !1), evtMng.waitEvent(e, () => {
|
|
20878
|
-
stop2var(t, r), t.stt.onPlayEnd(), N
|
|
20876
|
+
stop2var(t, r), t.stt.onPlayEnd(), N ? t.stt.stopse(t) : t.stt.onPlayEnd = () => {
|
|
20877
|
+
};
|
|
20879
20878
|
}) ? (t.stt = new SsWaitingStop(), !0) : !1;
|
|
20880
20879
|
}
|
|
20881
20880
|
onPlayEnd() {
|
|
@@ -20915,7 +20914,7 @@ class SsWaitingStop {
|
|
|
20915
20914
|
ws = () => !1;
|
|
20916
20915
|
// ok
|
|
20917
20916
|
onPlayEnd() {
|
|
20918
|
-
evtMng.
|
|
20917
|
+
evtMng.breakLimitedEvent();
|
|
20919
20918
|
}
|
|
20920
20919
|
fade() {
|
|
20921
20920
|
}
|
|
@@ -20977,7 +20976,7 @@ class SsWaitingFade {
|
|
|
20977
20976
|
wf = () => !1;
|
|
20978
20977
|
// ok
|
|
20979
20978
|
compFade() {
|
|
20980
|
-
evtMng.
|
|
20979
|
+
evtMng.breakLimitedEvent();
|
|
20981
20980
|
}
|
|
20982
20981
|
stopfadese = () => stopfadese(this.tw);
|
|
20983
20982
|
}
|
|
@@ -21011,7 +21010,7 @@ class SsStop {
|
|
|
21011
21010
|
}
|
|
21012
21011
|
class SoundMng {
|
|
21013
21012
|
constructor(t, e, r, N, k) {
|
|
21014
|
-
this.val = r, e.volume = (D) => this.#i(D), e.fadebgm = (D) => this.#
|
|
21013
|
+
this.val = r, e.volume = (D) => this.#i(D), e.fadebgm = (D) => this.#h(D), e.fadeoutbgm = (D) => this.#o(D), e.fadeoutse = (D) => this.#l(D), e.fadese = (D) => this.#p(D), e.playbgm = (D) => this.#s(D), e.playse = (D) => this.#c(D), e.stop_allse = () => this.#g(), e.stopbgm = (D) => this.#f(D), e.stopse = (D) => this.#d(D), e.wb = (D) => this.#v(D), e.wf = (D) => this.#u(D), e.stopfadese = (D) => this.#b(D), e.wl = (D) => this.#a(D), e.ws = (D) => this.#m(D), e.xchgbuf = (D) => this.#y(D), r.setVal_Nochk("save", "const.sn.loopPlaying", "{}"), r.setVal_Nochk("tmp", "const.sn.sound.codecs", JSON.stringify(I.supported)), SndBuf.init(t, r, N, k), R.disableAutoPause = !0;
|
|
21015
21014
|
}
|
|
21016
21015
|
#t = {};
|
|
21017
21016
|
#e = {};
|
|
@@ -21033,14 +21032,14 @@ class SoundMng {
|
|
|
21033
21032
|
}
|
|
21034
21033
|
// BGM/効果音のフェードアウト(loadから使うのでマクロ化禁止)
|
|
21035
21034
|
#o(t) {
|
|
21036
|
-
return t.volume = 0, this.#
|
|
21035
|
+
return t.volume = 0, this.#h(t);
|
|
21037
21036
|
}
|
|
21038
21037
|
// 効果音のフェードアウト(loadから使うのでマクロ化禁止)
|
|
21039
|
-
#
|
|
21038
|
+
#l(t) {
|
|
21040
21039
|
return t.volume = 0, this.#p(t);
|
|
21041
21040
|
}
|
|
21042
21041
|
// BGMのフェード(loadから使うのでマクロ化禁止)
|
|
21043
|
-
#
|
|
21042
|
+
#h(t) {
|
|
21044
21043
|
return t.buf = "BGM", this.#p(t);
|
|
21045
21044
|
}
|
|
21046
21045
|
// 効果音のフェード
|
|
@@ -21465,19 +21464,19 @@ class GrpLayer extends Layer {
|
|
|
21465
21464
|
static #i;
|
|
21466
21465
|
static #n;
|
|
21467
21466
|
static #o;
|
|
21468
|
-
static #
|
|
21469
|
-
static #
|
|
21467
|
+
static #l;
|
|
21468
|
+
static #h = 1;
|
|
21470
21469
|
static #p = 1;
|
|
21471
21470
|
static init(t, e, r, N, k, D) {
|
|
21472
|
-
GrpLayer.#r = t, GrpLayer.#i = e, GrpLayer.#n = r, GrpLayer.#o = N, GrpLayer.#
|
|
21471
|
+
GrpLayer.#r = t, GrpLayer.#i = e, GrpLayer.#n = r, GrpLayer.#o = N, GrpLayer.#l = D;
|
|
21473
21472
|
const B = () => {
|
|
21474
|
-
const $ = GrpLayer.#
|
|
21473
|
+
const $ = GrpLayer.#h * GrpLayer.#p;
|
|
21475
21474
|
for (const U of Object.values(GrpLayer.hFn2VElm))
|
|
21476
21475
|
U.volume = $;
|
|
21477
21476
|
};
|
|
21478
21477
|
k.setNoticeChgVolume(
|
|
21479
21478
|
($) => {
|
|
21480
|
-
GrpLayer.#
|
|
21479
|
+
GrpLayer.#h = $, B();
|
|
21481
21480
|
},
|
|
21482
21481
|
($) => {
|
|
21483
21482
|
GrpLayer.#p = $, B();
|
|
@@ -21582,7 +21581,7 @@ class GrpLayer extends Layer {
|
|
|
21582
21581
|
break;
|
|
21583
21582
|
case LoaderResource.TYPE.VIDEO:
|
|
21584
21583
|
const k = e.data;
|
|
21585
|
-
k.volume = GrpLayer.#
|
|
21584
|
+
k.volume = GrpLayer.#h, GrpLayer.hFn2VElm[e.name] = GrpLayer.#y(k);
|
|
21586
21585
|
}
|
|
21587
21586
|
r();
|
|
21588
21587
|
};
|
|
@@ -21596,7 +21595,7 @@ class GrpLayer extends Layer {
|
|
|
21596
21595
|
);
|
|
21597
21596
|
}
|
|
21598
21597
|
static #m(t, e, r) {
|
|
21599
|
-
if (e.data = t, e.extension === "bin" && (t instanceof HTMLImageElement ? (e.texture = Texture.fromLoader(t, e.url, e.name), e.type = LoaderResource.TYPE.IMAGE) : t instanceof HTMLVideoElement && (t.volume = GrpLayer.#
|
|
21598
|
+
if (e.data = t, e.extension === "bin" && (t instanceof HTMLImageElement ? (e.texture = Texture.fromLoader(t, e.url, e.name), e.type = LoaderResource.TYPE.IMAGE) : t instanceof HTMLVideoElement && (t.volume = GrpLayer.#h, GrpLayer.hFn2VElm[e.name] = GrpLayer.#y(t), e.type = LoaderResource.TYPE.VIDEO)), e.extension !== "json") {
|
|
21600
21599
|
r();
|
|
21601
21600
|
return;
|
|
21602
21601
|
}
|
|
@@ -21629,7 +21628,7 @@ class GrpLayer extends Layer {
|
|
|
21629
21628
|
});
|
|
21630
21629
|
}
|
|
21631
21630
|
static #y(t) {
|
|
21632
|
-
return GrpLayer.#
|
|
21631
|
+
return GrpLayer.#l.getVal("const.sn.needClick2Play") && (DebugMng.trace_beforeNew(`[lay系] ${DebugMng.strPos()}未クリック状態で動画を自動再生します。音声はミュートされます`, "W"), t.muted = !0), t.setAttribute("playsinline", ""), t;
|
|
21633
21632
|
}
|
|
21634
21633
|
static #_(t, e) {
|
|
21635
21634
|
const r = GrpLayer.hFn2ResAniSpr[t];
|
|
@@ -21649,17 +21648,12 @@ class GrpLayer extends Layer {
|
|
|
21649
21648
|
return !1;
|
|
21650
21649
|
if (this.#s.isSkipping() || r.ended)
|
|
21651
21650
|
return GrpLayer.#T(e), !1;
|
|
21652
|
-
const N = () =>
|
|
21653
|
-
|
|
21654
|
-
|
|
21655
|
-
|
|
21656
|
-
|
|
21657
|
-
|
|
21658
|
-
t,
|
|
21659
|
-
() => {
|
|
21660
|
-
r.removeEventListener("ended", k), N();
|
|
21661
|
-
}
|
|
21662
|
-
);
|
|
21651
|
+
const N = () => this.#s.breakLimitedEvent();
|
|
21652
|
+
r.addEventListener("ended", N, { once: !0, passive: !0 });
|
|
21653
|
+
const k = argChk_Boolean(t, "stop", !0);
|
|
21654
|
+
return GrpLayer.#s.waitEvent(t, () => {
|
|
21655
|
+
r.removeEventListener("ended", N), k && GrpLayer.#T(e), N();
|
|
21656
|
+
});
|
|
21663
21657
|
}
|
|
21664
21658
|
static #T(t) {
|
|
21665
21659
|
const e = GrpLayer.hFn2VElm[t];
|
|
@@ -21808,7 +21802,7 @@ class GrpLayer extends Layer {
|
|
|
21808
21802
|
}
|
|
21809
21803
|
class TxtStage extends Container {
|
|
21810
21804
|
constructor(t, e, r) {
|
|
21811
|
-
super(), this.spLay = t, this.canFocus = e, this.sys = r, this.#i.classList.add("sn_tx"), this.#i.style.position = "absolute", TxtStage.#e.view.parentElement.appendChild(this.#i), this.addChild(this.#n), this.addChild(this.#o), this.#o.name = "grpDbgMasume", this.#
|
|
21805
|
+
super(), this.spLay = t, this.canFocus = e, this.sys = r, this.#i.classList.add("sn_tx"), this.#i.style.position = "absolute", TxtStage.#e.view.parentElement.appendChild(this.#i), this.addChild(this.#n), this.addChild(this.#o), this.#o.name = "grpDbgMasume", this.#h = new TxtLayDesignCast(this.spLay, this), this.#h.adopt(this.#p);
|
|
21812
21806
|
}
|
|
21813
21807
|
static #t;
|
|
21814
21808
|
static #e;
|
|
@@ -21827,7 +21821,7 @@ class TxtStage extends Container {
|
|
|
21827
21821
|
#n = new Container();
|
|
21828
21822
|
// サンプリング先
|
|
21829
21823
|
#o = new Graphics();
|
|
21830
|
-
static #
|
|
21824
|
+
static #l = {
|
|
21831
21825
|
"background-color": 0,
|
|
21832
21826
|
"border-bottom-width": 0,
|
|
21833
21827
|
"border-left-width": 0,
|
|
@@ -21838,7 +21832,7 @@ class TxtStage extends Container {
|
|
|
21838
21832
|
"margin-right": 0,
|
|
21839
21833
|
"margin-top": 0
|
|
21840
21834
|
};
|
|
21841
|
-
#
|
|
21835
|
+
#h;
|
|
21842
21836
|
#p = new TxtLayPadDesignCast(this);
|
|
21843
21837
|
#s = {
|
|
21844
21838
|
fontsize: 24,
|
|
@@ -21863,7 +21857,7 @@ class TxtStage extends Container {
|
|
|
21863
21857
|
const N = r.style.length;
|
|
21864
21858
|
for (let k = 0; k < N; ++k) {
|
|
21865
21859
|
const D = r.style[k];
|
|
21866
|
-
if (D in TxtStage.#
|
|
21860
|
+
if (D in TxtStage.#l) {
|
|
21867
21861
|
DebugMng.myTrace(`${D}は指定できません`, "W");
|
|
21868
21862
|
continue;
|
|
21869
21863
|
}
|
|
@@ -21874,7 +21868,7 @@ class TxtStage extends Container {
|
|
|
21874
21868
|
this.#i.style.cssText = "";
|
|
21875
21869
|
else
|
|
21876
21870
|
"alpha" in t && (e.opacity = String(this.spLay.alpha));
|
|
21877
|
-
if ("width" in t && (e.width = (t.width ?? "0") + "px"), "height" in t && (e.height = (t.height ?? "0") + "px"), "pl" in t && (e.paddingLeft = (t.pl ?? "0") + "px"), "pr" in t && (e.paddingRight = (t.pr ?? "0") + "px"), "pt" in t && (e.paddingTop = (t.pt ?? "0") + "px"), "pb" in t && (e.paddingBottom = (t.pb ?? "0") + "px"), "kinsoku_sol" in t && (TxtStage.#S = new RegExp(`[${t.kinsoku_sol}]`)), "kinsoku_eol" in t && (TxtStage.#E = new RegExp(`[${t.kinsoku_eol}]`)), "kinsoku_dns" in t && (TxtStage.#B = new RegExp(`[${t.kinsoku_dns}]`)), this.#d(), this.#
|
|
21871
|
+
if ("width" in t && (e.width = (t.width ?? "0") + "px"), "height" in t && (e.height = (t.height ?? "0") + "px"), "pl" in t && (e.paddingLeft = (t.pl ?? "0") + "px"), "pr" in t && (e.paddingRight = (t.pr ?? "0") + "px"), "pt" in t && (e.paddingTop = (t.pt ?? "0") + "px"), "pb" in t && (e.paddingBottom = (t.pb ?? "0") + "px"), "kinsoku_sol" in t && (TxtStage.#S = new RegExp(`[${t.kinsoku_sol}]`)), "kinsoku_eol" in t && (TxtStage.#E = new RegExp(`[${t.kinsoku_eol}]`)), "kinsoku_dns" in t && (TxtStage.#B = new RegExp(`[${t.kinsoku_dns}]`)), this.#d(), this.#h.sethArg(t), this.#v = this.spLay.position.x, e.transformOrigin = `${this.spLay.pivot.x}px ${this.spLay.pivot.y}px`, this.cvsResize(), e.display = this.spLay.visible ? "inline" : "none", e.textShadow = t.filter ?? e.textShadow ?? "", this.#c = argChk_Boolean(t, "break_fixed", this.#c), this.#g = argChk_Num(t, "break_fixed_left", this.#g), this.#f = argChk_Num(t, "break_fixed_top", this.#f), ":redraw" in t && this.#I > 0) {
|
|
21878
21872
|
const r = [
|
|
21879
21873
|
this.#i.innerHTML.replaceAll(/(animation-delay: )\d+ms/g, "$10ms"),
|
|
21880
21874
|
`<span class='sn_ch' data-add='{"ch_in_style":"default"}'> </span>`
|
|
@@ -21893,7 +21887,7 @@ class TxtStage extends Container {
|
|
|
21893
21887
|
}
|
|
21894
21888
|
cvsResize() {
|
|
21895
21889
|
const t = this.#i.style, e = this.sys.cvsScale;
|
|
21896
|
-
t.left = `${this.sys.ofsLeft4elm + this.#v * e}px`, t.top = `${this.sys.ofsTop4elm + this.spLay.position.y * e}px`, t.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * e}, ${this.spLay.scale.y * e})`, this.#
|
|
21890
|
+
t.left = `${this.sys.ofsLeft4elm + this.#v * e}px`, t.top = `${this.sys.ofsTop4elm + this.spLay.position.y * e}px`, t.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * e}, ${this.spLay.scale.y * e})`, this.#h.cvsResize(), this.#p.cvsResize();
|
|
21897
21891
|
}
|
|
21898
21892
|
#v = 0;
|
|
21899
21893
|
#u = !1;
|
|
@@ -22416,14 +22410,14 @@ class TxtStage extends Container {
|
|
|
22416
22410
|
reNew() {
|
|
22417
22411
|
this.#k();
|
|
22418
22412
|
const t = new TxtStage(this.spLay, () => this.canFocus(), this.sys);
|
|
22419
|
-
return t.#s = this.#s, t.#i.style.cssText = this.#i.style.cssText, t.#v = this.#v, t.name = this.name, t.#d(), t.#
|
|
22413
|
+
return t.#s = this.#s, t.#i.style.cssText = this.#i.style.cssText, t.#v = this.#v, t.name = this.name, t.#d(), t.#h.sethArg(this.#h.gethArg()), t.#y = this.#y, t.#R = this.#R, t.#X = this.#X, t.#c = this.#c, t.#g = this.#g, t.#f = this.#f, this.destroy(), t;
|
|
22420
22414
|
}
|
|
22421
22415
|
record() {
|
|
22422
22416
|
return {
|
|
22423
22417
|
infTL: this.#s,
|
|
22424
22418
|
cssText: this.#i.style.cssText,
|
|
22425
22419
|
left: this.#v,
|
|
22426
|
-
idc_hArg: this.#
|
|
22420
|
+
idc_hArg: this.#h.gethArg(),
|
|
22427
22421
|
ch_filter: this.#y,
|
|
22428
22422
|
fi_easing: this.#R,
|
|
22429
22423
|
fo_easing: this.#X,
|
|
@@ -22433,7 +22427,7 @@ class TxtStage extends Container {
|
|
|
22433
22427
|
};
|
|
22434
22428
|
}
|
|
22435
22429
|
playback(t) {
|
|
22436
|
-
this.#s = t.infTL, this.position.set(this.#s.pad_left, this.#s.pad_top), this.#i.style.cssText = t.cssText, this.#v = t.left, this.#d(), this.#
|
|
22430
|
+
this.#s = t.infTL, this.position.set(this.#s.pad_left, this.#s.pad_top), this.#i.style.cssText = t.cssText, this.#v = t.left, this.#d(), this.#h.sethArg(t.idc_hArg), this.#y = t.ch_filter, this.#R = t.fi_easing, this.#X = t.fo_easing, this.#c = t.break_fixed ?? !1, this.#g = t.break_fixed_left ?? 0, this.#f = t.break_fixed_top ?? 0;
|
|
22437
22431
|
}
|
|
22438
22432
|
#M = void 0;
|
|
22439
22433
|
snapshot(t, e) {
|
|
@@ -22450,12 +22444,12 @@ class TxtStage extends Container {
|
|
|
22450
22444
|
this.#M && (this.#n.removeChild(this.#M), this.#M = void 0);
|
|
22451
22445
|
}
|
|
22452
22446
|
makeDesignCast(t) {
|
|
22453
|
-
t(this.#
|
|
22454
|
-
const e = this.#
|
|
22447
|
+
t(this.#h);
|
|
22448
|
+
const e = this.#h.gethArg();
|
|
22455
22449
|
this.#p.sethArg({ ...e, ":id_dc": e[":id_tag"] + "_pad" }), t(this.#p);
|
|
22456
22450
|
}
|
|
22457
22451
|
showDesignCast() {
|
|
22458
|
-
this.#
|
|
22452
|
+
this.#h.visible = !0, this.#p.visible = !0;
|
|
22459
22453
|
}
|
|
22460
22454
|
dump() {
|
|
22461
22455
|
const t = [], e = this.#i.style, r = e.length;
|
|
@@ -22577,7 +22571,7 @@ class Button extends Container {
|
|
|
22577
22571
|
b_pic: "",
|
|
22578
22572
|
width: 0,
|
|
22579
22573
|
height: 0
|
|
22580
|
-
}, this.getBtnBounds = () => (this.#r.x = this.#n.x, this.#r.y = this.#n.y, this.#r), this.#n.enabled && e.button(this.hArg, this, () => this.normal(), () => this.#
|
|
22574
|
+
}, this.getBtnBounds = () => (this.#r.x = this.#n.x, this.#r.y = this.#n.y, this.#r), this.#n.enabled && e.button(this.hArg, this, () => this.normal(), () => this.#l(), () => this.#h()), t.pic) {
|
|
22581
22575
|
this.#n.type = "pic", this.#i = new PicBtnDesignCast(this, t), GrpLayer.csv2Sprites(
|
|
22582
22576
|
t.pic,
|
|
22583
22577
|
this,
|
|
@@ -22648,7 +22642,7 @@ class Button extends Container {
|
|
|
22648
22642
|
}
|
|
22649
22643
|
else
|
|
22650
22644
|
H.dropShadow = !1;
|
|
22651
|
-
this.normal = () => B.style = D, this.#
|
|
22645
|
+
this.normal = () => B.style = D, this.#l = () => N() ? (B.style = U, !0) : !1, this.#h = () => B.style = H, $ || r();
|
|
22652
22646
|
}
|
|
22653
22647
|
static fontFamily = "'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif";
|
|
22654
22648
|
static #t = (t, e) => {
|
|
@@ -22694,13 +22688,13 @@ class Button extends Container {
|
|
|
22694
22688
|
}
|
|
22695
22689
|
normal = () => {
|
|
22696
22690
|
};
|
|
22697
|
-
#
|
|
22698
|
-
#
|
|
22691
|
+
#l = () => !1;
|
|
22692
|
+
#h = () => {
|
|
22699
22693
|
};
|
|
22700
22694
|
#p(t) {
|
|
22701
22695
|
this.#n.alpha = t.alpha = argChk_Num(this.hArg, "alpha", t.alpha), this.#i.setSp(t);
|
|
22702
22696
|
const e = t.width / 3, r = this.#n.enabled ? e : t.width, N = t.height, k = t.texture.baseTexture, D = new Texture(k, new Rectangle(0, 0, e, N)), B = new Texture(k, new Rectangle(e, 0, e, N)), $ = new Texture(k, new Rectangle(e * 2, 0, e, N)), U = () => t.texture = D;
|
|
22703
|
-
this.#n.enabled && U(), this.normal = U, this.#
|
|
22697
|
+
this.#n.enabled && U(), this.normal = U, this.#l = () => this.canFocus() ? (t.texture = $, !0) : !1, this.#h = () => t.texture = B, "width" in this.hArg ? (this.#n.width = uint(this.hArg.width), this.scale.x *= this.#n.width / r) : this.#n.width = r, "height" in this.hArg ? (this.#n.height = uint(this.hArg.height), this.scale.y *= this.#n.height / N) : this.#n.height = N, t.name = JSON.stringify(this.#n), Button.#e(this, t, r, N);
|
|
22704
22698
|
}
|
|
22705
22699
|
}
|
|
22706
22700
|
class TxtLayer extends Layer {
|
|
@@ -22788,11 +22782,11 @@ class TxtLayer extends Layer {
|
|
|
22788
22782
|
}
|
|
22789
22783
|
`), !1;
|
|
22790
22784
|
}
|
|
22791
|
-
static #h;
|
|
22792
22785
|
static #l;
|
|
22786
|
+
static #h;
|
|
22793
22787
|
static #p;
|
|
22794
22788
|
static setEvtMng(t, e, r) {
|
|
22795
|
-
TxtLayer.#
|
|
22789
|
+
TxtLayer.#l = t, TxtLayer.#h = e, TxtLayer.#p = r, TxtStage.setEvtMng(e);
|
|
22796
22790
|
}
|
|
22797
22791
|
// 文字ごとのウェイト
|
|
22798
22792
|
static #s = !1;
|
|
@@ -22886,7 +22880,7 @@ class TxtLayer extends Layer {
|
|
|
22886
22880
|
for (const e of this.#T.children)
|
|
22887
22881
|
e.alpha = this.spLay.alpha;
|
|
22888
22882
|
return this.#I(t), this.#B(t), this.#P(t, (e) => {
|
|
22889
|
-
e && TxtLayer.#
|
|
22883
|
+
e && TxtLayer.#l.resume();
|
|
22890
22884
|
});
|
|
22891
22885
|
}
|
|
22892
22886
|
#I(t) {
|
|
@@ -23048,7 +23042,7 @@ class TxtLayer extends Layer {
|
|
|
23048
23042
|
this.#Y(), this.#k ? (this.isCur && TxtLayer.#i.recText(
|
|
23049
23043
|
this.#U.join("").replace(/^<ruby> <rt> <\/rt><\/ruby>(<br\/>)+/, "").replaceAll(/style='(anim\S+ \S+?;\s*)+/g, "style='").replaceAll(/( style=''| data-(add|arg|cmd)='.+?'|\n+|\t+)/g, "").replaceAll(/class='sn_ch .+?'/g, "class='sn_ch'").replaceAll("display: none;", "").replaceAll("class='offrec'", "style='display: none;'")
|
|
23050
23044
|
// 囲んだ領域は履歴で非表示
|
|
23051
|
-
), this.#a.goTxt(this.#U, this.#W === 0), this.#k = !1, this.#W = 0) : this.isCur && TxtLayer.#
|
|
23045
|
+
), this.#a.goTxt(this.#U, this.#W === 0), this.#k = !1, this.#W = 0) : this.isCur && TxtLayer.#h.noticeCompTxt();
|
|
23052
23046
|
return;
|
|
23053
23047
|
case "add":
|
|
23054
23048
|
{
|
|
@@ -23133,7 +23127,7 @@ text-combine-upright: all;
|
|
|
23133
23127
|
#D(t, e, r = `
|
|
23134
23128
|
`) {
|
|
23135
23129
|
const N = this.#E ? e ?? this.#A.at(0)?.o.wait ?? (TxtLayer.#s ? TxtLayer.#c[r.at(0) ?? ""] ?? 0 : LayerMng.msecChWait) : 0;
|
|
23136
|
-
TxtLayer.#
|
|
23130
|
+
TxtLayer.#h.isSkipping() ? this.#W = 0 : t && this.#E && (this.#W += Number(N));
|
|
23137
23131
|
const k = `data-add='{"ch_in_style":"${this.#S}", "ch_out_style":"${this.#N}"}'`;
|
|
23138
23132
|
return {
|
|
23139
23133
|
cl: ` class='sn_ch${N > 0 ? ` sn_ch_in_${this.#S}` : ""}'`,
|
|
@@ -23188,7 +23182,7 @@ text-combine-upright: all;
|
|
|
23188
23182
|
}
|
|
23189
23183
|
addButton = (t) => new Promise((e) => {
|
|
23190
23184
|
t.key = `btn=[${this.#T.children.length}] ` + this.name_, t[":id_tag"] = t.key.slice(0, -7), argChk_Boolean(t, "hint_tate", this.#a.tategaki);
|
|
23191
|
-
const r = new Button(t, TxtLayer.#
|
|
23185
|
+
const r = new Button(t, TxtLayer.#h, () => e(), () => this.canFocus());
|
|
23192
23186
|
r.name = JSON.stringify(t).replaceAll('"', "'"), this.#T.addChild(r);
|
|
23193
23187
|
});
|
|
23194
23188
|
canFocus() {
|
|
@@ -23252,7 +23246,7 @@ text-combine-upright: all;
|
|
|
23252
23246
|
}
|
|
23253
23247
|
class FrameMng {
|
|
23254
23248
|
constructor(t, e, r, N, k, D) {
|
|
23255
|
-
this.cfg = t, this.appPixi = r, this.val = N, this.main = k, this.sys = D, e.add_frame = (B) => this.#r(B), e.let_frame = (B) => this.#o(B), e.set_frame = (B) => this.#
|
|
23249
|
+
this.cfg = t, this.appPixi = r, this.val = N, this.main = k, this.sys = D, e.add_frame = (B) => this.#r(B), e.let_frame = (B) => this.#o(B), e.set_frame = (B) => this.#l(B), e.frame = (B) => this.#p(B), e.tsy_frame = (B) => this.#s(B);
|
|
23256
23250
|
}
|
|
23257
23251
|
#t;
|
|
23258
23252
|
setEvtMng(t) {
|
|
@@ -23340,7 +23334,7 @@ class FrameMng {
|
|
|
23340
23334
|
), !1;
|
|
23341
23335
|
}
|
|
23342
23336
|
// フレーム変数に設定
|
|
23343
|
-
#
|
|
23337
|
+
#l(t) {
|
|
23344
23338
|
const { id: e, var_name: r, text: N } = t;
|
|
23345
23339
|
if (!e)
|
|
23346
23340
|
throw "idは必須です";
|
|
@@ -23359,7 +23353,7 @@ class FrameMng {
|
|
|
23359
23353
|
return B[r] = N, !1;
|
|
23360
23354
|
}
|
|
23361
23355
|
// フレームに設定
|
|
23362
|
-
#
|
|
23356
|
+
#h = 1;
|
|
23363
23357
|
#p(t) {
|
|
23364
23358
|
const { id: e } = t;
|
|
23365
23359
|
if (!e)
|
|
@@ -23371,7 +23365,7 @@ class FrameMng {
|
|
|
23371
23365
|
if (!this.val.getVal("tmp:" + N))
|
|
23372
23366
|
throw `frame【${e}】が読み込まれていません`;
|
|
23373
23367
|
const k = r.style;
|
|
23374
|
-
if (argChk_Boolean(t, "float", !1) ? k.zIndex = `${++this.#
|
|
23368
|
+
if (argChk_Boolean(t, "float", !1) ? k.zIndex = `${++this.#h}` : "index" in t ? k.zIndex = `${argChk_Num(t, "index", 0)}` : t.dive && (k.zIndex = `-${++this.#h}`), "alpha" in t) {
|
|
23375
23369
|
const B = k.opacity = String(t.alpha);
|
|
23376
23370
|
this.val.setVal_Nochk("tmp", N + ".alpha", B);
|
|
23377
23371
|
}
|
|
@@ -23472,7 +23466,7 @@ class LayerMng {
|
|
|
23472
23466
|
q("", N.getVal("tmp:sn.button.fontFamily", Button.fontFamily)), N.defValTrg("tmp:sn.button.fontFamily", q), N.defTmp("const.sn.log.json", () => JSON.stringify(
|
|
23473
23467
|
(this.#F.text = this.#F.text?.replaceAll("</span><span class='sn_ch'>", "") ?? "") ? [...this.#H, this.#F] : this.#H
|
|
23474
23468
|
)), N.defTmp("const.sn.last_page_text", () => this.currentTxtlayFore?.pageText ?? ""), N.defTmp("const.sn.last_page_plain_text", () => this.currentTxtlayFore?.pagePlainText ?? ""), CmnLib.isDbg && (DesignCast.init(r, B, D, H, U, t, this.#a), this.cvsResizeDesign = () => DesignCast.cvsResizeDesign(), B.addHook((W, Y) => {
|
|
23475
|
-
this.#
|
|
23469
|
+
this.#l[W]?.(W, Y) && delete this.#l[W];
|
|
23476
23470
|
}));
|
|
23477
23471
|
}
|
|
23478
23472
|
#t;
|
|
@@ -23483,7 +23477,7 @@ class LayerMng {
|
|
|
23483
23477
|
#o = new EventListenerCtn();
|
|
23484
23478
|
cvsResizeDesign() {
|
|
23485
23479
|
}
|
|
23486
|
-
#
|
|
23480
|
+
#l = {
|
|
23487
23481
|
attach: (t) => !1,
|
|
23488
23482
|
continue: (t) => !1,
|
|
23489
23483
|
disconnect: (t) => !1,
|
|
@@ -23497,11 +23491,11 @@ class LayerMng {
|
|
|
23497
23491
|
_replaceToken: (t, e) => !1,
|
|
23498
23492
|
_selectNode: (t, e) => (this.#s(e.node), !1)
|
|
23499
23493
|
};
|
|
23500
|
-
#
|
|
23494
|
+
#h = "";
|
|
23501
23495
|
#p = "";
|
|
23502
23496
|
#s(t) {
|
|
23503
|
-
[this.#
|
|
23504
|
-
const e = this.#a[this.#
|
|
23497
|
+
[this.#h, this.#p = ""] = t.split("/");
|
|
23498
|
+
const e = this.#a[this.#h];
|
|
23505
23499
|
e && (this.#p ? e.fore.showDesignCastChildren() : e.fore.showDesignCast());
|
|
23506
23500
|
}
|
|
23507
23501
|
getFrmDisabled = (t) => this.#i.getFrmDisabled(t);
|
|
@@ -23513,7 +23507,7 @@ class LayerMng {
|
|
|
23513
23507
|
}
|
|
23514
23508
|
#g;
|
|
23515
23509
|
setEvtMng(t) {
|
|
23516
|
-
this.#g = t, this.#i.setEvtMng(t), GrpLayer.setEvtMng(t), CmnTween.init(t, this.
|
|
23510
|
+
this.#g = t, this.#i.setEvtMng(t), GrpLayer.setEvtMng(t), CmnTween.init(t, this.appPixi);
|
|
23517
23511
|
}
|
|
23518
23512
|
before_destroy() {
|
|
23519
23513
|
for (const t of Object.values(this.#a))
|
|
@@ -24210,14 +24204,16 @@ function cancelAutoSkip() {
|
|
|
24210
24204
|
class WaitLimitedEventer {
|
|
24211
24205
|
#t = new EventListenerCtn();
|
|
24212
24206
|
constructor(t, e) {
|
|
24213
|
-
|
|
24214
|
-
|
|
24215
|
-
|
|
24216
|
-
|
|
24217
|
-
|
|
24218
|
-
|
|
24219
|
-
|
|
24220
|
-
|
|
24207
|
+
if (skip_enabled && !skip_all && !scrItr.isNextKidoku && cancelAutoSkip(), argChk_Boolean(t, "canskip", !0)) {
|
|
24208
|
+
const r = () => {
|
|
24209
|
+
this.destroy(), cancelAutoSkip(), e();
|
|
24210
|
+
};
|
|
24211
|
+
this.#t.add(window, "pointerdown", (N) => {
|
|
24212
|
+
N.stopPropagation(), r();
|
|
24213
|
+
}), this.#t.add(window, "keydown", (N) => {
|
|
24214
|
+
N.isComposing || (N.stopPropagation(), r());
|
|
24215
|
+
}), procWheel4wle(this.#t, r);
|
|
24216
|
+
}
|
|
24221
24217
|
}
|
|
24222
24218
|
destroy() {
|
|
24223
24219
|
this.#t.clear();
|
|
@@ -24268,12 +24264,12 @@ class ReadState {
|
|
|
24268
24264
|
waitclick = (t) => Rs_WaitClick.go(t);
|
|
24269
24265
|
waitTxtAndTimer(t, e) {
|
|
24270
24266
|
return ReadState.#t.once(ReadState.#e, () => {
|
|
24271
|
-
if (this.
|
|
24267
|
+
if (this.#r.destroy(), t === 0) {
|
|
24272
24268
|
this.onFinish();
|
|
24273
24269
|
return;
|
|
24274
24270
|
}
|
|
24275
24271
|
const r = new Tween({}).to({}, t).onComplete(() => {
|
|
24276
|
-
this.
|
|
24272
|
+
this.#r.destroy(), remove$6(r), this.onFinish();
|
|
24277
24273
|
}).start();
|
|
24278
24274
|
this.waitLimitedEvent(e, () => {
|
|
24279
24275
|
r.stop(), remove$6(r), this.onUserAct();
|
|
@@ -24308,12 +24304,12 @@ class ReadState {
|
|
|
24308
24304
|
}
|
|
24309
24305
|
}
|
|
24310
24306
|
// 予約イベントの発生待ちしない waitRsvEvent()
|
|
24311
|
-
// 使う場合、外部要因でキャンセルした際は
|
|
24307
|
+
// 使う場合、外部要因でキャンセルした際は breakLimitedEvent() で後始末を忘れないこと
|
|
24312
24308
|
waitLimitedEvent(t, e) {
|
|
24313
24309
|
return this.#r.destroy(), this.#r = new WaitLimitedEventer(t, e), !0;
|
|
24314
24310
|
}
|
|
24315
|
-
|
|
24316
|
-
this.#r.destroy();
|
|
24311
|
+
breakLimitedEvent() {
|
|
24312
|
+
this.#r.destroy(), main$2.resume();
|
|
24317
24313
|
}
|
|
24318
24314
|
#r = new WaitLimitedEventer({}, () => {
|
|
24319
24315
|
});
|
|
@@ -25572,7 +25568,7 @@ class EventMng {
|
|
|
25572
25568
|
this.fire("middleclick", Y);
|
|
25573
25569
|
break;
|
|
25574
25570
|
}
|
|
25575
|
-
}), this.#t.add(window, "keydown", (Y) => this.#o(Y)), this.#t.add(Main.cvs, "contextmenu", (Y) => this.#
|
|
25571
|
+
}), this.#t.add(window, "keydown", (Y) => this.#o(Y)), this.#t.add(Main.cvs, "contextmenu", (Y) => this.#l(Y));
|
|
25576
25572
|
const H = () => D.setVal_Nochk("tmp", "const.sn.navigator.language", navigator.language);
|
|
25577
25573
|
this.#t.add(window, "languagechange", (Y) => {
|
|
25578
25574
|
H(), this.fire("sn:chgNavLang", Y), clearTextureCache();
|
|
@@ -25585,7 +25581,7 @@ class EventMng {
|
|
|
25585
25581
|
});
|
|
25586
25582
|
let X = (Y, K) => {
|
|
25587
25583
|
};
|
|
25588
|
-
"WheelEvent" in window && (this.#t.add(Main.cvs, "wheel", (Y) => this.#
|
|
25584
|
+
"WheelEvent" in window && (this.#t.add(Main.cvs, "wheel", (Y) => this.#h(Y), { passive: !0 }), this.#n = (Y) => this.#t.add(Y, "wheel", (K) => this.#h(K), { passive: !0 }), X = (Y, K) => Y.add(Main.cvs, "wheel", (Z) => {
|
|
25589
25585
|
Z.isComposing || Z.deltaY <= 0 || (Z.stopPropagation(), K());
|
|
25590
25586
|
})), ReadState.init((Y) => this.#i = Y, N, D, k, $, B, e, this.#r, X, this.#f, t), CmnLib.debugLog && (this.#e.on("gamepad:connected", (Y) => console.log(`👺<'gamepad:connected' index:${Y.detail.index} id:${Y.detail.gamepad.id}`)), this.#e.on("gamepad:disconnected", (Y) => console.log(`👺<'gamepad:disconnected' index:${Y.detail.index} id:${Y.detail.gamepad.id}`)));
|
|
25591
25587
|
const q = [
|
|
@@ -25630,7 +25626,7 @@ class EventMng {
|
|
|
25630
25626
|
#r = new FocusMng();
|
|
25631
25627
|
#i;
|
|
25632
25628
|
resvFlameEvent(t) {
|
|
25633
|
-
this.#t.add(t, "keydown", (e) => this.#o(e)), this.#t.add(t, "contextmenu", (e) => this.#
|
|
25629
|
+
this.#t.add(t, "keydown", (e) => this.#o(e)), this.#t.add(t, "contextmenu", (e) => this.#l(e)), this.#n(t);
|
|
25634
25630
|
}
|
|
25635
25631
|
#n = (t) => {
|
|
25636
25632
|
};
|
|
@@ -25641,11 +25637,11 @@ class EventMng {
|
|
|
25641
25637
|
const e = (t.altKey ? t.key === "Alt" ? "" : "alt+" : "") + (t.ctrlKey ? t.key === "Control" ? "" : "ctrl+" : "") + (t.shiftKey ? t.key === "Shift" ? "" : "shift+" : "") + t.key;
|
|
25642
25638
|
this.fire(e, t);
|
|
25643
25639
|
}
|
|
25644
|
-
#
|
|
25640
|
+
#l(t) {
|
|
25645
25641
|
const e = (t.altKey ? t.key === "Alt" ? "" : "alt+" : "") + (t.ctrlKey ? t.key === "Control" ? "" : "ctrl+" : "") + (t.shiftKey ? t.key === "Shift" ? "" : "shift+" : "") + "rightclick";
|
|
25646
25642
|
this.fire(e, t), t.preventDefault();
|
|
25647
25643
|
}
|
|
25648
|
-
#
|
|
25644
|
+
#h(t) {
|
|
25649
25645
|
if (t.isComposing)
|
|
25650
25646
|
return;
|
|
25651
25647
|
if (this.#p) {
|
|
@@ -25861,10 +25857,10 @@ class EventMng {
|
|
|
25861
25857
|
return !1;
|
|
25862
25858
|
}
|
|
25863
25859
|
// テキスト表示待ちと処理終了待ち(予約イベント受付しない)
|
|
25864
|
-
// waitEvent を使用する場合、通常 break 時は
|
|
25860
|
+
// waitEvent を使用する場合、通常 break 時は breakLimitedEvent() すること
|
|
25865
25861
|
waitEvent = (t, e) => this.#i.waitEvent(t, e);
|
|
25866
|
-
|
|
25867
|
-
this.#i.
|
|
25862
|
+
breakLimitedEvent() {
|
|
25863
|
+
this.#i.breakLimitedEvent();
|
|
25868
25864
|
}
|
|
25869
25865
|
noticeCompTxt() {
|
|
25870
25866
|
ReadState.noticeCompTxt();
|
|
@@ -25901,15 +25897,15 @@ class ScriptIterator {
|
|
|
25901
25897
|
e.endif = () => this.#R(), e.if = (z) => this.#X(z), e.call = (z) => this.#k(z), e.jump = (z) => this.#q(z), e.pop_stack = (z) => this.#D(z), e.return = (z) => this.#W(z), e.bracket2macro = (z) => this.#lt(z), e.char2macro = (z) => this.#ut(z), e.endmacro = (z) => this.#W(z), e.macro = (z) => this.#pt(z), e.load = (z) => this.#vt(z), e.reload_script = (z) => this.#mt(z), e.record_place = () => this.#gt(), e.save = (z) => this.#yt(z), t.oCfg.debug.token && (this.#F = (z) => console.log(`🌱 トークン fn:${this.#e} idx:${this.#r} ln:${this.#i} token【${z}】`)), N.defTmp("const.sn.aIfStk.length", () => this.#w.length), N.defTmp("const.sn.vctCallStk.length", () => this.#n.length);
|
|
25902
25898
|
const H = t.oCfg.init.escape;
|
|
25903
25899
|
if (this.#o.setEscape(H), RubySpliter.setEscape(H), CmnLib.isDbg) {
|
|
25904
|
-
U.addHook((V, X) => this.#
|
|
25900
|
+
U.addHook((V, X) => this.#h[V]?.(X)), this.isBreak = this.#y;
|
|
25905
25901
|
const z = this.analyzeInit;
|
|
25906
25902
|
this.analyzeInit = () => {
|
|
25907
25903
|
this.analyzeInit = () => {
|
|
25908
25904
|
}, this.sys.send2Dbg("hi", {});
|
|
25909
|
-
}, this.#
|
|
25905
|
+
}, this.#h.auth = (V) => {
|
|
25910
25906
|
const X = V.hBreakpoint.hFn2hLineBP;
|
|
25911
25907
|
for (const [q, W] of Object.entries(X))
|
|
25912
|
-
this.#
|
|
25908
|
+
this.#l(q, W);
|
|
25913
25909
|
ScriptIterator.#a = {};
|
|
25914
25910
|
for (const q of V.hBreakpoint.aFunc)
|
|
25915
25911
|
ScriptIterator.#a[q.name] = 1;
|
|
@@ -25958,21 +25954,21 @@ class ScriptIterator {
|
|
|
25958
25954
|
#o = new Grammar();
|
|
25959
25955
|
noticeWait = () => {
|
|
25960
25956
|
};
|
|
25961
|
-
#
|
|
25957
|
+
#l(t, e) {
|
|
25962
25958
|
ScriptIterator.#b[this.#c(t)] = e;
|
|
25963
25959
|
}
|
|
25964
25960
|
destroy() {
|
|
25965
25961
|
this.isBreak = () => !1;
|
|
25966
25962
|
}
|
|
25967
|
-
#
|
|
25963
|
+
#h = {
|
|
25968
25964
|
//auth: // constructorで
|
|
25969
25965
|
//launch: // ここでは冒頭停止に間に合わないのでanalyzeInit()で
|
|
25970
25966
|
disconnect: () => {
|
|
25971
|
-
ScriptIterator.#b = {}, ScriptIterator.#a = {}, this.isBreak = () => !1, this.#
|
|
25967
|
+
ScriptIterator.#b = {}, ScriptIterator.#a = {}, this.isBreak = () => !1, this.#h.continue({}), this.#m = 0;
|
|
25972
25968
|
},
|
|
25973
25969
|
restart: () => this.isBreak = () => !1,
|
|
25974
25970
|
// ブレークポイント登録
|
|
25975
|
-
add_break: (t) => this.#
|
|
25971
|
+
add_break: (t) => this.#l(t.fn, t.o),
|
|
25976
25972
|
data_break: (t) => {
|
|
25977
25973
|
this.#m === 0 && (this.#m = 1, this.main.setLoop(!1, `変数 ${t.dataId}【${t.old_v}】→【${t.new_v}】データブレーク`), this.sys.callHook("stopOnDataBreakpoint", {}), this.sys.send2Dbg("stopOnDataBreakpoint", {}));
|
|
25978
25974
|
},
|
|
@@ -26017,7 +26013,7 @@ class ScriptIterator {
|
|
|
26017
26013
|
if (this.#u())
|
|
26018
26014
|
return;
|
|
26019
26015
|
const e = this.#t.aToken[this.#r - this.#v];
|
|
26020
|
-
this.#ct.test(e) ? this.#f(!1) : (this.sys.callHook("stopOnStep", {}), this.#
|
|
26016
|
+
this.#ct.test(e) ? this.#f(!1) : (this.sys.callHook("stopOnStep", {}), this.#h.stepin(t));
|
|
26021
26017
|
}
|
|
26022
26018
|
#f(t) {
|
|
26023
26019
|
this.sys.callHook(`stopOnStep${t ? "Out" : ""}`, {}), this.#d = this.#n.length - (t ? 1 : 0), this.#r -= this.#v, this.#m = t ? 7 : 6, this.main.setLoop(!0), this.main.resume();
|
|
@@ -26718,8 +26714,8 @@ class Main {
|
|
|
26718
26714
|
#i;
|
|
26719
26715
|
#n;
|
|
26720
26716
|
#o;
|
|
26721
|
-
#h;
|
|
26722
26717
|
#l;
|
|
26718
|
+
#h;
|
|
26723
26719
|
#p;
|
|
26724
26720
|
#s;
|
|
26725
26721
|
#c = () => {
|
|
@@ -26741,7 +26737,7 @@ class Main {
|
|
|
26741
26737
|
resolution: globalThis.devicePixelRatio ?? 1
|
|
26742
26738
|
// 理想
|
|
26743
26739
|
}, r = document.getElementById(this.#d);
|
|
26744
|
-
r && (this.#_ = r.cloneNode(!0), this.#_.id = this.#d, e.view = r), this.#e = new Application(e), Main.cvs = this.#e.view, r || (document.body.appendChild(Main.cvs), Main.cvs.id = this.#d), this.#i = new Variable(this.#t, this.#r), this.#n = new PropParser(this.#i, this.#t.oCfg.init.escape ?? "\\"), await Promise.allSettled(this.sys.init(this.#r, this.#e, this.#i, this)), this.#r.title({ text: this.#t.oCfg.book.title || "SKYNovel" }), this.#o = new SoundMng(this.#t, this.#r, this.#i, this, this.sys), this.#
|
|
26740
|
+
r && (this.#_ = r.cloneNode(!0), this.#_.id = this.#d, e.view = r), this.#e = new Application(e), Main.cvs = this.#e.view, r || (document.body.appendChild(Main.cvs), Main.cvs.id = this.#d), this.#i = new Variable(this.#t, this.#r), this.#n = new PropParser(this.#i, this.#t.oCfg.init.escape ?? "\\"), await Promise.allSettled(this.sys.init(this.#r, this.#e, this.#i, this)), this.#r.title({ text: this.#t.oCfg.book.title || "SKYNovel" }), this.#o = new SoundMng(this.#t, this.#r, this.#i, this, this.sys), this.#l = new ScriptIterator(this.#t, this.#r, this, this.#i, this.#g, () => this.#m(), this.#n, this.#o, this.sys), this.#h = new DebugMng(this.sys, this.#r, this.#l), this.#p = new LayerMng(this.#t, this.#r, this.#e, this.#i, this, this.#l, this.sys, this.#o, this.#g, this.#n), this.#s = new EventMng(this.#t, this.#r, this.#e, this, this.#p, this.#i, this.#o, this.#l, this.sys), this.#e.ticker.add(this.#u), this.resumeByJumpOrCall({ fn: "main" }), this.#f = !0;
|
|
26745
26741
|
}
|
|
26746
26742
|
#u = () => this.#c();
|
|
26747
26743
|
// thisの扱いによりメソッド代入はダメ
|
|
@@ -26753,19 +26749,19 @@ class Main {
|
|
|
26753
26749
|
#b = (t = this.#m) => {
|
|
26754
26750
|
this.#y || (this.#p.clearBreak(), this.#c = t, this.resume = (e = this.#m) => {
|
|
26755
26751
|
this.#c = e;
|
|
26756
|
-
}, this.#
|
|
26752
|
+
}, this.#l.noticeBreak(!1));
|
|
26757
26753
|
};
|
|
26758
26754
|
resume = this.#b;
|
|
26759
26755
|
resumeByJumpOrCall(t) {
|
|
26760
26756
|
if (t.url) {
|
|
26761
|
-
this.#r.navigate_to(t), this.#
|
|
26757
|
+
this.#r.navigate_to(t), this.#l.jumpJustBefore();
|
|
26762
26758
|
return;
|
|
26763
26759
|
}
|
|
26764
|
-
this.#i.setVal_Nochk("tmp", "sn.eventArg", t.arg ?? ""), this.#i.setVal_Nochk("tmp", "sn.eventLabel", t.label ?? ""), argChk_Boolean(t, "call", !1) ? (this.#
|
|
26760
|
+
this.#i.setVal_Nochk("tmp", "sn.eventArg", t.arg ?? ""), this.#i.setVal_Nochk("tmp", "sn.eventLabel", t.label ?? ""), argChk_Boolean(t, "call", !1) ? (this.#l.subIdxToken(), this.resume(() => this.#r.call(t))) : (this.#r.clear_event({}), this.resume(() => this.#r.jump(t)));
|
|
26765
26761
|
}
|
|
26766
26762
|
stop = () => {
|
|
26767
26763
|
this.#c = () => {
|
|
26768
|
-
}, this.resume = this.#b, this.#
|
|
26764
|
+
}, this.resume = this.#b, this.#l.noticeBreak(!0);
|
|
26769
26765
|
};
|
|
26770
26766
|
setLoop(t, e = "") {
|
|
26771
26767
|
(this.#a = t) ? this.resume() : this.stop(), this.sys.setTitleInfo(e ? ` -- ${e}中` : "");
|
|
@@ -26773,21 +26769,21 @@ class Main {
|
|
|
26773
26769
|
#a = !0;
|
|
26774
26770
|
#m() {
|
|
26775
26771
|
for (; this.#a; ) {
|
|
26776
|
-
let t = this.#
|
|
26772
|
+
let t = this.#l.nextToken();
|
|
26777
26773
|
if (!t)
|
|
26778
26774
|
break;
|
|
26779
26775
|
const e = t.charCodeAt(0);
|
|
26780
26776
|
if (e !== 9) {
|
|
26781
26777
|
if (e === 10) {
|
|
26782
|
-
this.#
|
|
26778
|
+
this.#l.addLineNum(t.length);
|
|
26783
26779
|
continue;
|
|
26784
26780
|
}
|
|
26785
26781
|
if (e === 91) {
|
|
26786
|
-
if (this.#
|
|
26782
|
+
if (this.#l.isBreak(t))
|
|
26787
26783
|
return;
|
|
26788
26784
|
try {
|
|
26789
26785
|
const r = (t.match(/\n/g) ?? []).length;
|
|
26790
|
-
if (r > 0 && this.#
|
|
26786
|
+
if (r > 0 && this.#l.addLineNum(r), this.#l.タグ解析(t)) {
|
|
26791
26787
|
this.stop();
|
|
26792
26788
|
break;
|
|
26793
26789
|
}
|
|
@@ -26800,7 +26796,7 @@ class Main {
|
|
|
26800
26796
|
if (e === 38)
|
|
26801
26797
|
try {
|
|
26802
26798
|
if (t.at(-1) !== "&") {
|
|
26803
|
-
if (this.#
|
|
26799
|
+
if (this.#l.isBreak(t))
|
|
26804
26800
|
return;
|
|
26805
26801
|
const r = splitAmpersand(t.slice(1));
|
|
26806
26802
|
r.name = this.#n.getValAmpersand(r.name), r.text = String(this.#n.parse(r.text)), this.#r.let(r);
|
|
@@ -26838,7 +26834,7 @@ class Main {
|
|
|
26838
26834
|
this.#s.fire(t, e);
|
|
26839
26835
|
}
|
|
26840
26836
|
async destroy(t = 0) {
|
|
26841
|
-
this.#y || (this.#y = !0, this.#f && (this.stop(), this.#a = !1, this.#p.before_destroy(), t > 0 && await new Promise((e) => setTimeout(e, t)), this.#r = {}, this.#s.destroy(), this.#
|
|
26837
|
+
this.#y || (this.#y = !0, this.#f && (this.stop(), this.#a = !1, this.#p.before_destroy(), t > 0 && await new Promise((e) => setTimeout(e, t)), this.#r = {}, this.#s.destroy(), this.#l.destroy(), this.#p.destroy(), this.#h.destroy(), this.#e.ticker.remove(this.#u), this.#_ && this.#e && Main.cvs.parentNode.appendChild(this.#_), clearTextureCache(), this.#e.destroy(!0), this.sys.destroy()));
|
|
26842
26838
|
}
|
|
26843
26839
|
#y = !1;
|
|
26844
26840
|
isDestroyed = () => this.#y;
|
|
@@ -29027,8 +29023,8 @@ class SysBase {
|
|
|
29027
29023
|
#i = 0;
|
|
29028
29024
|
#n = 0;
|
|
29029
29025
|
#o = 1;
|
|
29030
|
-
#h = 0;
|
|
29031
29026
|
#l = 0;
|
|
29027
|
+
#h = 0;
|
|
29032
29028
|
#p = 0;
|
|
29033
29029
|
#s = 0;
|
|
29034
29030
|
get cvsWidth() {
|
|
@@ -29041,10 +29037,10 @@ class SysBase {
|
|
|
29041
29037
|
return this.#o;
|
|
29042
29038
|
}
|
|
29043
29039
|
get ofsLeft4elm() {
|
|
29044
|
-
return this.#
|
|
29040
|
+
return this.#l;
|
|
29045
29041
|
}
|
|
29046
29042
|
get ofsTop4elm() {
|
|
29047
|
-
return this.#
|
|
29043
|
+
return this.#h;
|
|
29048
29044
|
}
|
|
29049
29045
|
get ofsPadLeft_Dom2PIXI() {
|
|
29050
29046
|
return this.#p;
|
|
@@ -29077,7 +29073,7 @@ class SysBase {
|
|
|
29077
29073
|
const D = r.parentElement.style;
|
|
29078
29074
|
N || (D.position = "relative", D.width = `${this.#i}px`, D.height = `${this.#n}px`);
|
|
29079
29075
|
const B = r.style;
|
|
29080
|
-
B.width = D.width, B.height = D.height, N ? (this.#
|
|
29076
|
+
B.width = D.width, B.height = D.height, N ? (this.#l = k.left, this.#h = k.top) : (this.#l = 0, this.#h = 0), this.isFullScr && (this.#l += (t - this.#i) / 2, this.#h += (e - this.#n) / 2);
|
|
29081
29077
|
}
|
|
29082
29078
|
// デバッガ接続
|
|
29083
29079
|
attach_debug(t) {
|