feat: change disc image based on turn direction - #2
Open
MellDa1024 wants to merge 3 commits into
Open
Conversation
this may break original disc image setting
using two disc elements instead of changing image src
Owner
|
기여에 감사드립니다.
|
Author
|
사실 저도 처음에는 모드 분리를 염두에 두고 있었으나, html과 js에 대한 이해가 얕은 편이라 현재와 같은 방식으로 구현하게 되었습니다. 혹시 여유가 되신다면, 해당 기능을 구현해 주시면 도움이 될 것 같습니다. |
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.
스크래치 회전 방향에 따라 이미지가 바뀌는 기능입니다.
두 개의 image 요소를 생성하고, 회전 방향에 따라 display 속성을 변경하는 방식으로 제작했습니다.
(처음에는 회전 방향에 따라 image 요소의 src 속성을 매번 변경하는 로직으로 제작했지만, 매번 이미지를 불러오면 투컴 환경에서 문제가 생길 수 있을 것 같아 로직을 변경하였습니다.)
설정에서 '기본 및 윗방향 회전 시 표시되는 이미지' / '아랫방향 회전 시 표시되는 이미지'의 설정 여부에 따라 로직이 약간 달라집니다.
이미지 설정 여부에 따른 로직이 사용자 입장에서는 다소 이해하기 힘들 수 있겠다고 생각합니다.
또한, settings.json의 discImagePath 키 이름이 변경되어, 구버전에서 설정한 이미지를 불러오지 못할 것으로 예상됩니다.
큰 의미가 있는 기능은 아니라고 생각합니다만, 제작한 김에 pr을 신청합니다.
테스트는 원컴 + PHOENIXWAN LR2 모드, 그리고 원컴 + PHOENIXWAN 인피니타스 모드에서 진행했습니다.