danoniplus 32.7.0 → 33.1.0

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.
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Source by tickle
7
7
  * Created : 2019/11/19
8
- * Revised : 2023/07/17 (v32.7.0)
8
+ * Revised : 2023/08/03 (v33.1.0)
9
9
  *
10
10
  * https://github.com/cwtickle/danoniplus
11
11
  */
@@ -96,7 +96,7 @@ const g_limitObj = {
96
96
 
97
97
  // 判定キャラクタの幅、高さ、フォントサイズ
98
98
  jdgCharaWidth: 200,
99
- jdgCharaHeight: 20,
99
+ jdgCharaHeight: 22,
100
100
  jdgCharaSiz: 20,
101
101
 
102
102
  // 判定数の幅、高さ、フォントサイズ
@@ -153,9 +153,6 @@ const g_userAgent = window.navigator.userAgent.toLowerCase(); // msie, edge, chr
153
153
  const g_isIos = listMatching(g_userAgent, [`iphone`, `ipad`, `ipod`]);
154
154
  const g_isMac = listMatching(g_userAgent, [`iphone`, `ipad`, `ipod`, `mac os`]);
155
155
 
156
- const g_isFile = location.href.match(/^file/);
157
- const g_isLocal = location.href.match(/^file/) || location.href.indexOf(`localhost`) !== -1;
158
-
159
156
  // 変数型
160
157
  const C_TYP_BOOLEAN = `boolean`;
161
158
  const C_TYP_NUMBER = `number`;
@@ -431,6 +428,15 @@ const updateWindowSiz = _ => {
431
428
  btnRsRetry: {
432
429
  x: g_sWidth / 4 * 3, w: g_sWidth / 4, h: g_limitObj.btnHeight * 5 / 4, animationName: `smallToNormalY`,
433
430
  },
431
+ btnRsCopyImage: {
432
+ x: g_sWidth - 40, y: 0, w: 40, h: 40, siz: 30,
433
+ },
434
+ btnRsCopyClose: {
435
+ x: g_sWidth - 80, y: 0, w: 80, h: 40, siz: 20,
436
+ },
437
+ resultImageDesc: {
438
+ x: 0, y: g_sHeight - 30, w: g_sWidth, h: 20, siz: g_limitObj.mainSiz,
439
+ },
434
440
  });
435
441
  };
436
442
 
@@ -1522,6 +1528,7 @@ const g_shortcutObj = {
1522
1528
  KeyC: { id: `btnCopy`, reset: true },
1523
1529
  KeyT: { id: `btnTweet`, reset: true },
1524
1530
  KeyG: { id: `btnGitter`, reset: true },
1531
+ KeyP: { id: `btnCopyImage` },
1525
1532
  Backspace: { id: `btnRetry` },
1526
1533
  },
1527
1534
  };
@@ -1613,6 +1620,13 @@ const g_cssObj = {
1613
1620
  common_combo: `common_combo`,
1614
1621
  common_score: `common_score`,
1615
1622
 
1623
+ common_comboJ: `common_comboJ`,
1624
+ common_comboFJ: `common_comboFJ`,
1625
+ common_diffSlow: `common_diffSlow`,
1626
+ common_diffFast: `common_diffFast`,
1627
+ common_excessive: `common_excessive`,
1628
+ common_estAdj: `common_estAdj`,
1629
+
1616
1630
  result_score: `result_score`,
1617
1631
  result_scoreHiBlanket: `result_scoreHiBlanket`,
1618
1632
  result_scoreHi: `result_scoreHi`,
@@ -2318,15 +2332,33 @@ const g_titleLists = {
2318
2332
 
2319
2333
  };
2320
2334
 
2321
- const g_animationData = [`back`, `mask`];
2335
+ const g_animationData = [`back`, `mask`, `style`];
2336
+ const g_animationFunc = {
2337
+ make: {
2338
+ back: makeSpriteData,
2339
+ mask: makeSpriteData,
2340
+ style: makeStyleData,
2341
+ },
2342
+ draw: {
2343
+ back: drawSpriteData,
2344
+ mask: drawSpriteData,
2345
+ style: drawStyleData,
2346
+ },
2347
+ drawMain: {
2348
+ back: drawMainSpriteData,
2349
+ mask: drawMainSpriteData,
2350
+ style: drawMainStyleData,
2351
+ },
2352
+ };
2322
2353
 
2323
- let g_fadeinStockList = [`word`, `back`, `mask`];
2354
+ let g_fadeinStockList = [`word`, `back`, `mask`, `style`];
2324
2355
 
2325
2356
  /** フェードイン時でもプリロードを除外しないリスト */
2326
2357
  const g_preloadExceptList = {
2327
2358
  word: [`[left]`, `[center]`, `[right]`],
2328
2359
  back: [],
2329
2360
  mask: [],
2361
+ style: [],
2330
2362
  };
2331
2363
 
2332
2364
  /** フェードイン時、プリロードを強制削除するリスト(初期値は空) */
@@ -2334,6 +2366,7 @@ const g_stockForceDelList = {
2334
2366
  word: [],
2335
2367
  back: [],
2336
2368
  mask: [],
2369
+ style: [],
2337
2370
  };
2338
2371
 
2339
2372
  /**
@@ -2353,6 +2386,7 @@ const g_dataMinObj = {
2353
2386
  word: 3,
2354
2387
  mask: 1,
2355
2388
  back: 1,
2389
+ style: 1,
2356
2390
  };
2357
2391
 
2358
2392
  const g_dfColorObj = {
@@ -2367,6 +2401,8 @@ const g_dfColorObj = {
2367
2401
 
2368
2402
  };
2369
2403
 
2404
+ const g_cssBkProperties = {};
2405
+
2370
2406
  const g_dfColorBaseObj = {
2371
2407
 
2372
2408
  dark: {
@@ -2613,6 +2649,7 @@ const g_lblNameObj = {
2613
2649
  b_tweet: `Tweet`,
2614
2650
  b_gitter: `Gitter`,
2615
2651
  b_retry: `Retry`,
2652
+ b_close: `Close`,
2616
2653
 
2617
2654
  Difficulty: `Difficulty`,
2618
2655
  Speed: `Speed`,
@@ -2793,6 +2830,7 @@ const g_lang_lblNameObj = {
2793
2830
  kcShortcutDesc: `プレイ中ショートカット:「{0}」タイトルバック / 「{1}」リトライ`,
2794
2831
  transKeyDesc: `別キーモードではキーコンフィグ、ColorType等は保存されません`,
2795
2832
  sdShortcutDesc: `Hid+/Sud+時ショートカット:「pageUp」カバーを上へ / 「pageDown」下へ`,
2833
+ resultImageDesc: `画像を右クリックしてコピーできます`,
2796
2834
 
2797
2835
  s_level: `Level`,
2798
2836
  s_douji: `同時補正`,
@@ -2826,6 +2864,7 @@ const g_lang_lblNameObj = {
2826
2864
  kcShortcutDesc: `Shortcut during play: "{0}" Return to title / "{1}" Retry the game`,
2827
2865
  transKeyDesc: `Key config, Color type, etc. are not saved in another key mode`,
2828
2866
  sdShortcutDesc: `When "Hidden+" or "Sudden+" select, "pageUp" cover up / "pageDown" cover down`,
2867
+ resultImageDesc: `You can copy the image by right-clicking on it.`,
2829
2868
 
2830
2869
  s_level: `Level`,
2831
2870
  s_douji: `Chords`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "32.7.0",
3
+ "version": "33.1.0",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {