Repository navigation
SRC#Web: プレイ中の設定をダイアログにまとめ、ゲームの設定をブラウザに残す - #1444
Merged
Merged
Conversation
スマートフォンでシステムメニューが画面の上に見切れていた。 - システムメニューに「設定…」を加え、表示倍率・仮想パッド・選択画面の拡大表示をダイアログに移す。 ダイアログは画面に収め、中をスクロールする。メニューもはみ出す分はスクロールする - デスクトップ版の「ゲーム」タブにあたる設定(元の SRC の設定変更の項目・自動反撃モード・音量)を加える。 srcs.json はブラウザを閉じると消えるため、localStorage(srcweb.gameSettings)に残し、 シナリオを始めるときに重ねる。ゲームの中の設定変更で変えたものも残す - 表示倍率をデスクトップ版と同じ 100%・150%・200% にする(以前の 300%・400% は 200%) - シナリオ選択の画面の設定の「ログ(ブラウザのコンソール)」を「ログ」にする(値が見切れていた) - ヘルプの「ログ」に、SRC#Web のログはブラウザのコンソールに出ることと、その開き方を書く - 3.5.6 のリリースの案内に書き足す Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016o9WHY8U3cQ2HiDnotdcP6
Contributor
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-pebble-0ddb1c400-1444.eastasia.azurestaticapps.net |
Contributor
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-coast-005428600-1444.eastasia.azurestaticapps.net |
- ゲームの設定のチェックボックス・表示倍率のボタンの処理を一度だけ作る。描画のたびに作っていたため、 続けて押すと古い処理に届いて変更が捨てられていた(CI の E2E で失敗) - ゲームの中の設定変更は、srcs.json に書いたときだけブラウザに残す。汎用戦闘アニメが無いときに SRC# が戦闘アニメを切る値を、利用者の設定として残していた - 設定のダイアログには、ブラウザに残した値を出す - E2E: 戦闘アニメの代わりに移動アニメで保存を確かめ、続けて押した変更が効くことを確かめる Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016o9WHY8U3cQ2HiDnotdcP6
Contributor
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-pebble-0ddb1c400-1444.eastasia.azurestaticapps.net |
Contributor
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-coast-005428600-1444.eastasia.azurestaticapps.net |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
スマートフォンで SRC#Web のシステムメニューが画面の上に見切れていたのを直します。あわせて、デスクトップ版(SRC#Avalonia)に加えた設定のうち、SRC#Web でも意味のあるものを変えられるようにします。
変更
srcweb.gameSettingsに残し、シナリオを始めるときにsrcs.jsonの設定へ重ねます。SRC#Web のsrcs.jsonは、ブラウザを閉じると消えるためです。docs/gui/web.mdにシステムメニューと設定のダイアログを書きました。デスクトップ版のほかの設定(素材・BGM・開発者向け)を SRC#Web でどう扱うかの表も入れています。確かめたこと
SRCSharpWebTests: 46 件すべて成功しました。WebGameSettingsのテストを加えています。tests/web.spec.js、インタープリターで発行した版): 36 件成功、2 件スキップでした。Generated by Claude Code