danoniplus 34.7.6 → 34.7.8
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 +31 -13
- package/package.json +1 -1
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 : 2024/06/
|
|
7
|
+
* Revised : 2024/06/20
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 34.7.
|
|
12
|
-
const g_revisedDate = `2024/06/
|
|
11
|
+
const g_version = `Ver 34.7.8`;
|
|
12
|
+
const g_revisedDate = `2024/06/25`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
15
15
|
let g_localVersion = ``;
|
|
@@ -4670,7 +4670,7 @@ const drawSpeedGraph = _scoreId => {
|
|
|
4670
4670
|
drawBaseLine(context);
|
|
4671
4671
|
|
|
4672
4672
|
const avgX = [0, 0];
|
|
4673
|
-
const avgSubX = [
|
|
4673
|
+
const avgSubX = [0, 0];
|
|
4674
4674
|
const lineX = [125, 210];
|
|
4675
4675
|
Object.keys(speedObj).forEach((speedType, j) => {
|
|
4676
4676
|
context.beginPath();
|
|
@@ -7595,6 +7595,19 @@ const scoreConvert = (_dosObj, _scoreId, _preblankFrame, _dummyNo = ``,
|
|
|
7595
7595
|
getRefData(_header, `${_type}_data`)
|
|
7596
7596
|
];
|
|
7597
7597
|
|
|
7598
|
+
/**
|
|
7599
|
+
* 譜面データの優先順配列パターンの取得
|
|
7600
|
+
* @param {string} _type
|
|
7601
|
+
* @param {number} _scoreNo
|
|
7602
|
+
* @returns
|
|
7603
|
+
*/
|
|
7604
|
+
const getPriorityVal = (_type, _scoreNo) => [
|
|
7605
|
+
`${_type}${g_localeObj.val}${_scoreNo}_data`,
|
|
7606
|
+
`${_type}${g_localeObj.val}_data`,
|
|
7607
|
+
`${_type}${_scoreNo}_data`,
|
|
7608
|
+
`${_type}_data`
|
|
7609
|
+
];
|
|
7610
|
+
|
|
7598
7611
|
/**
|
|
7599
7612
|
* 歌詞表示、背景・マスクデータの優先順取得
|
|
7600
7613
|
*/
|
|
@@ -7630,16 +7643,25 @@ const scoreConvert = (_dosObj, _scoreId, _preblankFrame, _dummyNo = ``,
|
|
|
7630
7643
|
*/
|
|
7631
7644
|
const makeWordData = _scoreNo => {
|
|
7632
7645
|
const wordDataList = [];
|
|
7646
|
+
const wordTargets = [];
|
|
7633
7647
|
let wordReverseFlg = false;
|
|
7634
7648
|
const divideCnt = getKeyInfo().divideCnt;
|
|
7635
|
-
const addDataList = (_type = ``) =>
|
|
7649
|
+
const addDataList = (_type = ``) => wordTargets.push(...getPriorityVal(_type, _scoreNo));
|
|
7636
7650
|
getPriorityHeader().forEach(val => addDataList(val));
|
|
7651
|
+
makeDedupliArray(wordTargets).forEach(val => wordDataList.push(getRefData(`word`, val)));
|
|
7637
7652
|
|
|
7638
7653
|
if (g_stateObj.reverse === C_FLG_ON) {
|
|
7654
|
+
let wordTarget = ``;
|
|
7655
|
+
for (let val of makeDedupliArray(wordTargets)) {
|
|
7656
|
+
if (getRefData(`word`, val) !== undefined) {
|
|
7657
|
+
wordTarget = val;
|
|
7658
|
+
break;
|
|
7659
|
+
}
|
|
7660
|
+
}
|
|
7639
7661
|
|
|
7640
7662
|
// wordRev_dataが指定されている場合はそのままの位置を採用
|
|
7641
7663
|
// word_dataのみ指定されている場合、下記ルールに従って設定
|
|
7642
|
-
if (
|
|
7664
|
+
if (!wordTarget.includes(`Rev`) && g_stateObj.scroll === `---`) {
|
|
7643
7665
|
// Reverse時の歌詞の自動反転制御設定
|
|
7644
7666
|
if (g_headerObj.wordAutoReverse !== `auto`) {
|
|
7645
7667
|
wordReverseFlg = g_headerObj.wordAutoReverse === C_FLG_ON;
|
|
@@ -10089,6 +10111,7 @@ const changeHitFrz = (_j, _k, _name, _difFrame = 0) => {
|
|
|
10089
10111
|
|
|
10090
10112
|
const styfrzBar = $id(`${_name}Bar${frzNo}`);
|
|
10091
10113
|
const styfrzBtm = $id(`${_name}Btm${frzNo}`);
|
|
10114
|
+
const styfrzTop = $id(`${_name}Top${frzNo}`);
|
|
10092
10115
|
const styfrzTopShadow = $id(`${_name}TopShadow${frzNo}`);
|
|
10093
10116
|
const styfrzBtmShadow = $id(`${_name}BtmShadow${frzNo}`);
|
|
10094
10117
|
const colorPos = g_keyObj[`color${g_keyObj.currentKey}_${g_keyObj.currentPtn}`][_j];
|
|
@@ -10114,7 +10137,8 @@ const changeHitFrz = (_j, _k, _name, _difFrame = 0) => {
|
|
|
10114
10137
|
styfrzBar.background = g_workObj[`${_name}HitBarColors`][_j];
|
|
10115
10138
|
styfrzBtm.top = wUnit(currentFrz.btmY);
|
|
10116
10139
|
styfrzBtm.background = g_workObj[`${_name}HitColors`][_j];
|
|
10117
|
-
|
|
10140
|
+
styfrzTop.top = wUnit(- hitPos);
|
|
10141
|
+
styfrzTopShadow.top = styfrzTop.top;
|
|
10118
10142
|
styfrzBtmShadow.top = styfrzBtm.top;
|
|
10119
10143
|
if (_name === `frz`) {
|
|
10120
10144
|
if (g_headerObj.frzShadowColor[colorPos][1] !== ``) {
|
|
@@ -10141,16 +10165,10 @@ const changeFailedFrz = (_j, _k) => {
|
|
|
10141
10165
|
$id(`frzHit${_j}`).opacity = 0;
|
|
10142
10166
|
$id(`frzTop${frzNo}`).display = C_DIS_INHERIT;
|
|
10143
10167
|
$id(`frzTop${frzNo}`).background = `#cccccc`;
|
|
10144
|
-
$id(`frzTopShadow${frzNo}`).opacity = 1;
|
|
10145
10168
|
$id(`frzBar${frzNo}`).background = `#999999`;
|
|
10146
10169
|
$id(`frzBar${frzNo}`).opacity = 1;
|
|
10147
10170
|
$id(`frzBtm${frzNo}`).background = `#cccccc`;
|
|
10148
10171
|
|
|
10149
|
-
// 判定位置調整分の補正
|
|
10150
|
-
const hitPos = g_workObj.hitPosition * g_workObj.scrollDir[_j];
|
|
10151
|
-
$id(`frzTop${frzNo}`).top = wUnit(- hitPos);
|
|
10152
|
-
$id(`frzTopShadow${frzNo}`).top = wUnit(- hitPos);
|
|
10153
|
-
|
|
10154
10172
|
const colorPos = g_keyObj[`color${g_keyObj.currentKey}_${g_keyObj.currentPtn}`][_j];
|
|
10155
10173
|
if (g_headerObj.frzShadowColor[colorPos][0] !== ``) {
|
|
10156
10174
|
$id(`frzTopShadow${frzNo}`).background = `#333333`;
|