danoniplus 46.5.1 → 46.5.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/js/danoni_main.js CHANGED
@@ -4,12 +4,12 @@
4
4
  *
5
5
  * Source by tickle
6
6
  * Created : 2018/10/08
7
- * Revised : 2026/03/29
7
+ * Revised : 2026/04/05
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 46.5.1`;
12
- const g_revisedDate = `2026/03/30`;
11
+ const g_version = `Ver 46.5.3`;
12
+ const g_revisedDate = `2026/04/05`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -155,6 +155,8 @@ const C_FLG_ON = `ON`;
155
155
  const C_FLG_OFF = `OFF`;
156
156
  const C_FLG_HYPHEN = `---`;
157
157
  const C_FLG_ALL = `ALL`;
158
+ const C_FLG_REVERSE = `Reverse`;
159
+ const C_FLG_REVERSE2 = `Rev`;
158
160
  const C_DIS_NONE = `none`;
159
161
  const C_DIS_AUTO = `auto`;
160
162
  const C_DIS_INHERIT = `inherit`;
@@ -4225,9 +4227,10 @@ const headerConvert = _dosObj => {
4225
4227
 
4226
4228
  // ローカルストレージに保存済みのColorType設定からDisplayのColor設定を反映
4227
4229
  if (g_localStorage.colorType !== undefined) {
4228
- g_colorType = g_localStorage.colorType;
4230
+ g_colorType = g_keycons.colorTypes.concat(g_keycons.colorSelf).includes(g_localStorage.colorType)
4231
+ ? g_localStorage.colorType : `Default`;
4229
4232
  if (obj.colorUse) {
4230
- g_stateObj.d_color = boolToSwitch(g_keycons.colorDefTypes.findIndex(val => val === g_colorType) !== -1);
4233
+ g_stateObj.d_color = boolToSwitch(g_keycons.colorDefTypes.includes(g_colorType));
4231
4234
  }
4232
4235
  }
4233
4236
 
@@ -7593,7 +7596,7 @@ const setDifficulty = (_initFlg) => {
7593
7596
  document.getElementById(`${hiddenScr}Sprite`).style.display = C_DIS_NONE;
7594
7597
  setSetting(0, visibleScr);
7595
7598
 
7596
- g_shortcutObj.option.KeyR.id = g_settings.scrolls.includes(`Reverse`) ?
7599
+ g_shortcutObj.option.KeyR.id = g_settings.scrolls.includes(C_FLG_REVERSE) ?
7597
7600
  g_shortcutObj.option.KeyR.exId : g_shortcutObj.option.KeyR.dfId;
7598
7601
 
7599
7602
  if (g_settings.scrolls.length > 1) {
@@ -8142,7 +8145,7 @@ const setReverseDefault = () => {
8142
8145
  };
8143
8146
 
8144
8147
  const setReverse = _btn => {
8145
- if (!g_settings.scrolls.includes(`Reverse`) && g_headerObj.reverseUse) {
8148
+ if (!g_settings.scrolls.includes(C_FLG_REVERSE) && g_headerObj.reverseUse) {
8146
8149
  g_settings.reverseNum = (g_settings.reverseNum + 1) % 2;
8147
8150
  g_stateObj.reverse = g_settings.reverses[g_settings.reverseNum];
8148
8151
  setReverseView(_btn);
@@ -8153,7 +8156,7 @@ const setReverse = _btn => {
8153
8156
  const setReverseView = _btn => {
8154
8157
  _btn.classList.replace(g_cssObj[`button_Rev${g_settings.reverses[(g_settings.reverseNum + 1) % 2]}`],
8155
8158
  g_cssObj[`button_Rev${g_settings.reverses[g_settings.reverseNum]}`]);
8156
- if (!g_settings.scrolls.includes(`Reverse`) && g_headerObj.reverseUse) {
8159
+ if (!g_settings.scrolls.includes(C_FLG_REVERSE) && g_headerObj.reverseUse) {
8157
8160
  _btn.textContent = `${g_lblNameObj.Reverse}:${getStgDetailName(g_stateObj.reverse)}`;
8158
8161
  } else {
8159
8162
  _btn.textContent = `X`;
@@ -11894,7 +11897,7 @@ const getArrowSettings = () => {
11894
11897
 
11895
11898
  if (g_stateObj.playWindow === `SideScroll`) {
11896
11899
  if (g_stateObj.rotateEnabled) {
11897
- const sign = g_stateObj.playWindowType === `Reverse` ? -1 : 1;
11900
+ const sign = g_stateObj.playWindowType === C_FLG_REVERSE2 ? -1 : 1;
11898
11901
  changeStepRtn(`stepRtn`, 90 * sign);
11899
11902
  changeStepRtn(`stepHitRtn`, 90 * sign);
11900
11903
  changeStepRtn(`arrowRtn`, 90 * sign);
@@ -15467,12 +15470,12 @@ const getSelectedSettingList = (_orgShuffleFlg) => {
15467
15470
  `${g_stateObj.speed}${g_lblNameObj.multi}`,
15468
15471
  withOptions(g_stateObj.motion, C_FLG_OFF),
15469
15472
  `${withOptions(g_stateObj.reverse, C_FLG_OFF,
15470
- getStgDetailName(g_stateObj.scroll !== C_FLG_HYPHEN ? 'R-' : 'Reverse'))}${withOptions(g_stateObj.scroll, C_FLG_HYPHEN)}`,
15473
+ getStgDetailName(g_stateObj.scroll !== C_FLG_HYPHEN ? 'R-' : C_FLG_REVERSE))}${withOptions(g_stateObj.scroll, C_FLG_HYPHEN)}`,
15471
15474
  withOptions(g_stateObj.appearance, `Visible`) +
