Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0445/imgtype-notes] ノートスキンの追加、デフォルト画像を回転させないオプションを追加 #1108

Merged
merged 5 commits into from Sep 11, 2021

Conversation

cwtickle
Copy link
Owner

@cwtickle cwtickle commented Sep 11, 2021

🔨 変更内容 / Details of Changes

  1. ノートスキンを追加しました。
  2. ノートスキン追加に合わせ、オブジェクトの回転を止めるオプション(デフォルト:true(回転する))、
    Flat時のステップゾーンの代わりのバーの間隔値(デフォルト: 50)をimgTypeに追加しました。

譜面ヘッダーでの指定方法

|imgType=classic,png$$classic-thin,png$note,svg,false,0|  // カンマ区切りで3, 4番目の要素を追加

danoni_setting.js での指定方法

// セット対象のフォルダ名,拡張子,画像回転有無(true or false),
// Flat時のステップゾーンの代わりのバーの間隔値(px単位)の順に指定
const g_presetImageSets = [``, `classic,png`, `classic-thin,png`, `note,svg,false,0`];
  1. ImgType切替時、画像セットをpreloadするように変更しました。
  2. classicフォルダの影矢印を変更、aiファイルを追加しました。

🔖 関連Issue, 変更理由 / Related Issues, Reason for Changes

1, 2. 画像セットによっては回転させない方が良いものがあり、それに対応するため。
3. ImgType切り替えた後の画像をpreloadする手段が無く、遅延表示される可能性があったため。
4. 現在の影矢印の場合、一部ステップゾーンが見えてしまう問題があったため。

📷 スクリーンショット / Screenshot


📝 その他コメント / Other Comments

  • あくまでエミュレーション機能であり、ヒットモーションなどは従来通りです。
  • 矢印の回転を表す stepRtnX は置き換えません。
    createColorObject2関数内でg_stateObj.rotateEnabledを見て判断します。
    (true: 回転する / false: 回転しない)

@codeclimate
Copy link

codeclimate bot commented Sep 11, 2021

Code Climate has analyzed commit c82532c and detected 0 issues on this pull request.

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant