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