15472
15475
  ((g_appearanceRanges.includes(g_stateObj.appearance) && g_stateObj.filterLock === C_FLG_ON) ? `(${g_hidSudObj.filterPos}%)` : ``),
15473
15476
  withOptions(g_stateObj.gauge, g_settings.gauges[0]),
15474
15477
  withOptions(g_stateObj.playWindow, `Default`,
15475
- `${getStgDetailName(g_stateObj.playWindowType === `Reverse` ? `R-` : ``)}${getStgDetailName(g_stateObj.playWindow)}`),
15478
+ `${getStgDetailName(g_stateObj.playWindowType === C_FLG_REVERSE2 ? `R-` : ``)}${getStgDetailName(g_stateObj.playWindow)}`),
15476
15479
  withOptions(g_stateObj.stepArea, `Default`),
15477
15480
  withOptions(g_stateObj.frzReturn, C_FLG_OFF,
15478
15481
  `FR:${getStgDetailName(g_stateObj.frzReturn)}(${getStgDetailName(g_stateObj.frzReturnType)})`),
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Source by tickle
7
7
  * Created : 2019/11/19
8
- * Revised : 2026/03/30 (v46.5.1)
8
+ * Revised : 2026/03/31 (v46.5.2)
9
9
  *
10
10
  * https://github.com/cwtickle/danoniplus
11
11
  */
@@ -1350,7 +1350,7 @@ const g_settings = {
1350
1350
  playWindows: [`Default`, `Stairs`, `Slope`, `Distorted`, `SideScroll`],
1351
1351
  playWindowNum: 0,
1352
1352
 
1353
- playWindowTypes: [C_FLG_HYPHEN, `Reverse`],
1353
+ playWindowTypes: [C_FLG_HYPHEN, C_FLG_REVERSE2],
1354
1354
  playWindowTypeNum: 0,
1355
1355
 
1356
1356
  stepAreas: [`Default`, `Halfway`, `2Step`, `Mismatched`, `R-Mismatched`, `X-Flower`, `Alt-Crossing`],
@@ -1737,7 +1737,7 @@ const motionAlphaToggle = (_obj, _property) => {
1737
1737
  * PlayWindow適用関数
1738
1738
  * - 対応するキー名: g_settings.playWindows
1739
1739
  */
1740
- const g_playWindowDir = () => g_stateObj.playWindowType === `Reverse` ? 1 : -1;
1740
+ const g_playWindowDir = () => g_stateObj.playWindowType === C_FLG_REVERSE2 ? 1 : -1;
1741
1741
  const g_changeStairs = (_rad) => `rotate(${_rad * g_playWindowDir()}deg)`;
1742
1742
  const g_changeSkew = (_rad) => `Skew(${_rad * g_playWindowDir()}deg, ${_rad * g_playWindowDir()}deg) scaleY(0.9)`;
1743
1743
 
@@ -4465,6 +4465,7 @@ const g_lblNameObj = {
4465
4465
  'u_R-': `R-`,
4466
4466
  'u_---': `---`,
4467
4467
  'u_Reverse': `Reverse`,
4468
+ 'u_Rev': `Reverse`,
4468
4469
 
4469
4470
  'u_Mirror': `Mirror`,
4470
4471
  'u_X-Mirror': `X-Mirror`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "46.5.1",
3
+ "version": "46.5.3",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "./js/danoni_main.js",
6
6
  "jsdelivr": "./js/danoni_main.js",