danoniplus 37.7.1 → 37.8.0

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/10/28
7
+ * Revised : 2024/11/01
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 37.7.1`;
12
- const g_revisedDate = `2024/10/28`;
11
+ const g_version = `Ver 37.8.0`;
12
+ const g_revisedDate = `2024/11/01`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -56,6 +56,7 @@ window.onload = async () => {
56
56
  // ロード直後に定数・初期化ファイル、旧バージョン定義関数を読込
57
57
  await loadScript2(`${g_rootPath}../js/lib/danoni_localbinary.js?${g_randTime}`, false);
58
58
  await loadScript2(`${g_rootPath}../js/lib/danoni_constants.js?${g_randTime}`);
59
+ await loadScript2(`${g_rootPath}../js/lib/legacy_functions.js?${g_randTime}`, false);
59
60
  initialControl();
60
61
  };
61
62
 
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Source by tickle
7
7
  * Created : 2019/11/19
8
- * Revised : 2024/09/25 (v37.6.1)
8
+ * Revised : 2024/11/01 (v37.8.0)
9
9
  *
10
10
  * https://github.com/cwtickle/danoniplus
11
11
  */
@@ -3442,11 +3442,12 @@ const g_skinJsObj = {
3442
3442
  result: [],
3443
3443
  };
3444
3444
 
3445
- /** 過去関数の互換 */
3445
+ /** @deprecated */
3446
3446
  const convertreplaceNums = () => {
3447
3447
  console.warn('convertreplaceNums is deprecated. Use convertReplaceNums instead.');
3448
3448
  convertReplaceNums();
3449
3449
  };
3450
+ /** @deprecated */
3450
3451
  const MainInit = () => {
3451
3452
  console.warn('MainInit is deprecated. Use mainInit instead.');
3452
3453
  mainInit();
@@ -0,0 +1,203 @@
1
+ 'use strict';
2
+ /**
3
+ * Dancing☆Onigiri (CW Edition)
4
+ * 旧関数のラップ関数群
5
+ *
6
+ * Source by tickle
7
+ * Created : 2024/10/29
8
+ * Revised : 2024/11/01 (v37.8.0)
9
+ *
10
+ * https://github.com/cwtickle/danoniplus
11
+ */
12
+
13
+ /** @deprecated */
14
+ const createSprite = (_parentObjName, _newObjName, x, y, w, h, _options = {}) =>
15
+ createEmptySprite(document.getElementById(_parentObjName), _newObjName, { x, y, w, h, title: _options?.description });
16
+
17
+ /** @deprecated */
18
+ const createDivLabel = (_id, x, y, w, h, siz, color, _text) =>
19
+ createDivCss2Label(_id, _text, { x, y, w, h, siz, color });
20
+
21
+ /** @deprecated */
22
+ const createDivCustomLabel = (_id, x, y, w, h, siz, color, _text, _font) =>
23
+ createDivCss2Label(_id, _text, { x, y, w, h, siz, color, fontFamily: _font });
24
+
25
+ /** @deprecated */
26
+ const createDivCssLabel = (_id, x, y, w, h, siz, _text, _class = g_cssObj.title_base) =>
27
+ createDivCss2Label(_id, _text, { x, y, w, h, siz }, _class);
28
+
29
+ /** @deprecated */
30
+ const createArrowEffect = (_id, color, x, y, siz, rotate) =>
31
+ createColorObject2(_id, { x, y, w: siz, h: siz, rotate, background: color });
32
+
33
+ /** @deprecated */
34
+ const createColorObject = (_id, color, x, y, w, h, rotate = ``, styleName = ``) =>
35
+ createColorObject2(_id, { x, y, w, h, rotate, styleName, background: color });
36
+
37
+ /** @deprecated */
38
+ const createButton = (_obj, _func) => {
39
+ const div = createCss2Button(_obj.id, _obj.name, _func, {
40
+ x: _obj.x, y: _obj.y, w: _obj.w, h: _obj.h,
41
+ siz: _obj?.fontsize, align: _obj?.align, animationName: _obj?.animationName,
42
+ backgroundColor: _obj?.normalColor,
43
+ });
44
+ div.onmouseover = () => div.style.backgroundColor = _obj?.hoverColor;
45
+ div.onmouseout = () => div.style.backgroundColor = _obj?.normalColor;
46
+ return div;
47
+ };
48
+ /** @deprecated */
49
+ const createCssButton = (_obj, _func) =>
50
+ createCss2Button(_obj.id, _obj.name, _func, {
51
+ x: _obj?.x, y: _obj?.y, w: _obj?.w, h: _obj?.h,
52
+ siz: _obj?.fontsize, align: _obj?.align, animationName: _obj?.animationName
53
+ }, _obj?.class);
54
+
55
+ /** @deprecated */
56
+ const makeSettingLblButton = (_id, _name, _heightPos, _func) =>
57
+ makeSettingLblCssButton(_id, _name, _heightPos, _func);
58
+
59
+ /** @deprecated */
60
+ const makeDifLblButton = (_id, _name, _heightPos, _func) =>
61
+ makeDifLblCssButton(_id, _name, _heightPos, _func);
62
+
63
+ /** @deprecated */
64
+ const makeMiniButton = (_id, _directionFlg, _heightPos, _func) =>
65
+ makeMiniCssButton(_id, _directionFlg, _heightPos, _func);
66
+
67
+ /** @deprecated */
68
+ const makeResultPlayData = (_id, _x, _color, _heightPos, _text, _align) => {
69
+ const div = makeCssResultPlayData(_id, _x, ``, _heightPos, _text, _align);
70
+ div.style.color = _color;
71
+ return div;
72
+ };
73
+ /** @deprecated */
74
+ const makeResultSymbol = (_id, _x, _color, _heightPos, _text, _align) => {
75
+ const div = makeCssResultSymbol(_id, _x, ``, _heightPos, _text, _align);
76
+ div.style.color = _color;
77
+ return div;
78
+ };
79
+ /** @deprecated */
80
+ const checkArrayVal = (_checkArray, _type, _minLength) => {
81
+ const checkFlg = hasArrayList(_checkArray, _minLength);
82
+ if (_type === C_TYP_FLOAT) {
83
+ if (Number.isNaN(parseFloat(_checkArray[0]))) {
84
+ return false;
85
+ }
86
+ } else if (_type === C_TYP_NUMBER) {
87
+ if (Number.isNaN(parseInt(_checkArray[0], 10))) {
88
+ return false;
89
+ }
90
+ }
91
+ return checkFlg;
92
+ };
93
+ /** @deprecated */
94
+ const paddingLeft = (_str, _length, _chr) => String(_str)?.padStart(_length, _chr);
95
+
96
+ /** @deprecated */
97
+ let C_CLR_DEFAULT = `#333333`;
98
+ /** @deprecated */
99
+ let C_CLR_DEFHOVER = `#666666`;
100
+ /** @deprecated */
101
+ let C_CLR_BACK = `#000099`;
102
+ /** @deprecated */
103
+ let C_CLR_NEXT = `#990000`;
104
+ /** @deprecated */
105
+ let C_CLR_SETTING = `#999900`;
106
+ /** @deprecated */
107
+ let C_CLR_RESET = `#009900`;
108
+ /** @deprecated */
109
+ let C_CLR_TWEET = `#009999`;
110
+ /** @deprecated */
111
+ let C_CLR_TEXT = `#ffffff`;
112
+ /** @deprecated */
113
+ let C_CLR_TITLE = `#cccccc`;
114
+ /** @deprecated */
115
+ let C_CLR_LOADING_BAR = `#eeeeee`;
116
+ /** @deprecated */
117
+ let C_CLR_LNK = `#111111`;
118
+ /** @deprecated */
119
+ const C_CLR_II = `#66ffff`;
120
+ /** @deprecated */
121
+ const C_CLR_SHAKIN = `#99ff99`;
122
+ /** @deprecated */
123
+ const C_CLR_MATARI = `#ff9966`;
124
+ /** @deprecated */
125
+ const C_CLR_UWAN = `#ff9999`;
126
+ /** @deprecated */
127
+ const C_CLR_SHOBON = `#ccccff`;
128
+ /** @deprecated */
129
+ const C_CLR_KITA = `#ffff99`;
130
+ /** @deprecated */
131
+ const C_CLR_IKNAI = `#99ff66`;
132
+ /** @deprecated */
133
+ let C_CLR_MAXLIFE = `#444400`;
134
+ /** @deprecated */
135
+ let C_CLR_CLEARLIFE = `#004444`;
136
+ /** @deprecated */
137
+ let C_CLR_DEFAULTLIFE = `#444444`;
138
+ /** @deprecated */
139
+ let C_CLR_BACKLIFE = `#222222`;
140
+ /** @deprecated */
141
+ const C_LBL_TITLESIZE = 32;
142
+ /** @deprecated */
143
+ const C_LBL_BTNSIZE = 28;
144
+ /** @deprecated */
145
+ const C_LBL_LNKSIZE = 16;
146
+ /** @deprecated */
147
+ const C_BTN_HEIGHT = 50;
148
+ /** @deprecated */
149
+ const C_LNK_HEIGHT = 30;
150
+ /** @deprecated */
151
+ const C_LEN_SETLBL_LEFT = 160;
152
+ /** @deprecated */
153
+ const C_LEN_SETLBL_WIDTH = 210;
154
+ /** @deprecated */
155
+ const C_LEN_DIFSELECTOR_WIDTH = 250;
156
+ /** @deprecated */
157
+ const C_LEN_DIFCOVER_WIDTH = 110;
158
+ /** @deprecated */
159
+ const C_LEN_SETLBL_HEIGHT = 22;
160
+ /** @deprecated */
161
+ const C_SIZ_SETLBL = 17;
162
+ /** @deprecated */
163
+ const C_LEN_SETDIFLBL_HEIGHT = 25;
164
+ /** @deprecated */
165
+ const C_SIZ_SETDIFLBL = 17;
166
+ /** @deprecated */
167
+ const C_LEN_SETMINI_WIDTH = 40;
168
+ /** @deprecated */
169
+ const C_SIZ_SETMINI = 18;
170
+ /** @deprecated */
171
+ const C_SIZ_DIFSELECTOR = 14;
172
+ /** @deprecated */
173
+ const C_SIZ_MAIN = 14;
174
+ /** @deprecated */
175
+ const C_SIZ_MUSIC_TITLE = 13;
176
+ /** @deprecated */
177
+ const C_LEN_JDGCHARA_WIDTH = 200;
178
+ /** @deprecated */
179
+ const C_LEN_JDGCHARA_HEIGHT = 20;
180
+ /** @deprecated */
181
+ const C_SIZ_JDGCHARA = 20;
182
+ /** @deprecated */
183
+ const C_LEN_JDGCNTS_WIDTH = 100;
184
+ /** @deprecated */
185
+ const C_LEN_JDGCNTS_HEIGHT = 20;
186
+ /** @deprecated */
187
+ const C_SIZ_JDGCNTS = 16;
188
+ /** @deprecated */
189
+ const C_LEN_GRAPH_WIDTH = 286;
190
+ /** @deprecated */
191
+ const C_LEN_GRAPH_HEIGHT = 226;
192
+ /** @deprecated */
193
+ const C_CLR_SPEEDGRAPH_SPEED = `#cc3333`;
194
+ /** @deprecated */
195
+ const C_CLR_SPEEDGRAPH_BOOST = `#999900`;
196
+ /** @deprecated */
197
+ const C_CLR_DENSITY_MAX = `#990000cc`;
198
+ /** @deprecated */
199
+ const C_CLR_DENSITY_DEFAULT = `#999999cc`;
200
+ /** @deprecated */
201
+ const C_LEN_DENSITY_DIVISION = 16;
202
+ /** @deprecated */
203
+ const C_MAX_ADJUSTMENT = 30;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "37.7.1",
3
+ "version": "37.8.0",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {