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

[1.1.0/AN-FEAT] 배틀 선택 / 결과 UI 개선 #316

Merged
merged 7 commits into from
Sep 14, 2024

Conversation

JoYehyun99
Copy link

작업 영상

XRecorder_Edited_10092024_140105.mp4

작업한 내용

  • 기술 위력이 마이너스 값일 경우, -로 표시
  • 배수 값 별 색상 다르게 표시 ( 1 미만 : 회색 / 1 ~ 2 : 빨강 / 3 이상 : 초록)
  • 이미 선택한 값이 있는 경우, 해당 위치로 스크롤해서 보여주기
  • 중복 기술 값이 존재해서 일단 distinct로 방지해두었습니당

🚀Next Feature

  • 배틀 구도 정보 저장

@JoYehyun99 JoYehyun99 self-assigned this Sep 10, 2024
@github-actions github-actions bot added AN_FEAT ✨ 안드 새로운 기능 AN_UI 🎨 안드 UI 작업 labels Sep 10, 2024
Copy link

@sh1mj1 sh1mj1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

잘봤습니다!!!
고생 많았어요!~ 👍👍👍👍

power = power.toString(),
fun BattlePrediction.toUi(format: String = DEFAULT_NUMBER_FORMAT): BattlePredictionUiModel {
val formattedPower = if (power < 0) NO_EFFECT_VALUE else power.toString()
val formattedResult = if (calculatedResult < 0) NO_EFFECT_VALUE else String.format(format, calculatedResult)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기술 위력과 계산된 위력이 - 로 표시되는 군요.
image
이러한 상황일 때 추가로 배수도 - 로 표시하는 게 더 자연스러워 보입니다.
그리고 오른쪽 하단에 명중 확률도 조정을 해야 할 듯..

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이러한 상황일 때 추가로 배수도 - 로 표시하는 게 더 자연스러워 보입니다.

저는 배수는 1.0으로 보여주는 것도 좋아요 !
3개 다 - - - 로 보여주면 뭔가 어색할 것 같기도 해요

명중 확률

이 부분은 동의합니다 !

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저두요

@@ -80,7 +80,12 @@ class SkillSelectionFragment :

repeatOnStarted {
viewModel.filteredSkills.collect {
skillAdapter.submitList(it)
skillAdapter.submitList(it) {
if (viewModel.previousSkillsId != null) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

viewModel.previousSkillsId
이제 봤는데 이전 스킬 id 가 이전 스킬 id 로 되어 있네요 ㅋㅋ

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그러게 ㅋㅋㅋㅋ

if (sharedViewModel.previousSelection.selectedPokemon() != null) {
val position = it.indexOfFirst { it.isSelected }
binding.rvPokemons.scrollToPosition(position)
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 섬세한데요~
submitList 에 람다로 바로 콜백을 지정할 수 있군요~

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

헐 대박.. 제 코드 수정하러 갑니다 ㅋㅋ

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 이게 되네 ㅋㅋㅋ

Copy link

@kkosang kkosang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

조대리님 굿입니다 👍~~

power = power.toString(),
fun BattlePrediction.toUi(format: String = DEFAULT_NUMBER_FORMAT): BattlePredictionUiModel {
val formattedPower = if (power < 0) NO_EFFECT_VALUE else power.toString()
val formattedResult = if (calculatedResult < 0) NO_EFFECT_VALUE else String.format(format, calculatedResult)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이러한 상황일 때 추가로 배수도 - 로 표시하는 게 더 자연스러워 보입니다.

저는 배수는 1.0으로 보여주는 것도 좋아요 !
3개 다 - - - 로 보여주면 뭔가 어색할 것 같기도 해요

명중 확률

이 부분은 동의합니다 !

if (sharedViewModel.previousSelection.selectedPokemon() != null) {
val position = it.indexOfFirst { it.isSelected }
binding.rvPokemons.scrollToPosition(position)
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

헐 대박.. 제 코드 수정하러 갑니다 ㅋㅋ

Copy link
Contributor

@murjune murjune left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~

power = power.toString(),
fun BattlePrediction.toUi(format: String = DEFAULT_NUMBER_FORMAT): BattlePredictionUiModel {
val formattedPower = if (power < 0) NO_EFFECT_VALUE else power.toString()
val formattedResult = if (calculatedResult < 0) NO_EFFECT_VALUE else String.format(format, calculatedResult)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저두요

if (sharedViewModel.previousSelection.selectedPokemon() != null) {
val position = it.indexOfFirst { it.isSelected }
binding.rvPokemons.scrollToPosition(position)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 이게 되네 ㅋㅋㅋ

@@ -80,7 +80,12 @@ class SkillSelectionFragment :

repeatOnStarted {
viewModel.filteredSkills.collect {
skillAdapter.submitList(it)
skillAdapter.submitList(it) {
if (viewModel.previousSkillsId != null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그러게 ㅋㅋㅋㅋ

@JoYehyun99
Copy link
Author

JoYehyun99 commented Sep 14, 2024

/noti
위력 결과가 마이너스일 경우 배수도 -로 표기 투표 결과까지 반영해서 수정했습니당~
머지하겠습니당

@JoYehyun99 JoYehyun99 merged commit 854f204 into an/develop Sep 14, 2024
5 checks passed
@JoYehyun99 JoYehyun99 deleted the an/feat/battle-result-ui branch September 14, 2024 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AN_FEAT ✨ 안드 새로운 기능 AN_UI 🎨 안드 UI 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants