danoniplus 29.4.11 → 29.4.12
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 +8 -17
- package/js/lib/danoni_constants.js +5 -5
- package/package.json +1 -1
- package/skin/skin_css.zip +0 -0
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/
|
|
7
|
+
* Revised : 2024/05/18
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 29.4.
|
|
12
|
-
const g_revisedDate = `2024/
|
|
11
|
+
const g_version = `Ver 29.4.12`;
|
|
12
|
+
const g_revisedDate = `2024/05/18`;
|
|
13
13
|
const g_alphaVersion = ``;
|
|
14
14
|
|
|
15
15
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
@@ -21,15 +21,6 @@ let g_localVersion2 = ``;
|
|
|
21
21
|
// シーンジャンプ:Scene
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* ▽ ソースコーディング
|
|
25
|
-
* https://github.com/cwtickle/danoniplus/blob/develop/.github/CONTRIBUTING.md
|
|
26
|
-
*
|
|
27
|
-
* - 定数・変数名
|
|
28
|
-
* -- グローバル変数: 変数の頭に`g_`をつける。基本はオブジェクトプロパティとして定義。
|
|
29
|
-
* -- 関数の引数 : アンダースコア始まりのキャメル表記。
|
|
30
|
-
* -- 定数 : `C_(カテゴリ)_(名前)`の形式。全て英大文字、数字、アンダースコアのみを使用。
|
|
31
|
-
* ※この定義方法は今後使用しない方針。
|
|
32
|
-
*
|
|
33
24
|
* ▽ 画面の構成
|
|
34
25
|
* [タイトル]-[設定]-[ディスプレイ]-[キーコンフィグ]-[譜面読込]-[メイン]-[リザルト]
|
|
35
26
|
* ⇒ 各画面に Init がついたものが画面の基本構成(ルート)を表す。
|
|
@@ -10201,7 +10192,7 @@ const resultInit = _ => {
|
|
|
10201
10192
|
|
|
10202
10193
|
}
|
|
10203
10194
|
|
|
10204
|
-
// Twitter用リザルト
|
|
10195
|
+
// X (Twitter)用リザルト
|
|
10205
10196
|
// スコアを上塗りする可能性があるため、カスタムイベント後に配置
|
|
10206
10197
|
const hashTag = (hasVal(g_headerObj.hashTag) ? ` ${g_headerObj.hashTag}` : ``);
|
|
10207
10198
|
let tweetDifData = `${getKeyName(g_headerObj.keyLabels[g_stateObj.scoreId])}${transKeyData}${getStgDetailName('k-')}${g_headerObj.difLabels[g_stateObj.scoreId]}${assistFlg}`;
|
|
@@ -10237,7 +10228,7 @@ const resultInit = _ => {
|
|
|
10237
10228
|
});
|
|
10238
10229
|
}
|
|
10239
10230
|
const resultText = `${unEscapeHtml(tweetResultTmp)}`;
|
|
10240
|
-
const tweetResult = `https://
|
|
10231
|
+
const tweetResult = `https://x.com/intent/tweet?text=${encodeURIComponent(resultText)}`;
|
|
10241
10232
|
|
|
10242
10233
|
/** 音源、ループ処理の停止 */
|
|
10243
10234
|
const resetCommonBtn = (_id, _name, _posObj, _func, _cssClass) =>
|
|
@@ -10260,14 +10251,14 @@ const resultInit = _ => {
|
|
|
10260
10251
|
copyTextToClipboard(resultText, g_msgInfoObj.I_0001);
|
|
10261
10252
|
}, g_lblPosObj.btnRsCopy, g_cssObj.button_Setting),
|
|
10262
10253
|
|
|
10263
|
-
// リザルトデータをTwitterへ転送
|
|
10254
|
+
// リザルトデータをX (Twitter)へ転送
|
|
10264
10255
|
createCss2Button(`btnTweet`, g_lblNameObj.b_tweet, _ => true, Object.assign(g_lblPosObj.btnRsTweet, {
|
|
10265
10256
|
resetFunc: _ => openLink(tweetResult),
|
|
10266
10257
|
}), g_cssObj.button_Tweet),
|
|
10267
10258
|
|
|
10268
|
-
//
|
|
10259
|
+
// Discordへのリンク
|
|
10269
10260
|
createCss2Button(`btnGitter`, g_lblNameObj.b_gitter, _ => true, Object.assign(g_lblPosObj.btnRsGitter, {
|
|
10270
|
-
resetFunc: _ => openLink(`https://
|
|
10261
|
+
resetFunc: _ => openLink(`https://discord.gg/5Hxu4wDEZR`),
|
|
10271
10262
|
}), g_cssObj.button_Default),
|
|
10272
10263
|
|
|
10273
10264
|
// リトライ
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Source by tickle
|
|
7
7
|
* Created : 2019/11/19
|
|
8
|
-
* Revised :
|
|
8
|
+
* Revised : 2024/05/18 (v29.4.12)
|
|
9
9
|
*
|
|
10
10
|
* https://github.com/cwtickle/danoniplus
|
|
11
11
|
*/
|
|
@@ -1311,8 +1311,8 @@ const g_shortcutObj = {
|
|
|
1311
1311
|
ShiftLeft_Tab: { id: `btnBack` },
|
|
1312
1312
|
ControlLeft_KeyC: { id: `` },
|
|
1313
1313
|
KeyC: { id: `btnCopy`, reset: true },
|
|
1314
|
-
|
|
1315
|
-
|
|
1314
|
+
KeyX: { id: `btnTweet`, reset: true },
|
|
1315
|
+
KeyD: { id: `btnGitter`, reset: true },
|
|
1316
1316
|
Backspace: { id: `btnRetry` },
|
|
1317
1317
|
},
|
|
1318
1318
|
};
|
|
@@ -2919,8 +2919,8 @@ const g_lblNameObj = {
|
|
|
2919
2919
|
b_reset: `Reset`,
|
|
2920
2920
|
b_settings: `To Settings`,
|
|
2921
2921
|
b_copy: `CopyResult`,
|
|
2922
|
-
b_tweet: `
|
|
2923
|
-
b_gitter: `
|
|
2922
|
+
b_tweet: `Post X`,
|
|
2923
|
+
b_gitter: `Discord`,
|
|
2924
2924
|
b_retry: `Retry`,
|
|
2925
2925
|
|
|
2926
2926
|
Difficulty: `Difficulty`,
|
package/package.json
CHANGED
|
Binary file
|