@famibee/skynovel 1.21.0 → 1.22.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,49 @@
1
+ ## [1.22.3](https://github.com/famibee/SKYNovel/compare/v1.22.2...v1.22.3) (2021-12-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * ツールチップ、画面全体の拡大縮小に対応 ([7311ebe](https://github.com/famibee/SKYNovel/commit/7311ebebb7f60f3a510912e3f147584b57f8ef80))
7
+
8
+ - fix: ツールチップ、画面全体の拡大縮小に対応
9
+
10
+
11
+ ## [1.22.2](https://github.com/famibee/SKYNovel/compare/v1.22.1...v1.22.2) (2021-12-09)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * 画像ボタンで、マウスホバー・クリック時の表示変化しない件 ([f30f11c](https://github.com/famibee/SKYNovel/commit/f30f11c3678730ae9e433384a2bf0a05e30e5dd6))
17
+
18
+ - fix: 画像ボタンで、マウスホバー・クリック時の表示変化しない件
19
+
20
+
21
+ ## [1.22.1](https://github.com/famibee/SKYNovel/compare/v1.22.0...v1.22.1) (2021-12-09)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * 画像ボタンで、イベント予約が画像ロード後まで遅延する件 ([e7f9f97](https://github.com/famibee/SKYNovel/commit/e7f9f97f113d967328282684df57d8159366c7aa))
27
+
28
+ - fix: 画像ボタンで、イベント予約が画像ロード後まで遅延する件
29
+ - fix: デバッグスイッチ debugLog=true 時にイベント待ちした際、予約済みイベント名をコンソールに表示するように
30
+
31
+
32
+ # [1.22.0](https://github.com/famibee/SKYNovel/compare/v1.21.0...v1.22.0) (2021-12-08)
33
+
34
+
35
+ ### Features
36
+
37
+ * hintをHTML canvas要素で表示するように ([7f840bf](https://github.com/famibee/SKYNovel/commit/7f840bfc95566623f5f794f951f6ec29905577ee))
38
+
39
+ - feat: hintをHTML canvas要素で表示するように
40
+ - feat: hint_color属性でhint文字色を指定可能に('white', '#FF0000')
41
+ - feat: hint_font属性追加、hint文字サイズとフォントを指定する
42
+ - fix: hint_tate属性が無効になっていたのを再サポート
43
+ - fix: hint_tate属性省略時は、文字レイヤの縦書き指定(writing-mode: vertical-rl なら true)をデフォルトとする事を明記
44
+ - fix: 前更新から hint消ししてなかった件
45
+
46
+
1
47
  # [1.21.0](https://github.com/famibee/SKYNovel/compare/v1.20.1...v1.21.0) (2021-12-04)
2
48
 
3
49
 
package/app.js CHANGED
@@ -66840,7 +66840,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
66840
66840
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
66841
66841
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
66842
66842
  };
66843
- var _Button_instances, _a, _Button_procMasume4txt, _Button_procMasume4pic, _Button_rctBtnTxt, _Button_idc, _Button_sp_b_pic, _Button_sp_pic, _Button_loaded_b_pic, _Button_loaded_pic;
66843
+ var _Button_instances, _a, _Button_procMasume4txt, _Button_procMasume4pic, _Button_rctBtnTxt, _Button_idc, _Button_sp_b_pic, _Button_sp_pic, _Button_loaded_b_pic, _Button_normal, _Button_hover, _Button_clicked, _Button_loaded_pic;
66844
66844
  Object.defineProperty(exports, "__esModule", ({ value: true }));
66845
66845
  exports.Button = void 0;
66846
66846
  const pixi_js_1 = __webpack_require__(/*! pixi.js */ "./node_modules/pixi.js/dist/esm/pixi.js");
@@ -66861,6 +66861,9 @@ class Button extends pixi_js_1.Container {
66861
66861
  _Button_idc.set(this, void 0);
66862
66862
  _Button_sp_b_pic.set(this, null);
66863
66863
  _Button_sp_pic.set(this, null);
66864
+ _Button_normal.set(this, () => { });
66865
+ _Button_hover.set(this, () => false);
66866
+ _Button_clicked.set(this, () => { });
66864
66867
  if (CmnLib_1.CmnLib.isDbg) {
66865
66868
  this.makeDesignCast = gdc => gdc(__classPrivateFieldGet(this, _Button_idc, "f"));
66866
66869
  this.cvsResize = () => __classPrivateFieldGet(this, _Button_idc, "f").cvsResize();
@@ -66884,6 +66887,8 @@ class Button extends pixi_js_1.Container {
66884
66887
  if (hArg.pic) {
66885
66888
  oName.type = 'pic';
66886
66889
  __classPrivateFieldSet(this, _Button_idc, new DesignCast_1.PicBtnDesignCast(this, hArg), "f");
66890
+ if (enabled)
66891
+ this.evtMng.button(this.hArg, this, () => __classPrivateFieldGet(this, _Button_normal, "f").call(this), () => __classPrivateFieldGet(this, _Button_hover, "f").call(this), () => __classPrivateFieldGet(this, _Button_clicked, "f").call(this));
66887
66892
  if (!GrpLayer_1.GrpLayer.csv2Sprites(hArg.pic, this, sp => {
66888
66893
  __classPrivateFieldGet(this, _Button_instances, "m", _Button_loaded_pic).call(this, sp, oName);
66889
66894
  __classPrivateFieldGet(this, _Button_rctBtnTxt, "f").width = sp.width * oName.scale_x;
@@ -67033,7 +67038,7 @@ class Button extends pixi_js_1.Container {
67033
67038
  }
67034
67039
  }
67035
67040
  exports.Button = Button;
67036
- _a = Button, _Button_rctBtnTxt = new WeakMap(), _Button_idc = new WeakMap(), _Button_sp_b_pic = new WeakMap(), _Button_sp_pic = new WeakMap(), _Button_instances = new WeakSet(), _Button_loaded_b_pic = function _Button_loaded_b_pic(sp, txt) {
67041
+ _a = Button, _Button_rctBtnTxt = new WeakMap(), _Button_idc = new WeakMap(), _Button_sp_b_pic = new WeakMap(), _Button_sp_pic = new WeakMap(), _Button_normal = new WeakMap(), _Button_hover = new WeakMap(), _Button_clicked = new WeakMap(), _Button_instances = new WeakSet(), _Button_loaded_b_pic = function _Button_loaded_b_pic(sp, txt) {
67037
67042
  __classPrivateFieldSet(this, _Button_sp_b_pic, sp, "f");
67038
67043
  this.setChildIndex(sp, 0);
67039
67044
  sp.alpha = txt.alpha;
@@ -67051,13 +67056,14 @@ _a = Button, _Button_rctBtnTxt = new WeakMap(), _Button_idc = new WeakMap(), _Bu
67051
67056
  const txHover = new pixi_js_1.Texture(tx, new pixi_js_1.Rectangle(w3 * 2, 0, w3, h));
67052
67057
  const normal = () => sp.texture = txNormal;
67053
67058
  normal();
67054
- if (oName.enabled)
67055
- this.evtMng.button(this.hArg, this, normal, () => {
67056
- if (!this.canFocus())
67057
- return false;
67058
- sp.texture = txHover;
67059
- return true;
67060
- }, () => sp.texture = txClicked);
67059
+ __classPrivateFieldSet(this, _Button_normal, normal, "f");
67060
+ __classPrivateFieldSet(this, _Button_hover, () => {
67061
+ if (!this.canFocus())
67062
+ return false;
67063
+ sp.texture = txHover;
67064
+ return true;
67065
+ }, "f");
67066
+ __classPrivateFieldSet(this, _Button_clicked, () => sp.texture = txClicked, "f");
67061
67067
  if ('width' in this.hArg) {
67062
67068
  oName.width = (0, CmnLib_1.uint)(this.hArg.width);
67063
67069
  this.scale.x *= oName.width / w3;
@@ -68469,7 +68475,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
68469
68475
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
68470
68476
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
68471
68477
  };
68472
- var _EventMng_instances, _EventMng_elc, _EventMng_hint, _EventMng_WIDTH_HINT_PIC, _EventMng_hint_txt_w, _EventMng_h_padl, _EventMng_g_hint, _EventMng_gamepad, _EventMng_fcs, _EventMng_resvFlameEvent4Wheel, _EventMng_ev_keydown, _EventMng_ev_contextmenu, _EventMng_ev_wheel, _EventMng_wheeling, _EventMng_extend_wheel, _EventMng_ev_wheel_waitstop, _EventMng_hLocalEvt2Fnc, _EventMng_hGlobalEvt2Fnc, _EventMng_isDbgBreak, _EventMng_isWait, _EventMng_getEvt2Fnc, _EventMng_waitEventBase, _EventMng_firstWait, _EventMng_dispHint, _EventMng_dispHint_masume, _EventMng_procWheel4wle, _EventMng_elcWLE, _EventMng_clear_event, _EventMng_clear_eventer, _EventMng_event, _EventMng_canFocus, _EventMng_getHtmlElmList, _EventMng_goTxt, _EventMng_l, _EventMng_p, _EventMng_fncCancelSkip, _EventMng_set_cancel_skip, _EventMng_unregisterClickEvts, _EventMng_wait, _EventMng_waitclick, _EventMng_hDownKeys;
68478
+ var _EventMng_instances, _EventMng_elc, _EventMng_cvsHint, _EventMng_picHint_w, _EventMng_picHint_h, _EventMng_padHint, _EventMng_grpHint, _EventMng_gamepad, _EventMng_fcs, _EventMng_resvFlameEvent4Wheel, _EventMng_ev_keydown, _EventMng_ev_contextmenu, _EventMng_ev_wheel, _EventMng_wheeling, _EventMng_extend_wheel, _EventMng_ev_wheel_waitstop, _EventMng_hLocalEvt2Fnc, _EventMng_hGlobalEvt2Fnc, _EventMng_isDbgBreak, _EventMng_isWait, _EventMng_getEvt2Fnc, _EventMng_waitEventBase, _EventMng_firstWait, _EventMng_dispHint, _EventMng_dispHint_hArg, _EventMng_dispHint_ctnBtn, _EventMng_dispHint_masume, _EventMng_procWheel4wle, _EventMng_elcWLE, _EventMng_clear_event, _EventMng_clear_eventer, _EventMng_event, _EventMng_canFocus, _EventMng_getHtmlElmList, _EventMng_goTxt, _EventMng_l, _EventMng_p, _EventMng_fncCancelSkip, _EventMng_set_cancel_skip, _EventMng_unregisterClickEvts, _EventMng_set_focus, _EventMng_wait, _EventMng_waitclick, _EventMng_hDownKeys;
68473
68479
  Object.defineProperty(exports, "__esModule", ({ value: true }));
68474
68480
  exports.EventMng = void 0;
68475
68481
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
@@ -68480,6 +68486,7 @@ const FocusMng_1 = __webpack_require__(/*! ./FocusMng */ "./core/src/sn/FocusMng
68480
68486
  const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/@tweenjs/tween.js/dist/tween.esm.js");
68481
68487
  const pixi_js_1 = __webpack_require__(/*! pixi.js */ "./node_modules/pixi.js/dist/esm/pixi.js");
68482
68488
  const Config_1 = __webpack_require__(/*! ./Config */ "./core/src/sn/Config.ts");
68489
+ const GrpLayer_1 = __webpack_require__(/*! ./GrpLayer */ "./core/src/sn/GrpLayer.ts");
68483
68490
  const { GamepadListener } = __webpack_require__(/*! gamepad.js */ "./node_modules/gamepad.js/gamepad.js");
68484
68491
  class EventMng {
68485
68492
  constructor(cfg, hTag, appPixi, main, layMng, val, sndMng, scrItr, sys) {
@@ -68494,11 +68501,12 @@ class EventMng {
68494
68501
  this.sys = sys;
68495
68502
  _EventMng_instances.add(this);
68496
68503
  _EventMng_elc.set(this, new EventListenerCtn_1.EventListenerCtn);
68497
- _EventMng_hint.set(this, void 0);
68498
- _EventMng_WIDTH_HINT_PIC.set(this, 100);
68499
- _EventMng_hint_txt_w.set(this, void 0);
68500
- _EventMng_h_padl.set(this, void 0);
68501
- _EventMng_g_hint.set(this, new pixi_js_1.Graphics);
68504
+ _EventMng_cvsHint.set(this, document.createElement('canvas'));
68505
+ _EventMng_picHint_w.set(this, 100);
68506
+ _EventMng_picHint_h.set(this, 50);
68507
+ _EventMng_padHint.set(this, void 0);
68508
+ _EventMng_grpHint.set(this, new pixi_js_1.Graphics);
68509
+ this.setTxtHint = (_txt, _fillStyle, _hint_font) => { };
68502
68510
  _EventMng_gamepad.set(this, new GamepadListener({
68503
68511
  analog: false,
68504
68512
  deadZone: 0.3,
@@ -68517,22 +68525,27 @@ class EventMng {
68517
68525
  __classPrivateFieldSet(this, _EventMng_firstWait, () => { }, "f");
68518
68526
  this.scrItr.firstWait();
68519
68527
  });
68520
- _EventMng_dispHint_masume.set(this, (hArg, ctnBtn, rctBtn, isLink, hint_width) => {
68521
- __classPrivateFieldGet(this, _EventMng_g_hint, "f").zIndex = 1000;
68522
- __classPrivateFieldGet(this, _EventMng_g_hint, "f").x = rctBtn.x;
68523
- __classPrivateFieldGet(this, _EventMng_g_hint, "f").y = rctBtn.y;
68524
- __classPrivateFieldGet(this, _EventMng_g_hint, "f").angle = ctnBtn.angle;
68528
+ _EventMng_dispHint_hArg.set(this, void 0);
68529
+ _EventMng_dispHint_ctnBtn.set(this, void 0);
68530
+ _EventMng_dispHint_masume.set(this, (hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate) => {
68531
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").zIndex = 1000;
68532
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").x = rctBtn.x;
68533
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").y = rctBtn.y;
68534
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").rotation = ctnBtn.rotation;
68525
68535
  const p = (isLink ? ctnBtn.parent : ctnBtn).scale;
68526
68536
  const isBtnPic = (hArg.タグ名 === 'button') && (hArg.pic);
68527
- __classPrivateFieldGet(this, _EventMng_g_hint, "f").clear()
68537
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").clear()
68528
68538
  .beginFill(0x33FF00, 0.2)
68529
68539
  .lineStyle(1, 0x33FF00, 1)
68530
68540
  .drawRect(0, 0, rctBtn.width, rctBtn.height)
68531
68541
  .endFill()
68532
68542
  .beginFill(0x0033FF, 0.2)
68533
- .lineStyle(2, 0x0033FF, 1)
68534
- .drawRect((rctBtn.width - hint_width) / 2, -__classPrivateFieldGet(this, _EventMng_hint, "f").height, hint_width * (isBtnPic ? 1 : p.x), __classPrivateFieldGet(this, _EventMng_hint, "f").height * (isBtnPic ? 1 : p.y))
68535
- .endFill();
68543
+ .lineStyle(2, 0x0033FF, 1);
68544
+ if (hint_tate)
68545
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").drawRect(isLink ? rctBtn.height : rctBtn.width, ((isLink ? rctBtn.width : rctBtn.height) - hint_width) / 2, __classPrivateFieldGet(this, _EventMng_picHint_h, "f") * (isBtnPic ? 1 : p.x), hint_width * (isBtnPic ? 1 : p.y));
68546
+ else
68547
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").drawRect((rctBtn.width - hint_width) / 2, -__classPrivateFieldGet(this, _EventMng_picHint_h, "f"), hint_width * (isBtnPic ? 1 : p.x), __classPrivateFieldGet(this, _EventMng_picHint_h, "f") * (isBtnPic ? 1 : p.y));
68548
+ __classPrivateFieldGet(this, _EventMng_grpHint, "f").endFill();
68536
68549
  });
68537
68550
  _EventMng_procWheel4wle.set(this, (_elc, _fnc) => { });
68538
68551
  _EventMng_elcWLE.set(this, new EventListenerCtn_1.EventListenerCtn);
@@ -68559,7 +68572,7 @@ class EventMng {
68559
68572
  return true;
68560
68573
  };
68561
68574
  hTag.set_cancel_skip = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_set_cancel_skip).call(this);
68562
- hTag.set_focus = o => this.set_focus(o);
68575
+ hTag.set_focus = o => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_set_focus).call(this, o);
68563
68576
  hTag.wait = o => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_wait).call(this, o);
68564
68577
  hTag.waitclick = () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitclick).call(this);
68565
68578
  sndMng.setEvtMng(this);
@@ -68592,17 +68605,50 @@ class EventMng {
68592
68605
  sys.addHook(type => hHook[type]?.());
68593
68606
  }
68594
68607
  let fnHint = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAyBAMAAABYG2ONAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGuGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0NDYwLCAyMDIwLzA1LzEyLTE2OjA0OjE3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJ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qmVUy6iWUS3y7zGBAlwai+wnrOZwTA2FgBnE220F0RFlQLwWtq1gLdtI8SI7SEc4acFyMjQ08gBpgWzlAEKkgayoBJJj7AAuCQAm1kUjHh83WgAAAABJRU5ErkJggg==';
68608
+ let isCustomHint = false;
68595
68609
  try {
68596
68610
  fnHint = cfg.searchPath('hint', Config_1.Config.EXT_SPRITE);
68611
+ isCustomHint = true;
68597
68612
  }
68598
68613
  catch { }
68599
- __classPrivateFieldSet(this, _EventMng_hint, new Button_1.Button({ enabled: false, text: 'hint', style: `{"fill": "white", "fontSize": "${30 * 0.7}px"}`, b_pic: fnHint, width: 80, design: false, }, this, () => { }, () => false), "f");
68600
- __classPrivateFieldGet(this, _EventMng_hint, "f").visible = false;
68601
- appPixi.stage.addChild(__classPrivateFieldGet(this, _EventMng_hint, "f"));
68602
- __classPrivateFieldSet(this, _EventMng_hint_txt_w, __classPrivateFieldGet(this, _EventMng_hint, "f").getBtnBounds().width, "f");
68603
- __classPrivateFieldSet(this, _EventMng_h_padl, (__classPrivateFieldGet(this, _EventMng_hint, "f").width - __classPrivateFieldGet(this, _EventMng_hint_txt_w, "f")) / 2, "f");
68614
+ const ctx = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").getContext('2d');
68615
+ if (ctx) {
68616
+ const cvs = document.getElementById(CmnLib_1.CmnLib.SN_ID);
68617
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = true;
68618
+ cvs.parentElement.appendChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
68619
+ const s = __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style;
68620
+ s.position = 'absolute';
68621
+ s.left = s.top = '0';
68622
+ s.zIndex = '10000';
68623
+ s.pointerEvents = 'none';
68624
+ s.userSelect = 'none';
68625
+ __classPrivateFieldSet(this, _EventMng_padHint, 10, "f");
68626
+ const img = new Image;
68627
+ const initHint = () => {
68628
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").width = __classPrivateFieldSet(this, _EventMng_picHint_w, img.width, "f");
68629
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").height = __classPrivateFieldSet(this, _EventMng_picHint_h, img.height, "f");
68630
+ this.setTxtHint('行方向の変更', 'white', '22px Arial');
68631
+ };
68632
+ this.setTxtHint = (txt, fillStyle, hint_font) => {
68633
+ ctx.clearRect(0, 0, __classPrivateFieldGet(this, _EventMng_cvsHint, "f").width, __classPrivateFieldGet(this, _EventMng_cvsHint, "f").height);
68634
+ ctx.drawImage(img, 0, 0);
68635
+ ctx.textBaseline = 'top';
68636
+ ctx.font = hint_font;
68637
+ ctx.fillStyle = fillStyle;
68638
+ ctx.fillText(txt, __classPrivateFieldGet(this, _EventMng_padHint, "f"), 16, __classPrivateFieldGet(this, _EventMng_picHint_w, "f") - __classPrivateFieldGet(this, _EventMng_padHint, "f") * 2);
68639
+ };
68640
+ if (isCustomHint)
68641
+ GrpLayer_1.GrpLayer.loadPic2Img('hint', img, i => {
68642
+ if (img === i)
68643
+ initHint();
68644
+ });
68645
+ else {
68646
+ img.src = fnHint;
68647
+ img.onload = initHint;
68648
+ }
68649
+ }
68604
68650
  if (this.cfg.oCfg.debug.masume)
68605
- appPixi.stage.addChild(__classPrivateFieldGet(this, _EventMng_g_hint, "f"));
68651
+ appPixi.stage.addChild(__classPrivateFieldGet(this, _EventMng_grpHint, "f"));
68606
68652
  else
68607
68653
  __classPrivateFieldSet(this, _EventMng_dispHint_masume, () => { }, "f");
68608
68654
  appPixi.stage.interactive = true;
@@ -68702,7 +68748,7 @@ class EventMng {
68702
68748
  destroy() {
68703
68749
  __classPrivateFieldGet(this, _EventMng_fcs, "f").destroy();
68704
68750
  __classPrivateFieldGet(this, _EventMng_elc, "f").clear();
68705
- __classPrivateFieldGet(this, _EventMng_hint, "f").parent?.removeChild(__classPrivateFieldGet(this, _EventMng_hint, "f"));
68751
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f")?.parentElement.removeChild(__classPrivateFieldGet(this, _EventMng_cvsHint, "f"));
68706
68752
  }
68707
68753
  fire(KEY, e) {
68708
68754
  if (__classPrivateFieldGet(this, _EventMng_isDbgBreak, "f"))
@@ -68723,7 +68769,7 @@ class EventMng {
68723
68769
  if (!ke) {
68724
68770
  if (key.slice(0, 5) === 'swipe') {
68725
68771
  const esw = e;
68726
- globalThis.scrollBy(-(esw.deltaX ?? 0), -(esw.deltaY ?? 0));
68772
+ globalThis.scrollBy(-esw.deltaX ?? 0, -esw.deltaY ?? 0);
68727
68773
  }
68728
68774
  return;
68729
68775
  }
@@ -68734,7 +68780,7 @@ class EventMng {
68734
68780
  this.layMng.clickTxtLay();
68735
68781
  __classPrivateFieldSet(this, _EventMng_isWait, false, "f");
68736
68782
  ke(e);
68737
- __classPrivateFieldGet(this, _EventMng_hint, "f").visible = false;
68783
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = true;
68738
68784
  }
68739
68785
  popLocalEvts() {
68740
68786
  const ret = __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f");
@@ -68756,7 +68802,6 @@ class EventMng {
68756
68802
  __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_waitEventBase).call(this, onFinish, canskip, global);
68757
68803
  return true;
68758
68804
  }
68759
- escapeHint() { __classPrivateFieldGet(this, _EventMng_hint, "f").parent?.removeChild(__classPrivateFieldGet(this, _EventMng_hint, "f")); }
68760
68805
  unButton(ctnBtn) { __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(ctnBtn); }
68761
68806
  button(hArg, ctnBtn, normal, hover, clicked) {
68762
68807
  if (!hArg.fn && !hArg.label)
@@ -68773,7 +68818,7 @@ class EventMng {
68773
68818
  const ee = ctnBtn;
68774
68819
  ee.on('pointerdown', (e) => this.fire(key, e));
68775
68820
  const onHint = hArg.hint ? () => __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_dispHint).call(this, hArg, ctnBtn) : () => { };
68776
- const nr = () => { normal(); };
68821
+ const nr = () => { normal(); __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = true; };
68777
68822
  const hv = () => { onHint(); return hover(); };
68778
68823
  ee.on('pointerover', hv);
68779
68824
  ee.on('pointerout', () => { if (__classPrivateFieldGet(this, _EventMng_fcs, "f").isFocus(ctnBtn))
@@ -68835,6 +68880,11 @@ class EventMng {
68835
68880
  }
68836
68881
  this.sndMng.loadAheadSnd(hArg);
68837
68882
  }
68883
+ cvsResize() {
68884
+ if (__classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden)
68885
+ return;
68886
+ __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_dispHint).call(this, __classPrivateFieldGet(this, _EventMng_dispHint_hArg, "f"), __classPrivateFieldGet(this, _EventMng_dispHint_ctnBtn, "f"), false);
68887
+ }
68838
68888
  waitLimitedEvent(hArg, onFinish) {
68839
68889
  __classPrivateFieldGet(this, _EventMng_goTxt, "f").call(this);
68840
68890
  this.val.saveKidoku();
@@ -68860,44 +68910,6 @@ class EventMng {
68860
68910
  __classPrivateFieldGet(this, _EventMng_procWheel4wle, "f").call(this, __classPrivateFieldGet(this, _EventMng_elcWLE, "f"), fnc);
68861
68911
  return true;
68862
68912
  }
68863
- set_focus(hArg) {
68864
- const add = hArg.add;
68865
- if (add?.slice(0, 4) === 'dom=') {
68866
- const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
68867
- if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
68868
- throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
68869
- g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").add(elm, () => {
68870
- if (!__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_canFocus).call(this, elm))
68871
- return false;
68872
- elm.focus();
68873
- return true;
68874
- }, () => { }));
68875
- return false;
68876
- }
68877
- const del = hArg.del;
68878
- if (del?.slice(0, 4) === 'dom=') {
68879
- const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
68880
- if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
68881
- throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
68882
- g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
68883
- return false;
68884
- }
68885
- const to = hArg.to;
68886
- if (!to)
68887
- throw '[set_focus] add か to は必須です';
68888
- switch (to) {
68889
- case 'null':
68890
- __classPrivateFieldGet(this, _EventMng_fcs, "f").blur();
68891
- break;
68892
- case 'next':
68893
- __classPrivateFieldGet(this, _EventMng_fcs, "f").next();
68894
- break;
68895
- case 'prev':
68896
- __classPrivateFieldGet(this, _EventMng_fcs, "f").prev();
68897
- break;
68898
- }
68899
- return false;
68900
- }
68901
68913
  isSkipKeyDown() {
68902
68914
  if (this.scrItr.skip4page)
68903
68915
  return true;
@@ -68908,7 +68920,7 @@ class EventMng {
68908
68920
  }
68909
68921
  }
68910
68922
  exports.EventMng = EventMng;
68911
- _EventMng_elc = new WeakMap(), _EventMng_hint = new WeakMap(), _EventMng_WIDTH_HINT_PIC = new WeakMap(), _EventMng_hint_txt_w = new WeakMap(), _EventMng_h_padl = new WeakMap(), _EventMng_g_hint = new WeakMap(), _EventMng_gamepad = new WeakMap(), _EventMng_fcs = new WeakMap(), _EventMng_resvFlameEvent4Wheel = new WeakMap(), _EventMng_wheeling = new WeakMap(), _EventMng_extend_wheel = new WeakMap(), _EventMng_hLocalEvt2Fnc = new WeakMap(), _EventMng_hGlobalEvt2Fnc = new WeakMap(), _EventMng_isDbgBreak = new WeakMap(), _EventMng_isWait = new WeakMap(), _EventMng_getEvt2Fnc = new WeakMap(), _EventMng_firstWait = new WeakMap(), _EventMng_dispHint_masume = new WeakMap(), _EventMng_procWheel4wle = new WeakMap(), _EventMng_elcWLE = new WeakMap(), _EventMng_goTxt = new WeakMap(), _EventMng_fncCancelSkip = new WeakMap(), _EventMng_hDownKeys = new WeakMap(), _EventMng_instances = new WeakSet(), _EventMng_ev_keydown = function _EventMng_ev_keydown(e) {
68923
+ _EventMng_elc = new WeakMap(), _EventMng_cvsHint = new WeakMap(), _EventMng_picHint_w = new WeakMap(), _EventMng_picHint_h = new WeakMap(), _EventMng_padHint = new WeakMap(), _EventMng_grpHint = new WeakMap(), _EventMng_gamepad = new WeakMap(), _EventMng_fcs = new WeakMap(), _EventMng_resvFlameEvent4Wheel = new WeakMap(), _EventMng_wheeling = new WeakMap(), _EventMng_extend_wheel = new WeakMap(), _EventMng_hLocalEvt2Fnc = new WeakMap(), _EventMng_hGlobalEvt2Fnc = new WeakMap(), _EventMng_isDbgBreak = new WeakMap(), _EventMng_isWait = new WeakMap(), _EventMng_getEvt2Fnc = new WeakMap(), _EventMng_firstWait = new WeakMap(), _EventMng_dispHint_hArg = new WeakMap(), _EventMng_dispHint_ctnBtn = new WeakMap(), _EventMng_dispHint_masume = new WeakMap(), _EventMng_procWheel4wle = new WeakMap(), _EventMng_elcWLE = new WeakMap(), _EventMng_goTxt = new WeakMap(), _EventMng_fncCancelSkip = new WeakMap(), _EventMng_hDownKeys = new WeakMap(), _EventMng_instances = new WeakSet(), _EventMng_ev_keydown = function _EventMng_ev_keydown(e) {
68912
68924
  if (e['isComposing'])
68913
68925
  return;
68914
68926
  if (e.key in __classPrivateFieldGet(this, _EventMng_hDownKeys, "f"))
@@ -68969,7 +68981,15 @@ _EventMng_elc = new WeakMap(), _EventMng_hint = new WeakMap(), _EventMng_WIDTH_H
68969
68981
  : key => __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f")[key], "f");
68970
68982
  __classPrivateFieldSet(this, _EventMng_isWait, true, "f");
68971
68983
  __classPrivateFieldGet(this, _EventMng_firstWait, "f").call(this);
68972
- }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn) {
68984
+ if (CmnLib_1.CmnLib.debugLog) {
68985
+ const o = Object.create(null);
68986
+ o.local = Object.keys(__classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f"));
68987
+ o.global = Object.keys(__classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f"));
68988
+ console.log(`🎍 wait event... %o`, o);
68989
+ }
68990
+ }, _EventMng_dispHint = function _EventMng_dispHint(hArg, ctnBtn, masume = true) {
68991
+ __classPrivateFieldSet(this, _EventMng_dispHint_hArg, hArg, "f");
68992
+ __classPrivateFieldSet(this, _EventMng_dispHint_ctnBtn, ctnBtn, "f");
68973
68993
  const rctBtn = ctnBtn instanceof Button_1.Button
68974
68994
  ? ctnBtn.getBtnBounds()
68975
68995
  : ctnBtn.getBounds();
@@ -68979,14 +68999,18 @@ _EventMng_elc = new WeakMap(), _EventMng_hint = new WeakMap(), _EventMng_WIDTH_H
68979
68999
  rctBtn.x += cpp.x;
68980
69000
  rctBtn.y += cpp.y;
68981
69001
  }
68982
- __classPrivateFieldGet(this, _EventMng_hint, "f").setText(hArg.hint ?? '');
68983
- const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_WIDTH_HINT_PIC, "f"));
68984
- const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_WIDTH_HINT_PIC, "f");
68985
- __classPrivateFieldGet(this, _EventMng_hint, "f").setTransform(rctBtn.x, rctBtn.y, scale_x, 1, ctnBtn.rotation, 0, 0, isLink
68986
- ? -(__classPrivateFieldGet(this, _EventMng_h_padl, "f") - (hint_width - rctBtn.width) / 2 / scale_x)
68987
- : -(rctBtn.width / scale_x - __classPrivateFieldGet(this, _EventMng_hint_txt_w, "f")) / 2, __classPrivateFieldGet(this, _EventMng_hint, "f").height);
68988
- __classPrivateFieldGet(this, _EventMng_hint, "f").visible = true;
68989
- __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width);
69002
+ this.setTxtHint(hArg.hint ?? '', hArg.hint_color ?? 'white', hArg.hint_font ?? '22px Arial');
69003
+ const hint_width = (0, CmnLib_1.argChk_Num)(hArg, 'hint_width', __classPrivateFieldGet(this, _EventMng_picHint_w, "f"));
69004
+ const scale_x = hint_width / __classPrivateFieldGet(this, _EventMng_picHint_w, "f");
69005
+ const hint_tate = (0, CmnLib_1.argChk_Boolean)(hArg, 'hint_tate', false);
69006
+ const scale = this.sys.reso4frame * CmnLib_1.CmnLib.cvsScale;
69007
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.left = `${this.sys.ofsLeft4frm + rctBtn.x * scale}px`;
69008
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.top = `${this.sys.ofsTop4frm + rctBtn.y * scale}px`;
69009
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transformOrigin = 'top left';
69010
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").style.transform = `rotateZ(${ctnBtn.rotation + (hint_tate ? Math.PI * 90 / 180 : 0)}rad) scale(${scale_x * scale}, ${scale}) translate(${((hint_tate ? rctBtn.height : rctBtn.width) - hint_width) / 2 / scale_x}px, ${(hint_tate ? -rctBtn.width : 0) - __classPrivateFieldGet(this, _EventMng_picHint_h, "f")}px)`;
69011
+ __classPrivateFieldGet(this, _EventMng_cvsHint, "f").hidden = false;
69012
+ if (masume)
69013
+ __classPrivateFieldGet(this, _EventMng_dispHint_masume, "f").call(this, hArg, ctnBtn, rctBtn, isLink, hint_width, hint_tate);
68990
69014
  }, _EventMng_clear_event = function _EventMng_clear_event(hArg) {
68991
69015
  const glb = (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false);
68992
69016
  const h = glb ? __classPrivateFieldGet(this, _EventMng_hGlobalEvt2Fnc, "f") : __classPrivateFieldGet(this, _EventMng_hLocalEvt2Fnc, "f");
@@ -69164,6 +69188,43 @@ _EventMng_elc = new WeakMap(), _EventMng_hint = new WeakMap(), _EventMng_WIDTH_H
69164
69188
  delete hE1T['ArrowDown'];
69165
69189
  delete hE1T['wheel.y>0'];
69166
69190
  }
69191
+ }, _EventMng_set_focus = function _EventMng_set_focus(hArg) {
69192
+ const add = hArg.add;
69193
+ if (add?.slice(0, 4) === 'dom=') {
69194
+ const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, add);
69195
+ if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
69196
+ throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
69197
+ g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").add(elm, () => {
69198
+ if (!__classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_canFocus).call(this, elm))
69199
+ return false;
69200
+ elm.focus();
69201
+ return true;
69202
+ }, () => { }));
69203
+ return false;
69204
+ }
69205
+ const del = hArg.del;
69206
+ if (del?.slice(0, 4) === 'dom=') {
69207
+ const g = __classPrivateFieldGet(this, _EventMng_instances, "m", _EventMng_getHtmlElmList).call(this, del);
69208
+ if (g.el.length === 0 && (0, CmnLib_1.argChk_Boolean)(hArg, 'need_err', true))
69209
+ throw `HTML内にセレクタ(${g.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
69210
+ g.el.forEach(elm => __classPrivateFieldGet(this, _EventMng_fcs, "f").remove(elm));
69211
+ return false;
69212
+ }
69213
+ const to = hArg.to;
69214
+ if (!to)
69215
+ throw '[set_focus] add か to は必須です';
69216
+ switch (to) {
69217
+ case 'null':
69218
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").blur();
69219
+ break;
69220
+ case 'next':
69221
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").next();
69222
+ break;
69223
+ case 'prev':
69224
+ __classPrivateFieldGet(this, _EventMng_fcs, "f").prev();
69225
+ break;
69226
+ }
69227
+ return false;
69167
69228
  }, _EventMng_wait = function _EventMng_wait(hArg) {
69168
69229
  if (this.scrItr.skip4page)
69169
69230
  return false;
@@ -69417,12 +69478,13 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
69417
69478
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
69418
69479
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
69419
69480
  };
69420
- var _FrameMng_instances, _FrameMng_evtMng, _FrameMng_hIfrm, _FrameMng_add_frame, _FrameMng_hDisabled, _FrameMng_hAEncImg, _FrameMng_hEncImgOUrl, _FrameMng_rect, _FrameMng_let_frame, _FrameMng_set_frame, _FrameMng_zIdx, _FrameMng_frame, _FrameMng_tsy_frame;
69481
+ var _FrameMng_instances, _FrameMng_evtMng, _FrameMng_hIfrm, _FrameMng_add_frame, _FrameMng_hDisabled, _FrameMng_rect, _FrameMng_let_frame, _FrameMng_set_frame, _FrameMng_zIdx, _FrameMng_frame, _FrameMng_tsy_frame;
69421
69482
  Object.defineProperty(exports, "__esModule", ({ value: true }));
69422
69483
  exports.FrameMng = void 0;
69423
69484
  const CmnLib_1 = __webpack_require__(/*! ./CmnLib */ "./core/src/sn/CmnLib.ts");
69424
69485
  const CmnTween_1 = __webpack_require__(/*! ./CmnTween */ "./core/src/sn/CmnTween.ts");
69425
69486
  const Config_1 = __webpack_require__(/*! ./Config */ "./core/src/sn/Config.ts");
69487
+ const GrpLayer_1 = __webpack_require__(/*! ./GrpLayer */ "./core/src/sn/GrpLayer.ts");
69426
69488
  const tween_js_1 = __webpack_require__(/*! @tweenjs/tween.js */ "./node_modules/@tweenjs/tween.js/dist/tween.esm.js");
69427
69489
  const pixi_js_1 = __webpack_require__(/*! pixi.js */ "./node_modules/pixi.js/dist/esm/pixi.js");
69428
69490
  class FrameMng {
@@ -69436,9 +69498,7 @@ class FrameMng {
69436
69498
  _FrameMng_instances.add(this);
69437
69499
  _FrameMng_evtMng.set(this, void 0);
69438
69500
  _FrameMng_hIfrm.set(this, Object.create(null));
69439
- _FrameMng_hDisabled.set(this, Object.create(null));
69440
- _FrameMng_hAEncImg.set(this, Object.create(null));
69441
- _FrameMng_hEncImgOUrl.set(this, Object.create(null));
69501
+ _FrameMng_hDisabled.set(this, {});
69442
69502
  _FrameMng_zIdx.set(this, 1);
69443
69503
  hTag.add_frame = o => __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_add_frame).call(this, o);
69444
69504
  hTag.let_frame = o => __classPrivateFieldGet(this, _FrameMng_instances, "m", _FrameMng_let_frame).call(this, o);
@@ -69471,7 +69531,7 @@ class FrameMng {
69471
69531
  }
69472
69532
  }
69473
69533
  exports.FrameMng = FrameMng;
69474
- _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDisabled = new WeakMap(), _FrameMng_hAEncImg = new WeakMap(), _FrameMng_hEncImgOUrl = new WeakMap(), _FrameMng_zIdx = new WeakMap(), _FrameMng_instances = new WeakSet(), _FrameMng_add_frame = function _FrameMng_add_frame(hArg) {
69534
+ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDisabled = new WeakMap(), _FrameMng_zIdx = new WeakMap(), _FrameMng_instances = new WeakSet(), _FrameMng_add_frame = function _FrameMng_add_frame(hArg) {
69475
69535
  const id = hArg.id;
69476
69536
  if (!id)
69477
69537
  throw 'idは必須です';
@@ -69525,46 +69585,7 @@ _FrameMng_evtMng = new WeakMap(), _FrameMng_hIfrm = new WeakMap(), _FrameMng_hDi
69525
69585
  this.val.setVal_Nochk('tmp', frmnm + '.visible', v);
69526
69586
  const win = ifrm.contentWindow;
69527
69587
  __classPrivateFieldGet(this, _FrameMng_evtMng, "f").resvFlameEvent(win);
69528
- (win.sn_repRes)?.((i) => {
69529
- const src = (i.dataset.src ?? '').replace(/(.+\/|\..+)/g, '');
69530
- const oUrl = __classPrivateFieldGet(this, _FrameMng_hEncImgOUrl, "f")[src];
69531
- if (oUrl) {
69532
- i.src = oUrl;
69533
- return;
69534
- }
69535
- const aImg = __classPrivateFieldGet(this, _FrameMng_hAEncImg, "f")[src];
69536
- if (aImg) {
69537
- aImg.push(i);
69538
- return;
69539
- }
69540
- __classPrivateFieldGet(this, _FrameMng_hAEncImg, "f")[src] = [i];
69541
- const url2 = this.cfg.searchPath(src, Config_1.Config.EXT_SPRITE);
69542
- const ld2 = (new pixi_js_1.Loader)
69543
- .add({ name: src, url: url2, xhrType: pixi_js_1.LoaderResource.XHR_RESPONSE_TYPE.BUFFER, });
69544
- if (this.sys.crypto)
69545
- ld2.use((res, next) => {
69546
- this.sys.dec(res.extension, res.data)
69547
- .then(r => {
69548
- if (res.extension !== 'bin') {
69549
- next?.();
69550
- return;
69551
- }
69552
- res.data = r;
69553
- if (r instanceof HTMLImageElement) {
69554
- res.type = pixi_js_1.LoaderResource.TYPE.IMAGE;
69555
- }
69556
- next?.();
69557
- })
69558
- .catch(e => this.main.errScript(`Graphic ロード失敗です fn:${res.name} ${e}`, false));
69559
- });
69560
- ld2.load((_ldr, hRes) => {
69561
- for (const s2 in hRes) {
69562
- const u2 = __classPrivateFieldGet(this, _FrameMng_hEncImgOUrl, "f")[s2] = hRes[s2].data.src;
69563
- __classPrivateFieldGet(this, _FrameMng_hAEncImg, "f")[s2].forEach(v => v.src = u2);
69564
- delete __classPrivateFieldGet(this, _FrameMng_hAEncImg, "f")[s2];
69565
- }
69566
- });
69567
- });
69588
+ (win.sn_repRes)?.((img) => GrpLayer_1.GrpLayer.loadPic2Img((img.dataset.src ?? '').replace(/(.+\/|\..+)/g, ''), img));
69568
69589
  this.main.resume();
69569
69590
  };
69570
69591
  });
@@ -69977,7 +69998,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
69977
69998
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
69978
69999
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
69979
70000
  };
69980
- var _a, _GrpLayer_elc, _GrpLayer_hFace, _GrpLayer_main, _GrpLayer_cfg, _GrpLayer_sys, _GrpLayer_glbVol, _GrpLayer_movVol, _GrpLayer_evtMng, _GrpLayer_idc, _GrpLayer_csvFn, _GrpLayer_sBkFn, _GrpLayer_sBkFace, _GrpLayer_width, _GrpLayer_height, _GrpLayer_dec2cache, _GrpLayer_sortAFrameName, _GrpLayer_dec2cache4Cripto, _GrpLayer_mkSprite;
70001
+ var _a, _GrpLayer_elc, _GrpLayer_hFace, _GrpLayer_main, _GrpLayer_cfg, _GrpLayer_sys, _GrpLayer_glbVol, _GrpLayer_movVol, _GrpLayer_evtMng, _GrpLayer_idc, _GrpLayer_csvFn, _GrpLayer_sBkFn, _GrpLayer_sBkFace, _GrpLayer_width, _GrpLayer_height, _GrpLayer_dec2cache, _GrpLayer_sortAFrameName, _GrpLayer_dec2cache4Cripto, _GrpLayer_mkSprite, _GrpLayer_hAEncImg, _GrpLayer_hEncImgOUrl;
69981
70002
  Object.defineProperty(exports, "__esModule", ({ value: true }));
69982
70003
  exports.GrpLayer = void 0;
69983
70004
  const Layer_1 = __webpack_require__(/*! ./Layer */ "./core/src/sn/Layer.ts");
@@ -70164,6 +70185,49 @@ class GrpLayer extends Layer_1.Layer {
70164
70185
  hve.addEventListener('ended', fnc, { once: true, passive: true });
70165
70186
  return __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_evtMng).waitEvent(() => { hve.pause(); fnc(); }, (0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true), (0, CmnLib_1.argChk_Boolean)(hArg, 'global', false));
70166
70187
  }
70188
+ static loadPic2Img(src, img, onload) {
70189
+ const oUrl = __classPrivateFieldGet(this, _a, "f", _GrpLayer_hEncImgOUrl)[src];
70190
+ if (oUrl) {
70191
+ img.src = oUrl;
70192
+ return;
70193
+ }
70194
+ const aImg = __classPrivateFieldGet(this, _a, "f", _GrpLayer_hAEncImg)[src];
70195
+ if (aImg) {
70196
+ aImg.push(img);
70197
+ return;
70198
+ }
70199
+ __classPrivateFieldGet(this, _a, "f", _GrpLayer_hAEncImg)[src] = [img];
70200
+ const url2 = __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_cfg).searchPath(src, Config_1.Config.EXT_SPRITE);
70201
+ const ld2 = (new pixi_js_1.Loader)
70202
+ .add({ name: src, url: url2, xhrType: pixi_js_1.LoaderResource.XHR_RESPONSE_TYPE.BUFFER, });
70203
+ if (__classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_sys).crypto)
70204
+ ld2.use((res, next) => {
70205
+ __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_sys).dec(res.extension, res.data)
70206
+ .then(r => {
70207
+ if (res.extension !== 'bin') {
70208
+ next?.();
70209
+ return;
70210
+ }
70211
+ res.data = r;
70212
+ if (r instanceof HTMLImageElement) {
70213
+ res.type = pixi_js_1.LoaderResource.TYPE.IMAGE;
70214
+ }
70215
+ next?.();
70216
+ })
70217
+ .catch(e => __classPrivateFieldGet(GrpLayer, _a, "f", _GrpLayer_main).errScript(`GrpLayer loadPic ロード失敗です fn:${res.name} ${e}`, false));
70218
+ });
70219
+ ld2.load((_ldr, hRes) => {
70220
+ for (const s2 in hRes) {
70221
+ const u2 = __classPrivateFieldGet(this, _a, "f", _GrpLayer_hEncImgOUrl)[s2] = hRes[s2].data.src;
70222
+ __classPrivateFieldGet(this, _a, "f", _GrpLayer_hAEncImg)[s2].forEach(i => {
70223
+ i.src = u2;
70224
+ if (onload)
70225
+ i.onload = () => onload(i);
70226
+ });
70227
+ delete __classPrivateFieldGet(this, _a, "f", _GrpLayer_hAEncImg)[s2];
70228
+ }
70229
+ });
70230
+ }
70167
70231
  setPos(hArg) {
70168
70232
  Layer_1.Layer.setXY((this.spLay.children.length === 0) ? this.spLay : this.spLay.children[0], hArg, this.spLay, true);
70169
70233
  }
@@ -70315,6 +70379,8 @@ _GrpLayer_dec2cache = { value: (_r, res, next) => {
70315
70379
  next();
70316
70380
  } };
70317
70381
  GrpLayer.hFn2VElm = {};
70382
+ _GrpLayer_hAEncImg = { value: {} };
70383
+ _GrpLayer_hEncImgOUrl = { value: {} };
70318
70384
 
70319
70385
 
70320
70386
  /***/ }),
@@ -70730,6 +70796,7 @@ void main(void) {
70730
70796
  else
70731
70797
  __classPrivateFieldGet(this, _LayerMng_aLayName, "f").forEach(layer => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[layer].fore.cvsResize());
70732
70798
  __classPrivateFieldGet(this, _LayerMng_frmMng, "f").cvsResize();
70799
+ __classPrivateFieldGet(this, _LayerMng_evtMng, "f").cvsResize();
70733
70800
  };
70734
70801
  if (CmnLib_1.CmnLib.isMobile) {
70735
70802
  globalThis.addEventListener('orientationchange', fncResizeLay, { passive: true });
@@ -76343,7 +76410,6 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
76343
76410
  elm.style.animationDelay = '0ms';
76344
76411
  elm.classList.add(`go_ch_out_${add.ch_out_style}`);
76345
76412
  });
76346
- __classPrivateFieldGet(TxtStage, _a, "f", _TxtStage_evtMng).escapeHint();
76347
76413
  const end = () => {
76348
76414
  old.parentElement.removeChild(old);
76349
76415
  __classPrivateFieldGet(this, _TxtStage_cntTxt, "f").removeChildren().forEach(c => {
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/sn/Button.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,SAAS,EAAsB,MAAM,EAAY,eAAe,EAAC,MAAM,SAAS,CAAC;AAC1G,OAAO,EAAO,OAAO,EAAqC,MAAM,UAAU,CAAC;AAC3E,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAGpC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAG3C,qBAAa,MAAO,SAAQ,SAAS;;IA+BxB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAAQ,OA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,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM;IAmBvB,OAAO,CAAC,KAAK,EAAE,MAAM;IACrB,YAAY,kBAAwB;gBAOP,IAAI,EAAE,IAAI,EAAmB,MAAM,EAAE,OAAO,EAAW,OAAO,EAAE,MAAK,IAAI,EAAmB,QAAQ,EAAE,MAAK,OAAO;IA8ItI,OAAO,CAAC,QAAQ,CAAC,EAAE,eAAe,GAAG,OAAO,GAAG,IAAI;IAK5D,cAAc,CAAC,IAAI,EAAE,eAAe;IACpC,cAAc;IACd,SAAS;IAET,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IA4BlC,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAsDjC"}
@@ -36,6 +36,8 @@ export declare type HArg = {
36
36
  enabled?: boolean;
37
37
  hint?: string;
38
38
  hint_tate?: boolean;
39
+ hint_color?: string;
40
+ hint_font?: string;
39
41
  clickse?: string;
40
42
  enterse?: string;
41
43
  leavese?: string;