danoniplus 34.7.4 → 34.7.6

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 : 2024/04/03
7
+ * Revised : 2024/06/08
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 34.7.4`;
12
- const g_revisedDate = `2024/04/03`;
11
+ const g_version = `Ver 34.7.6`;
12
+ const g_revisedDate = `2024/06/08`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -20,15 +20,6 @@ let g_localVersion2 = ``;
20
20
  // シーンジャンプ:Scene
21
21
 
22
22
  /**
23
- * ▽ ソースコーディング
24
- * https://github.com/cwtickle/danoniplus/blob/develop/.github/CONTRIBUTING.md
25
- *
26
- * - 定数・変数名
27
- * -- グローバル変数: 変数の頭に`g_`をつける。基本はオブジェクトプロパティとして定義。
28
- * -- 関数の引数  : アンダースコア始まりのキャメル表記。
29
- * -- 定数     : `C_(カテゴリ)_(名前)`の形式。全て英大文字、数字、アンダースコアのみを使用。
30
- * ※この定義方法は今後使用しない方針。
31
- *
32
23
  * ▽ 画面の構成
33
24
  * [タイトル]-[設定]-[ディスプレイ]-[キーコンフィグ]-[譜面読込]-[メイン]-[リザルト]
34
25
  * ⇒ 各画面に Init がついたものが画面の基本構成(ルート)を表す。
@@ -8814,8 +8805,8 @@ const mainInit = _ => {
8814
8805
  const filterCss = g_stateObj.filterLock === C_FLG_OFF ? g_cssObj.life_Failed : g_cssObj.life_Cleared;
8815
8806
  [`filterBar0`, `filterBar1`, `borderBar0`, `borderBar1`].forEach(obj =>
8816
8807
  mainSprite.appendChild(createColorObject2(obj, g_lblPosObj.filterBar, filterCss)));
8817
- borderBar0.style.top = wUnit(g_posObj.stepDiffY);
8818
- borderBar1.style.top = wUnit(g_posObj.stepDiffY + g_posObj.arrowHeight);
8808
+ borderBar0.style.top = wUnit(g_posObj.stepDiffY + g_stateObj.hitPosition);
8809
+ borderBar1.style.top = wUnit(g_posObj.stepDiffY + g_posObj.arrowHeight - g_stateObj.hitPosition);
8819
8810
 
8820
8811
  if (g_appearanceRanges.includes(g_stateObj.appearance)) {
8821
8812
  mainSprite.appendChild(createDivCss2Label(`filterView`, ``, g_lblPosObj.filterView));
@@ -9968,8 +9959,8 @@ const changeAppearanceFilter = (_appearance, _num = 10) => {
9968
9959
  $id(`arrowSprite${topNum}`).clipPath = topShape;
9969
9960
  $id(`arrowSprite${bottomNum}`).clipPath = bottomShape;
9970
9961
 
9971
- $id(`filterBar0`).top = wUnit(g_posObj.arrowHeight * _num / 100);
9972
- $id(`filterBar1`).top = wUnit(g_posObj.arrowHeight * (100 - _num) / 100);
9962
+ $id(`filterBar0`).top = wUnit(g_posObj.arrowHeight * _num / 100 + g_stateObj.hitPosition);
9963
+ $id(`filterBar1`).top = wUnit(g_posObj.arrowHeight * (100 - _num) / 100 - g_stateObj.hitPosition);
9973
9964
 
9974
9965
  if (g_appearanceRanges.includes(_appearance)) {
9975
9966
  $id(`filterView`).top =
@@ -10812,7 +10803,7 @@ const resultInit = _ => {
10812
10803
 
10813
10804
  }
10814
10805
 
10815
- // Twitter用リザルト
10806
+ // X (Twitter)用リザルト
10816
10807
  // スコアを上塗りする可能性があるため、カスタムイベント後に配置
10817
10808
  const hashTag = (hasVal(g_headerObj.hashTag) ? ` ${g_headerObj.hashTag}` : ``);
10818
10809
  let tweetDifData = `${getKeyName(g_headerObj.keyLabels[g_stateObj.scoreId])}${transKeyData}${getStgDetailName('k-')}${g_headerObj.difLabels[g_stateObj.scoreId]}${assistFlg}`;
@@ -10853,7 +10844,7 @@ const resultInit = _ => {
10853
10844
  tweetResultTmp = tweetResultTmp.split(`[${key}]`).join(g_resultObj[g_presetObj.resultVals[key]]));
10854
10845
  }
10855
10846
  const resultText = `${unEscapeHtml(tweetResultTmp)}`;
10856
- const tweetResult = `https://twitter.com/intent/tweet?text=${encodeURIComponent(resultText)}`;
10847
+ const tweetResult = `https://x.com/intent/post?text=${encodeURIComponent(resultText)}`;
10857
10848
  const currentDateTime = new Date().toLocaleString();
10858
10849
 
10859
10850
  /**
@@ -10987,14 +10978,14 @@ const resultInit = _ => {
10987
10978
  */
10988
10979
  const makeLinkButton = (_div = divRoot, _param = ``) => {
10989
10980
  multiAppend(_div,
10990
- // リザルトデータをTwitterへ転送
10981
+ // リザルトデータをX (Twitter)へ転送
10991
10982
  createCss2Button(`btnTweet${_param}`, g_lblNameObj.b_tweet, _ => true, Object.assign(g_lblPosObj.btnRsTweet, {
10992
10983
  resetFunc: _ => openLink(tweetResult),
10993
10984
  }), g_cssObj.button_Tweet),
10994
10985
 
10995
- // Gitterへのリンク
10986
+ // Discordへのリンク
10996
10987
  createCss2Button(`btnGitter${_param}`, g_lblNameObj.b_gitter, _ => true, Object.assign(g_lblPosObj.btnRsGitter, {
10997
- resetFunc: _ => openLink(`https://app.gitter.im/#/room/#danonicw_freeboard:gitter.im`),
10988
+ resetFunc: _ => openLink(`https://discord.gg/5Hxu4wDEZR`),
10998
10989
  }), g_cssObj.button_Default),
10999
10990
  );
11000
10991
  }
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Source by tickle
7
7
  * Created : 2019/11/19
8
- * Revised : 2024/01/12 (v34.7.0)
8
+ * Revised : 2024/05/18 (v34.7.5)
9
9
  *
10
10
  * https://github.com/cwtickle/danoniplus
11
11
  */
@@ -1579,8 +1579,8 @@ const g_shortcutObj = {
1579
1579
  ControlLeft_KeyC: { id: `` },
1580
1580
  ControlRight_KeyC: { id: `` },
1581
1581
  KeyC: { id: `btnCopy`, reset: true },
1582
- KeyT: { id: `btnTweet`, reset: true },
1583
- KeyG: { id: `btnGitter`, reset: true },
1582
+ KeyX: { id: `btnTweet`, reset: true }, // X
1583
+ KeyD: { id: `btnGitter`, reset: true }, // Discord
1584
1584
  KeyP: { id: `btnCopyImage` },
1585
1585
  Backspace: { id: `btnRetry` },
1586
1586
  },
@@ -2700,8 +2700,8 @@ const g_lblNameObj = {
2700
2700
  b_reset: `Reset`,
2701
2701
  b_settings: `To Settings`,
2702
2702
  b_copy: `CopyResult`,
2703
- b_tweet: `Tweet`,
2704
- b_gitter: `Gitter`,
2703
+ b_tweet: `Post X`,
2704
+ b_gitter: `Discord`,
2705
2705
  b_retry: `Retry`,
2706
2706
  b_close: `Close`,
2707
2707
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "34.7.4",
3
+ "version": "34.7.6",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {