-
Notifications
You must be signed in to change notification settings - Fork 0
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.2.0/ AN-UI, AN-FEAT] 배틀 날씨 효과 UI 변경 #487
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다~
@@ -78,6 +78,9 @@ class BattleViewModel( | |||
battleResult.map { it.isSuccess() } | |||
.stateIn(viewModelScope, SharingStarted.WhileSubscribed(5000), false) | |||
|
|||
private val _showWeatherEffect = MutableStateFlow(false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weatherEffectIsShown
이 더 나을까요?
이것도 나쁘지 않은데,
이것을 사용하는 클라이언트 코드에서 볼 때 빌더 메서드가 아닌 조정자 메서드 같아 보였어요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 동감합니다~ 근데 isShownWeatherEffect
이 어떠심? ㅋㅋㅋ
@@ -29,6 +29,8 @@ enum class WeatherIcon( | |||
TURBULENCE(R.drawable.icon_air), | |||
} | |||
|
|||
fun WeatherUiModel.hasWeatherEffect(): Boolean = effect.isNotBlank() && effect.isNotEmpty() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UI 가 확실히 이뻐졌네요 👏
@@ -78,6 +78,9 @@ class BattleViewModel( | |||
battleResult.map { it.isSuccess() } | |||
.stateIn(viewModelScope, SharingStarted.WhileSubscribed(5000), false) | |||
|
|||
private val _showWeatherEffect = MutableStateFlow(false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 동감합니다~ 근데 isShownWeatherEffect
이 어떠심? ㅋㅋㅋ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UI가 훨씬 깔꼼해졌네요 고생하셨습니다~~
@@ -75,19 +75,39 @@ class BattleActivity : ToolbarActivity<ActivityBattleBinding>(R.layout.activity_ | |||
} | |||
|
|||
private fun initObserver() { | |||
observeWeathers() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
따로 분리하셨군요 굿 👍👍
작업 영상
Screen_recording_20241215_165047.mp4
작업한 내용
PR 포인트
🚀Next Feature