danoniplus 28.1.0 → 28.1.2
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 +21 -33
- package/package.json +1 -1
package/js/danoni_main.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 28.1.
|
|
11
|
+
const g_version = `Ver 28.1.2`;
|
|
12
12
|
const g_revisedDate = `2022/10/02`;
|
|
13
13
|
const g_alphaVersion = ``;
|
|
14
14
|
|
|
@@ -4971,7 +4971,9 @@ const createOptionWindow = _sprite => {
|
|
|
4971
4971
|
resetColorType({ _fromObj: storageObj, _from: addKey, _toObj: g_dfColorObj, _to: g_keycons.colorSelf });
|
|
4972
4972
|
|
|
4973
4973
|
} else {
|
|
4974
|
-
|
|
4974
|
+
if (g_localStorage.colorType === g_keycons.colorSelf) {
|
|
4975
|
+
g_colorType = `Default`;
|
|
4976
|
+
}
|
|
4975
4977
|
g_keycons.colorTypes = g_keycons.colorTypes.filter(val => val !== g_keycons.colorSelf);
|
|
4976
4978
|
}
|
|
4977
4979
|
|
|
@@ -4979,21 +4981,13 @@ const createOptionWindow = _sprite => {
|
|
|
4979
4981
|
|
|
4980
4982
|
// カラーグループ、シャッフルグループの設定
|
|
4981
4983
|
[`color`, `shuffle`].forEach(type => {
|
|
4982
|
-
|
|
4983
|
-
g_keycons[`${type}Groups`] = [0];
|
|
4984
|
-
while (g_keyObj[`${type}${keyCtrlPtn}_${k}`] !== undefined) {
|
|
4985
|
-
g_keycons[`${type}Groups`].push(k);
|
|
4986
|
-
k++;
|
|
4987
|
-
}
|
|
4988
|
-
|
|
4984
|
+
resetGroupList(type, keyCtrlPtn);
|
|
4989
4985
|
if (g_keyObj.currentPtn === -1) {
|
|
4990
4986
|
if (storageObj[`${type}${g_keyObj.currentKey}_-1_-1`] !== undefined) {
|
|
4991
|
-
resetGroupList(type);
|
|
4992
4987
|
g_keyObj[`${type}${g_keyObj.currentKey}_-1`] = structuredClone(storageObj[`${type}${g_keyObj.currentKey}_-1_-1`]);
|
|
4993
4988
|
}
|
|
4994
4989
|
g_keyObj[`${type}${g_keyObj.currentKey}_-1_-1`] = structuredClone(g_keyObj[`${type}${g_keyObj.currentKey}_-1`]);
|
|
4995
4990
|
} else {
|
|
4996
|
-
resetGroupList(type);
|
|
4997
4991
|
g_keyObj[`${type}${keyCtrlPtn}`] = structuredClone(g_keyObj[`${type}${keyCtrlPtn}_0`]);
|
|
4998
4992
|
}
|
|
4999
4993
|
});
|
|
@@ -5353,13 +5347,19 @@ const makeMiniCssButton = (_id, _directionFlg, _heightPos, _func, { dx = 0, dy =
|
|
|
5353
5347
|
* カラーグループ、シャッフルグループの再設定
|
|
5354
5348
|
* @param {string} _type
|
|
5355
5349
|
*/
|
|
5356
|
-
const resetGroupList = (_type) => {
|
|
5350
|
+
const resetGroupList = (_type, _keyCtrlPtn) => {
|
|
5351
|
+
let k = 1;
|
|
5352
|
+
g_keycons[`${_type}Groups`] = [0];
|
|
5353
|
+
|
|
5357
5354
|
if (g_keyObj.currentPtn === -1) {
|
|
5358
5355
|
g_keycons[`${_type}GroupNum`] = -1;
|
|
5359
5356
|
g_keycons[`${_type}Groups`] = addValtoArray(g_keycons[`${_type}Groups`], -1);
|
|
5360
5357
|
} else {
|
|
5361
5358
|
g_keycons[`${_type}GroupNum`] = 0;
|
|
5362
|
-
|
|
5359
|
+
}
|
|
5360
|
+
while (g_keyObj[`${_type}${_keyCtrlPtn}_${k}`] !== undefined) {
|
|
5361
|
+
g_keycons[`${_type}Groups`].push(k);
|
|
5362
|
+
k++;
|
|
5363
5363
|
}
|
|
5364
5364
|
};
|
|
5365
5365
|
|
|
@@ -5607,7 +5607,7 @@ const keyConfigInit = (_kcType = g_kcType) => {
|
|
|
5607
5607
|
const maxLeftX = Math.min(0, (kWidth - C_ARW_WIDTH) / 2 - maxLeftPos * g_keyObj.blank);
|
|
5608
5608
|
|
|
5609
5609
|
// カラーグループ、シャッフルグループの再設定
|
|
5610
|
-
[`color`, `shuffle`].forEach(type => resetGroupList(type));
|
|
5610
|
+
[`color`, `shuffle`].forEach(type => resetGroupList(type, keyCtrlPtn));
|
|
5611
5611
|
|
|
5612
5612
|
/**
|
|
5613
5613
|
* keyconSpriteのスクロール位置調整
|
|
@@ -5804,9 +5804,8 @@ const keyConfigInit = (_kcType = g_kcType) => {
|
|
|
5804
5804
|
}
|
|
5805
5805
|
};
|
|
5806
5806
|
const setGroup = (_type, _scrollNum = 1) => {
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
g_keyObj[`${_type}${keyCtrlPtn}`] = structuredClone(g_keyObj[`${_type}${keyCtrlPtn}_${groupNum}`]);
|
|
5807
|
+
g_keycons[`${_type}GroupNum`] = g_keycons[`${_type}Groups`][getNextNum(_scrollNum, `${_type}Groups`, g_keycons[`${_type}GroupNum`])];
|
|
5808
|
+
g_keyObj[`${_type}${keyCtrlPtn}`] = structuredClone(g_keyObj[`${_type}${keyCtrlPtn}_${g_keycons[`${_type}GroupNum`]}`]);
|
|
5810
5809
|
viewGroup(_type);
|
|
5811
5810
|
};
|
|
5812
5811
|
|
|
@@ -7942,7 +7941,8 @@ const getArrowSettings = _ => {
|
|
|
7942
7941
|
|
|
7943
7942
|
[`color`, `shuffle`].forEach(type => {
|
|
7944
7943
|
const groupNum = g_keycons[`${type}GroupNum`];
|
|
7945
|
-
storageObj[`${type}${g_keyObj.currentKey}_-1_-1`] = structuredClone(g_keyObj[`${type}${keyCtrlPtn}_${groupNum}`]);
|
|
7944
|
+
storageObj[`${type}${g_keyObj.currentKey}_-1_-1`] = structuredClone(g_keyObj[`${type}${keyCtrlPtn}_${groupNum}`]);
|
|
7945
|
+
g_keyObj[`${type}${g_keyObj.currentKey}_-1_${groupNum}`] = structuredClone(g_dfKeyObj[`${type}${keyCtrlPtn}_${groupNum}`]);
|
|
7946
7946
|
g_keyObj[`${type}${keyCtrlPtn}_${groupNum}`] = structuredClone(g_dfKeyObj[`${type}${keyCtrlPtn}_${groupNum}`]);
|
|
7947
7947
|
});
|
|
7948
7948
|
|
|
@@ -8231,7 +8231,7 @@ const mainInit = _ => {
|
|
|
8231
8231
|
const musicTitle = g_headerObj.musicTitles[g_headerObj.musicNos[g_stateObj.scoreId]] || g_headerObj.musicTitle;
|
|
8232
8232
|
const artistName = g_headerObj.artistNames[g_headerObj.musicNos[g_stateObj.scoreId]] || g_headerObj.artistName;
|
|
8233
8233
|
const assistFlg = (g_autoPlaysBase.includes(g_stateObj.autoPlay) ? `` : `-${getStgDetailName(g_stateObj.autoPlay)}${getStgDetailName('less')}`);
|
|
8234
|
-
const shuffleName = (g_stateObj.shuffle !== C_FLG_OFF ? `: ${
|
|
8234
|
+
const shuffleName = (g_stateObj.shuffle !== C_FLG_OFF ? `: ${getStgDetailName(g_stateObj.shuffle)}` : ``);
|
|
8235
8235
|
|
|
8236
8236
|
// 曲名・アーティスト名、譜面名のサイズ調整
|
|
8237
8237
|
const checkMusicSiz = (_text, _siz) => getFontSize(_text, g_headerObj.playingWidth - g_headerObj.customViewWidth - 125, getBasicFont(), _siz);
|
|
@@ -9819,7 +9819,7 @@ const resultInit = _ => {
|
|
|
9819
9819
|
`${getKeyName(g_headerObj.keyLabels[g_stateObj.scoreId])}${transKeyData} ${getStgDetailName('key')} / ${g_headerObj.difLabels[g_stateObj.scoreId]}`,
|
|
9820
9820
|
`${withOptions(g_autoPlaysBase.includes(g_stateObj.autoPlay), true, `-${getStgDetailName(g_stateObj.autoPlay)}${getStgDetailName('less')}`)}`,
|
|
9821
9821
|
`${withOptions(g_headerObj.makerView, false, `(${g_headerObj.creatorNames[g_stateObj.scoreId]})`)}`,
|
|
9822
|
-
`${withOptions(g_stateObj.shuffle, C_FLG_OFF, `[${
|
|
9822
|
+
`${withOptions(g_stateObj.shuffle, C_FLG_OFF, `[${getStgDetailName(g_stateObj.shuffle)}]`)}`
|
|
9823
9823
|
].filter(value => value !== ``).join(` `);
|
|
9824
9824
|
|
|
9825
9825
|
let playStyleData = [
|
|
@@ -10026,7 +10026,7 @@ const resultInit = _ => {
|
|
|
10026
10026
|
const hashTag = (hasVal(g_headerObj.hashTag) ? ` ${g_headerObj.hashTag}` : ``);
|
|
10027
10027
|
let tweetDifData = `${getKeyName(g_headerObj.keyLabels[g_stateObj.scoreId])}${transKeyData}${getStgDetailName('k-')}${g_headerObj.difLabels[g_stateObj.scoreId]}${assistFlg}`;
|
|
10028
10028
|
if (g_stateObj.shuffle !== `OFF`) {
|
|
10029
|
-
tweetDifData += `:${
|
|
10029
|
+
tweetDifData += `:${getStgDetailName(g_stateObj.shuffle)}`;
|
|
10030
10030
|
}
|
|
10031
10031
|
const twiturl = new URL(g_localStorageUrl);
|
|
10032
10032
|
twiturl.searchParams.append(`scoreId`, g_stateObj.scoreId);
|
|
@@ -10154,18 +10154,6 @@ const resultInit = _ => {
|
|
|
10154
10154
|
g_skinJsObj.result.forEach(func => func());
|
|
10155
10155
|
};
|
|
10156
10156
|
|
|
10157
|
-
/**
|
|
10158
|
-
* シャッフル名称の取得
|
|
10159
|
-
* @returns
|
|
10160
|
-
*/
|
|
10161
|
-
const getShuffleName = _ => {
|
|
10162
|
-
let shuffleName = getStgDetailName(g_stateObj.shuffle);
|
|
10163
|
-
if (!g_stateObj.shuffle.endsWith(`+`)) {
|
|
10164
|
-
shuffleName += setScoreIdHeader(g_keycons.shuffleGroupNum);
|
|
10165
|
-
}
|
|
10166
|
-
return shuffleName;
|
|
10167
|
-
};
|
|
10168
|
-
|
|
10169
10157
|
/**
|
|
10170
10158
|
* 結果表示作成(曲名、オプション)
|
|
10171
10159
|
* @param {string} _id
|