feat(animation): 부활 상태 메시지 표시 추가
- TaskProgressPanel에 부활 메시지 표시 로직 추가 - EnhancedAnimationPanel에 부활 상태 메시지 표시 - _getStatusMessage 메서드로 상태별 메시지 분기
This commit is contained in:
@@ -609,6 +609,19 @@ class _EnhancedAnimationPanelState extends State<EnhancedAnimationPanel>
|
||||
);
|
||||
}
|
||||
|
||||
/// 현재 상태에 맞는 메시지 반환
|
||||
///
|
||||
/// 특수 애니메이션(부활 등) 중에는 해당 메시지 표시
|
||||
String _getStatusMessage() {
|
||||
// 부활 애니메이션 중에는 부활 메시지 표시
|
||||
if (widget.specialAnimation == AsciiAnimationType.resurrection) {
|
||||
return l10n.animationResurrecting;
|
||||
}
|
||||
|
||||
// 기본: 현재 태스크 캡션
|
||||
return widget.progress.currentTask.caption;
|
||||
}
|
||||
|
||||
/// 태스크 프로그레스 바
|
||||
Widget _buildTaskProgress() {
|
||||
final task = widget.progress.task;
|
||||
@@ -620,7 +633,7 @@ class _EnhancedAnimationPanelState extends State<EnhancedAnimationPanel>
|
||||
children: [
|
||||
// 캡션
|
||||
Text(
|
||||
widget.progress.currentTask.caption,
|
||||
_getStatusMessage(),
|
||||
style: Theme.of(context).textTheme.bodySmall,
|
||||
textAlign: TextAlign.center,
|
||||
maxLines: 1,
|
||||
|
||||
Reference in New Issue
Block a user