ミクチャのアイテムを外部から読み込むように変更#181
Open
utyosu wants to merge 2 commits intoCommentViewerCollection:developfrom
Open
Conversation
Member
|
スタンプやアイテム等を全て文字列のみで表現されていますが、MultiCommentViewerでは画像も表示できるので、アイテム等の画像も表示してみるのはどうでしょうか? もちろん、wikiにアイテム名の追記方法を書くのは問題ないです。 |
Contributor
Author
|
@ryu-s
ミクチャにおけるアイテムの多くは動画エフェクトやコメント装飾なのでビュワー内に表示するのはあまり向いてなさそうに思いました。
これは本当にその通りでやりたかったのですが、以下の理由により断念しました。
ということで、リソースを自動取得したいのは山々ですが、上記よりハードルが高めなので 他に良い案があればアドバイス頂けると助かります! それとアイテムが追加されていたので 7970e2c で対応しました。 |
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.


ミクチャはアイテムの更新頻度が高いので、ソースコードにアイテム名を直書きしているとアイテムが更新される度にツールの更新も必要となってしまいます。
そこでアイテム名を外部ファイルから読み込むように変更して、手動でもアイテム名を追加できるようにしました。
settings/mixch_item.txtにアイテムID=アイテム名という形式のファイルを用意しました。新規アイテムが追加されたときは、このファイルに追記することでアイテム名を表示できるようになります。
wikiの片隅にでも、手動でアイテム名を追記できることを書いておいて頂けるととてもありがたいです。
APIでアイテム名を取得できるのがベストですが、アイテム名を取得するAPIなどはないようなのでこの修正方針にしました。
マージのご検討よろしくお願いします。
PS. 先日はミクチャ対応のマージとbeta版のリリースありがとうございました!