-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
438 lines (430 loc) · 31.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<!DOCTYPE html>
<html>
<head>
<!-- common to all pages -->
<meta charset="utf-8">
<link href="style.css" rel="stylesheet" type="text/css">
<link rel="icon" type="image/png" sizes="64x64" href="img/icon64.png"> <!-- icon -->
<title>osu! hitcircle generator</title>
<div class="top_container">
<div class="top_container_logo"><img src="img/icon64.png" alt="" width="42"></div>
<div class="top_container_title">osu! hitcircle generator</div>
<!-- don't put <a> on the current page, put the <span class="top_container_current_option"> -->
<!-- <span> in the <div>, the <a> out the <div> -->
<div class="top_container_option"><span class="top_container_current_option">Editor</span></div>
<a href="help.html"><div class="top_container_option">Help</div></a>
<a href="about.html"><div class="top_container_option">About</div></a>
</div>
<div style="height: 58px;"></div> <!-- Placeholder to avoid to hide elements with top_container -->
<script src="js/app.js" type="text/javascript"></script>
<script src="js/FileSaver.js" type="text/javascript"></script>
<script src="js/jszip.js" type="text/javascript"></script>
</head>
<body>
<div id="editor_top"> <!-- 1. The part with the mode buttons, the skin & author names and the reset button -->
<div class="editor_container_modes"> <!-- The buttons to change the mode (Hitcircle, Slider, Numbers) -->
<input type="button" id="button_mode_hitcircle" value="Hitcircle" onclick="toggle_editor_mode(0)" class="editor_mode_button">
<input type="button" id="button_mode_slider" value="Slider" onclick="toggle_editor_mode(1)" class="editor_mode_button">
<input type="button" id="button_mode_numbers" value="Numbers" onclick="toggle_editor_mode(2)" class="editor_mode_button">
</div>
<div class="editor_container_metadata"> <!-- Where there is the skin name and author textbox -->
Skin name: <input type="text" id="skin_name_input" placeholder="Type the skin name" onchange="update_all(0);" class="editor_input_text">
  
Author: <input type="text" id="author_name_input" placeholder="Type your name" onchange="update_all(0);" class="editor_input_text">
</div>
<div class="editor_container_3"> <!-- reset button -->
<input type="button" value="Reset" onclick="reset_editor(true);" class="reset_button">
<!--<input type="button" value="Draw test" onclick="update_all(1);">-->
</div>
</div>
<div id="editor"> <!-- 2. Preview and his settings & controls -->
<div id="editor_view"> <!-- Displays the canvas & "display" settings -->
<div>
<canvas id="hitcircle_preview" width="288" height="288">Can't display canvas :( </canvas>
</div>
<div id="view_settings"> <!-- Set the preview -->
<div id="view_settings_type_of_circle">
<div class="view_settings_type_of_circle_item"><input type="radio" name="view_circle" id="view_hitcircle" onclick="set_preview_mode(0);">Hitcircle</div>
<div class="view_settings_type_of_circle_item"><input type="radio" name="view_circle" id="view_slider" onclick="set_preview_mode(1);">Slider</div>
</div>
<div id="view_settings_color_number">
Color: <input type="color" id="display_color" value="#33FF99" onchange="update_all(0);" class="view_combo_color_input">
 
Number: <input type="number" id="display_number" min="1" max="999999" step="1" onchange="update_all(0);" class="view_combo_number_input">
</div>
<div id="view_settings_background">
Background:
<select name="display_background" id="display_background" onchange="update_all(0);" class="editor_input_select">
<option value="0">100% black</option>
<option value="1">Dark</option>
<option value="2">Gray</option>
<option value="3">Light</option>
<option value="4">100% white</option>
</select>
</div>
</div>
<div class="view_combo_color"> <!-- Where there is all of the custom color -->
<span class="editor_part_title">Combo colors</span>
<div class="view_combo_all"> <!-- The box with all view_combo_1 <div> -->
<div id="custom_color_1" class="view_combo_1"> <!-- Color picker + button to choose this color to display (note: 1 = one color) -->
<div><input type="color" id="combo_1_color" value="#33FF99" onchange="update_all(1);" class="view_custom_color_change"></div>
<div><input type="button" id="combo_1_button" value="Choose" onclick="set_display_color_combo(1);" class="view_custom_color_set"></div>
</div>
<div id="custom_color_2" class="view_combo_1"> <!-- Color picker + button to choose this color to display (note: 1 = one color) -->
<div><input type="color" id="combo_2_color" value="#33FF99" onchange="update_all(1);" class="view_custom_color_change"></div>
<div><input type="button" id="combo_2_button" value="Choose" onclick="set_display_color_combo(2);" class="view_custom_color_set"></div>
</div>
<div id="custom_color_3" class="view_combo_1"> <!-- Color picker + button to choose this color to display (note: 1 = one color) -->
<div><input type="color" id="combo_3_color" value="#33FF99" onchange="update_all(1);" class="view_custom_color_change"></div>
<div><input type="button" id="combo_3_button" value="Choose" onclick="set_display_color_combo(3);" class="view_custom_color_set"></div>
</div>
<div id="custom_color_4" class="view_combo_1"> <!-- Color picker + button to choose this color to display (note: 1 = one color) -->
<div><input type="color" id="combo_4_color" value="#33FF99" onchange="update_all(1);" class="view_custom_color_change"></div>
<div><input type="button" id="combo_4_button" value="Choose" onclick="set_display_color_combo(4);" class="view_custom_color_set"></div>
</div>
<div id="custom_color_5" class="view_combo_1"> <!-- Color picker + button to choose this color to display (note: 1 = one color) -->
<div><input type="color" id="combo_5_color" value="#33FF99" onchange="update_all(1);" class="view_custom_color_change"></div>
<div><input type="button" id="combo_5_button" value="Choose" onclick="set_display_color_combo(5);" class="view_custom_color_set"></div>
</div>
<div id="custom_color_6" class="view_combo_1"> <!-- Color picker + button to choose this color to display (note: 1 = one color) -->
<div><input type="color" id="combo_6_color" value="#33FF99" onchange="update_all(1);" class="view_custom_color_change"></div>
<div><input type="button" id="combo_6_button" value="Choose" onclick="set_display_color_combo(6);" class="view_custom_color_set"></div>
</div>
<div id="custom_color_7" class="view_combo_1"> <!-- Color picker + button to choose this color to display (note: 1 = one color) -->
<div><input type="color" id="combo_7_color" value="#33FF99" onchange="update_all(1);" class="view_custom_color_change"></div>
<div><input type="button" id="combo_7_button" value="Choose" onclick="set_display_color_combo(7);" class="view_custom_color_set"></div>
</div>
<div id="custom_color_8" class="view_combo_1"> <!-- Color picker + button to choose this color to display (note: 1 = one color) -->
<div><input type="color" id="combo_8_color" value="#33FF99" onchange="update_all(1);" class="view_custom_color_change"></div>
<div><input type="button" id="combo_8_button" value="Choose" onclick="set_display_color_combo(8);" class="view_custom_color_set"></div>
</div>
</div>
<div class="view_number_combo_color">
<div><input type="button" id="remove_combo_color" value="Remove color" onclick="set_amount_combo_colors(-1); update_all(1);" class="view_set_number_colors"></div>
<div><input type="button" id="add_combo_color" value="Add color" onclick="set_amount_combo_colors(1); update_all(1);" class="view_set_number_colors"></div>
</div>
</div>
<div class="view_skin_ini"> <!-- Where there is a part of the skin.ini -->
<span class="editor_part_title">skin.ini</span>
<div class="view_skin_ini_content" id="skin_ini_content">
<div>[General]</div>
<div>Name: <span id="ini_Name_value">???</span></div>
<div>Author: <span id="ini_Author_value">???</span></div>
<div>Version: <span id="ini_Version_value">???</span></div>
<div>HitCircleOverlayAboveNumber: <span id="ini_HitCircleOverlayAboveNumer_value">???</span></div>
<div> </div>
<div>[Colours]</div>
<div id="ini_Color1">Combo1: <span id="ini_Color1_value">???</span></div>
<div id="ini_Color2">Combo2: <span id="ini_Color2_value">???</span></div>
<div id="ini_Color3">Combo3: <span id="ini_Color3_value">???</span></div>
<div id="ini_Color4">Combo4: <span id="ini_Color4_value">???</span></div>
<div id="ini_Color5">Combo5: <span id="ini_Color5_value">???</span></div>
<div id="ini_Color6">Combo6: <span id="ini_Color6_value">???</span></div>
<div id="ini_Color7">Combo7: <span id="ini_Color7_value">???</span></div>
<div id="ini_Color8">Combo8: <span id="ini_Color8_value">???</span></div>
<div> </div> <!-- the   is just a placeholder to make a empty line -->
<div>[Fonts]</div>
<div>HitCirclePrefix: <span id="ini_HitCirclePrefix_value">???</span></div>
<div>HitCircleOverlap: <span id="ini_HitCircleOverlap_value">???</span></div>
</div>
</div>
</div>
<div id="editor_controls"> <!-- Where you custom the hitcircle (all input sizes are for 1x) -->
<!-- Notes about <span> and update_all(n):
1. update_all(n) draw all files and preview.
2. Elements in <span> can be disabled and their opacity set.
3. If n=1, then the program will disabled useless inputs.
4. n=1 for elements who can make inputs useful/useless (checkbuttons & selects)
-->
<div id="editor_hitcircle" class="editor_mode"> <!-- All options of the hitcircles -->
<details open> <!-- Overlay section -->
<summary>Overlay</summary>
<div class="editor_section"> <!-- All content of the spoiler should be in this <div> -->
<div class="editor_part">
<span class="editor_part_title">Overlay properties</span>
<div class="editor_content">
Border size: <input type="number" id="hitcircle_overlay_border_size" min="1" max="128" step="1" onchange="update_all(0);" class="editor_input_number" required><br/>
3d effect:
<select name="hitcircle_overlay_3d_effect" id="hitcircle_overlay_3d_effect" onchange="update_all(0);" class="editor_input_select">
<option value="0">None</option>
<option value="1">Style 1</option>
<option value="2">Style 2</option>
<option value="3">Style 3</option>
<option value="4">Style 4</option>
<option value="5">Style 5</option>
</select>
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Overlay color</span>
<div class="editor_content">
<select name="overlay_gradient_style" id="hitcircle_overlay_gradient_style" onchange="update_all(1);" class="editor_input_select">
<option value="none">No gradient</option>
<option value="linear">Linear</option>
<option value="radial">Radial</option>
</select>
<span id="span_hitcircle_overlay_GD"><input type="number" id="hitcircle_overlay_gradient_direction" min="-360" max="360" step="1" onchange="update_all(0);" class="editor_input_number" required>°</span><br/>
<input type="color" id="hitcircle_overlay_color_1" class="editor_input_color" onchange="update_all(0);"> Opacity: <input type="number" id="hitcircle_overlay_alpha_1" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%<br/>
<span id="span_hitcircle_overlay_CA2"><input type="color" id="hitcircle_overlay_color_2" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="hitcircle_overlay_alpha_2" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%</span>
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Overlay shadow</span>
<div class="editor_content">
<select name="overlay_shadow_style" id="hitcircle_overlay_shadow_style" onchange="update_all(1);" class="editor_input_select">
<option value="none">No shadow</option>
<option value="out">Shadow out</option>
<option value="in/out">Shadow in/out</option>
</select><br/>
<span id="span_hitcircle_overlay_SH">Shadow blur: <input type="number" id="hitcircle_overlay_shadow_blur" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required><br/>
<input type="color" id="hitcircle_overlay_shadow_color" value="#000000" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="hitcircle_overlay_shadow_alpha" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%</span>
</div>
</div>
</div>
</details>
<details open> <!-- Colored part section -->
<summary>Colored part</summary>
<div class="editor_section"> <!-- All content of the spoiler should be in this <div> -->
<div class="editor_part">
<span class="editor_part_title">Background</span>
<div class="editor_content">
<select name="background_gradient_style" id="hitcircle_background_gradient_style" onchange="update_all(1);" class="editor_input_select">
<option value="none">No gradient</option>
<option value="linear">Linear</option>
<option value="radial">Radial</option>
</select>
<span id="span_hitcircle_background_GD"><input type="number" id="hitcircle_background_gradient_direction" min="-360" max="360" step="1" onchange="update_all(0);" class="editor_input_number" required>°</span><br/>
<input type="color" id="hitcircle_background_color_1" value="#333333" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="hitcircle_background_alpha_1" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%<br/>
<span id="span_hitcircle_background_CA2"><input type="color" id="hitcircle_background_color_2" value="#555555" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="hitcircle_background_alpha_2" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%</span>
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Circle glow</span>
<div class="editor_content">
<select name="background_shadow_style" id="hitcircle_background_shadow_style" onchange="update_all(1);" class="editor_input_select">
<option value="none">No glow</option>
<option value="out">Glow out</option>
</select><br/>
<span id="span_hitcircle_background_SH">Glow blur: <input type="number" id="hitcircle_background_shadow_blur" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required><br/>
<input type="color" id="hitcircle_background_shadow_color" value="#FFFFFF" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="hitcircle_background_shadow_alpha" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%</span>
<!-- I know IDs aren't accurate but seems more logical in the JS -->
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Ring properties</span>
<div class="editor_content">
<input type="checkbox" id="hitcircle_ring_enabled" onchange="update_all(1);">Draw the ring<br/>
Ring size: <input type="number" id="hitcircle_ring_size" min="0" max="255" step="1" onchange="update_all(0);" class="editor_input_number" required><br/>
Ring border size: <input type="number" id="hitcircle_ring_border_size" min="1" max="128" step="1" onchange="update_all(0);" class="editor_input_number" required>
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Ring color</span>
<div class="editor_content">
<select name="ring_gradient_style" id="hitcircle_ring_gradient_style" onchange="update_all(1);" class="editor_input_select">
<option value="none">No gradient</option>
<option value="linear">Linear</option>
<option value="radial">Radial</option>
</select>
<span id="span_hitcircle_ring_GD"><input type="number" id="hitcircle_ring_gradient_direction" min="-360" max="360" step="1" onchange="update_all(0);" class="editor_input_number" required>°</span><br/>
<input type="color" id="hitcircle_ring_color_1" value="#eeeeee" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="hitcircle_ring_alpha_1" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%<br/>
<span id="span_hitcircle_ring_CA2"><input type="color" id="hitcircle_ring_color_2" value="#d0d0d0" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="hitcircle_ring_alpha_2" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%</span>
</div>
</div>
</div>
</details>
</div>
<div id="editor_slider" class="editor_mode"> <!-- All options of the sliders -->
<div class="editor_untitled_part">
<div>
<input type="checkbox" id="same_sliders_than_circles" onclick="update_all(1);" checked><label>Same slider circles than hitcircles</label>
</div>
</div>
<details open> <!-- Overlay section -->
<summary>Overlay</summary>
<div class="editor_section"> <!-- All content of the spoiler should be in this <div> -->
<div class="editor_part">
<span class="editor_part_title">Overlay properties</span>
<div class="editor_content">
Border size: <input type="number" id="slider_overlay_border_size" min="1" max="128" step="1" onchange="update_all(0);" class="editor_input_number" required><br/>
3d effect:
<select name="slider_overlay_3d_effect" id="slider_overlay_3d_effect" onchange="update_all(0);" class="editor_input_select">
<option value="0">None</option>
<option value="1">Style 1</option>
<option value="2">Style 2</option>
<option value="3">Style 3</option>
<option value="4">Style 4</option>
<option value="5">Style 5</option>
</select>
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Overlay color</span>
<div class="editor_content">
<select name="overlay_gradient_style" id="slider_overlay_gradient_style" onchange="update_all(1);" class="editor_input_select">
<option value="none">No gradient</option>
<option value="linear">Linear</option>
<option value="radial">Radial</option>
</select>
<span id="span_slider_overlay_GD"><input type="number" id="slider_overlay_gradient_direction" min="-360" max="360" step="1" onchange="update_all(0);" class="editor_input_number" required>°</span><br/>
<input type="color" id="slider_overlay_color_1" class="editor_input_color" onchange="update_all(0);"> Opacity: <input type="number" id="slider_overlay_alpha_1" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%<br/>
<span id="span_slider_overlay_CA2"><input type="color" id="slider_overlay_color_2" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="slider_overlay_alpha_2" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%</span>
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Overlay shadow</span>
<div class="editor_content">
<select name="overlay_shadow_style" id="slider_overlay_shadow_style" onchange="update_all(1);" class="editor_input_select">
<option value="none">No shadow</option>
<option value="out">Shadow out</option>
<option value="in/out">Shadow in/out</option>
</select><br/>
<span id="span_slider_overlay_SH">Shadow blur: <input type="number" id="slider_overlay_shadow_blur" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required><br/>
<input type="color" id="slider_overlay_shadow_color" value="#000000" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="slider_overlay_shadow_alpha" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%</span>
</div>
</div>
</div>
</details>
<details open> <!-- Colored part section -->
<summary>Colored part</summary>
<div class="editor_section"> <!-- All content of the spoiler should be in this <div> -->
<div class="editor_part">
<span class="editor_part_title">Background</span>
<div class="editor_content">
<select name="background_gradient_style" id="slider_background_gradient_style" onchange="update_all(1);" class="editor_input_select">
<option value="none">No gradient</option>
<option value="linear">Linear</option>
<option value="radial">Radial</option>
</select>
<span id="span_slider_background_GD"><input type="number" id="slider_background_gradient_direction" min="-360" max="360" step="1" onchange="update_all(0);" class="editor_input_number" required>°</span><br/>
<input type="color" id="slider_background_color_1" value="#333333" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="slider_background_alpha_1" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%<br/>
<span id="span_slider_background_CA2"><input type="color" id="slider_background_color_2" value="#555555" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="slider_background_alpha_2" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%</span>
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Circle glow</span>
<div class="editor_content">
<select name="background_shadow_style" id="slider_background_shadow_style" onchange="update_all(1);" class="editor_input_select">
<option value="none">No glow</option>
<option value="out">Glow out</option>
</select><br/>
<span id="span_slider_background_SH">Glow blur: <input type="number" id="slider_background_shadow_blur" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required><br/>
<input type="color" id="slider_background_shadow_color" value="#FFFFFF" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="slider_background_shadow_alpha" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%</span>
<!-- I know IDs aren't accurate but seems more logical in the JS -->
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Ring properties</span>
<div class="editor_content">
<input type="checkbox" id="slider_ring_enabled" onchange="update_all(1);">Draw the ring<br/>
Ring size: <input type="number" id="slider_ring_size" min="0" max="255" step="1" onchange="update_all(0);" class="editor_input_number" required><br/>
Ring border size: <input type="number" id="slider_ring_border_size" min="1" max="128" step="1" onchange="update_all(0);" class="editor_input_number" required>
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Ring color</span>
<div class="editor_content">
<select name="ring_gradient_style" id="slider_ring_gradient_style" onchange="update_all(1);" class="editor_input_select">
<option value="none">No gradient</option>
<option value="linear">Linear</option>
<option value="radial">Radial</option>
</select>
<span id="span_slider_ring_GD"><input type="number" id="slider_ring_gradient_direction" min="-360" max="360" step="1" onchange="update_all(0);" class="editor_input_number" required>°</span><br/>
<input type="color" id="slider_ring_color_1" value="#eeeeee" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="slider_ring_alpha_1" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%<br/>
<span id="span_slider_ring_CA2"><input type="color" id="slider_ring_color_2" value="#d0d0d0" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="slider_ring_alpha_2" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%</span>
</div>
</div>
</div>
</details>
</div>
<div id="editor_numbers" class="editor_mode"> <!-- All options for numbers -->
<details open> <!-- Numbers section -->
<summary>Font</summary>
<div class="editor_section"> <!-- All content of the spoiler should be in this <div> -->
<div class="editor_part">
<span class="editor_part_title">Font</span>
<div class="editor_content">
Font: <input type="text" id="numbers_font_name" onchange="update_all(0);" class="editor_input_text"><br/>
Font size: <input type="number" id="numbers_font_size" min="0" max="255" step="1" onchange="update_all(0);" class="editor_input_number" required><br/>
<input type="checkbox" id="numbers_behind_overlay" onchange="update_all(1);" checked>Numbers behind overlay
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Font position</span>
<div class="editor_content">
<input type="checkbox" id="numbers_font_monospaced" onchange="update_all(1);">Monospaced font<br/>
Font spacing: <input type="number" id="numbers_spacing" min="-128" max="128" step="0" onchange="update_all(0);"class="editor_input_number" required><br/>
Vertical adjust: <input type="number" id="numbers_correction_y" min="-100" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Font color</span>
<div class="editor_content">
<select name="numbers_gradient_style" id="numbers_gradient_style" onchange="update_all(1);" class="editor_input_select">
<option value="none">No gradient</option>
<option value="linear">Linear</option>
<option value="radial">Radial</option>
</select>
<span id="span_numbers_GD"><input type="number" id="numbers_gradient_direction" min="-360" max="360" step="1" onchange="update_all(0);" class="editor_input_number">°</span><br/>
<input type="color" id="numbers_color_1" value="#ffffff" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="numbers_alpha_1" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number">%<br/>
<span id="span_numbers_CA2"><input type="color" id="numbers_color_2" value="#dddddd" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="numbers_alpha_2" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number">%</span>
</div>
</div>
<div class="editor_part">
<span class="editor_part_title">Font shadow</span>
<div class="editor_content">
<select name="numbers_shadow_style" id="numbers_shadow_style" onchange="update_all(1);" class="editor_input_select">
<option value="none">No shadow</option>
<option value="out">Shadow out</option>
</select><br/>
<span id="span_numbers_SH">Shadow blur: <input type="number" id="numbers_shadow_blur" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required><br/>
<input type="color" id="numbers_shadow_color" value="#000000" onchange="update_all(0);" class="editor_input_color"> Opacity: <input type="number" id="numbers_shadow_alpha" min="0" max="100" step="1" onchange="update_all(0);" class="editor_input_number" required>%</span>
</div>
</div>
</div>
</details>
</div>
</div>
</div>
<div id="export_settings"> <!-- where you can generate the file -->
<span class="editor_part_title">Export settings</span>
<div class="export_option"><input type="checkbox" id="export_skin_ini">Export skin.ini</div>
<div class="export_option"><input type="checkbox" id="circle_at_sliderend">Circles at sliders end</div>
<div class="export_option"><input type="button" value="Export as ZIP file" onclick="export_hitcircles();" class="export_button"></div>
</div>
<div id="all_canvas_files"> <!-- All files here ^^ -->
<p>Standard files:</p>
<canvas id="hitcircle" title="hitcircle" width="128" height="128"></canvas>
<canvas id="hitcircleoverlay" title="hitcircleoverlay" width="128" height="128"></canvas>
<canvas id="sliderstartcircle" title="sliderstartcircle" width="128" height="128"></canvas>
<canvas id="sliderstartcircleoverlay" title="sliderstartcircleoverlay" width="128" height="128"></canvas>
<canvas id="default_0" title="default-0" width="40" height="128"></canvas>
<canvas id="default_1" title="default-1" width="40" height="128"></canvas>
<canvas id="default_2" title="default-2" width="40" height="128"></canvas>
<canvas id="default_3" title="default-3" width="40" height="128"></canvas>
<canvas id="default_4" title="default-4" width="40" height="128"></canvas>
<canvas id="default_5" title="default-5" width="40" height="128"></canvas>
<canvas id="default_6" title="default-6" width="40" height="128"></canvas>
<canvas id="default_7" title="default-7" width="40" height="128"></canvas>
<canvas id="default_8" title="default-8" width="40" height="128"></canvas>
<canvas id="default_9" title="default-9" width="40" height="128"></canvas>
<p>@2x files:</p>
<canvas id="hitcircle_2x" title="hitcircle@2x" width="256" height="256"></canvas>
<canvas id="hitcircleoverlay_2x" title="hitcircleoverlay@2x" width="256" height="256"></canvas>
<canvas id="sliderstartcircle_2x" title="sliderstartcircle@2x" width="256" height="256"></canvas>
<canvas id="sliderstartcircleoverlay_2x" title="sliderstartcircleoverlay@2x" width="256" height="256"></canvas>
<canvas id="default_0_2x" title="default-0@2x" width="80" height="256"></canvas>
<canvas id="default_1_2x" title="default-1@2x" width="80" height="256"></canvas>
<canvas id="default_2_2x" title="default-2@2x" width="80" height="256"></canvas>
<canvas id="default_3_2x" title="default-3@2x" width="80" height="256"></canvas>
<canvas id="default_4_2x" title="default-4@2x" width="80" height="256"></canvas>
<canvas id="default_5_2x" title="default-5@2x" width="80" height="256"></canvas>
<canvas id="default_6_2x" title="default-6@2x" width="80" height="256"></canvas>
<canvas id="default_7_2x" title="default-7@2x" width="80" height="256"></canvas>
<canvas id="default_8_2x" title="default-8@2x" width="80" height="256"></canvas>
<canvas id="default_9_2x" title="default-9@2x" width="80" height="256"></canvas>
<p>Unique files</p>
<canvas id="sliderendcircle_disabled" width="1" height="1"></canvas>
</div>
</body>
</html>