diff --git a/src/lib/i18n/locales/en.json b/src/lib/i18n/locales/en.json index 5130230..c2fb4ec 100644 --- a/src/lib/i18n/locales/en.json +++ b/src/lib/i18n/locales/en.json @@ -12,6 +12,8 @@ "do_not_pixelation": " no", "upload_audio": "Upload audio file.", "parameters_setting": "⚙️ Setting", + "parameters_window_size": "window size: ", + "parameters_custom": "custom", "parameters_width": "width: ", "parameters_height": "height: ", "parameters_note": "NOTE: The value should be n times the number of pixels in the image to display it nicely", diff --git a/src/lib/i18n/locales/ja.json b/src/lib/i18n/locales/ja.json index 86b956d..d5f3ebc 100644 --- a/src/lib/i18n/locales/ja.json +++ b/src/lib/i18n/locales/ja.json @@ -12,6 +12,8 @@ "do_not_pixelation": "しない", "upload_audio": "音声をアップロード", "parameters_setting": "⚙️ 設定", + "parameters_window_size": "画面サイズ: ", + "parameters_custom": "カスタム", "parameters_width": "幅: ", "parameters_height": "高さ: ", "parameters_note": "※ ドット絵のピクセル数×n倍の値にすると、きれいに表示できます", diff --git a/src/routes/main/index.svelte b/src/routes/main/index.svelte index 45efc71..d173200 100644 --- a/src/routes/main/index.svelte +++ b/src/routes/main/index.svelte @@ -7,6 +7,7 @@ import AudioUploader from './audioUploader.svelte'; import PlayerCanvas from './playerCanvas.svelte'; import PlayerMenu from './playerMenu.svelte'; + import SizeInput from "./sizeInput.svelte"; let imageLoaded = false; let imageData: ImageData; @@ -82,20 +83,14 @@

{$_("parameters_setting")}

- - + { + if (event.detail.playerWidth) playerWidth = event.detail.playerWidth; + if (event.detail.playerHeight) playerHeight = event.detail.playerHeight; + }} + />

{$_("parameters_note")}