퀘스트 일시 정지 · 이어하기 · 진행 상태 서버 저장 · 목록 보상받기
This commit is contained in:
@@ -70,6 +70,18 @@ class QuestIconBox extends StatelessWidget {
|
||||
_ => (bg: AppColors.onCosmic, fg: Colors.black),
|
||||
};
|
||||
|
||||
/// 일시 정지 표기 — 「카테고리 · 일시 정지 · 43/60」. 카드와 탭 위 캡슐이 같이 쓴다(원장 C-83).
|
||||
String pausedLabel(QuestCard card, {bool title = false}) {
|
||||
final session = card.session;
|
||||
return [
|
||||
if (!title) card.categoryName,
|
||||
appL10n.questPaused,
|
||||
if (title) card.title,
|
||||
if (session != null && session.total > 0)
|
||||
'${formatPop(session.progress)}/${formatPop(session.total)}',
|
||||
].join(' · ');
|
||||
}
|
||||
|
||||
/// 목록의 퀘스트 카드 한 장 — 시안 `264:46867` 카드(#1a1a1c r12 · 안쪽 20).
|
||||
///
|
||||
/// 명세 — *퀘스트 아이콘 · 퀘스트 명 · 퀘스트 카테고리 · 진행 상태 값 ·*
|
||||
@@ -135,7 +147,10 @@ class QuestCardTile extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 6),
|
||||
Text(
|
||||
card.categoryName,
|
||||
// 진행 상태 값 「일시 정지」 · 멈춘 진행값(원장 C-83 — 기존 카드 영역 안).
|
||||
card.stage == QuestStage.paused
|
||||
? pausedLabel(card)
|
||||
: card.categoryName,
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
|
||||
Reference in New Issue
Block a user