fix(game): 부활 서비스 및 게임 화면 UI 수정
This commit is contained in:
@@ -532,11 +532,14 @@ class _GamePlayScreenState extends State<GamePlayScreen>
|
||||
);
|
||||
Future.delayed(Duration(milliseconds: duration), () async {
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_specialAnimation = null;
|
||||
});
|
||||
// 부활 후 게임 재개 (새 루프 시작)
|
||||
// 먼저 게임 재개 (status를 running으로 변경)
|
||||
// 이렇게 해야 setState 시 UI가 '일시정지' 상태로 보이지 않음
|
||||
await widget.controller.resumeAfterResurrection();
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_specialAnimation = null;
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -578,7 +581,8 @@ class _GamePlayScreenState extends State<GamePlayScreen>
|
||||
widget.controller.loop?.cycleSpeed();
|
||||
setState(() {});
|
||||
},
|
||||
isPaused: !widget.controller.isRunning,
|
||||
// 특수 애니메이션 중에는 일시정지 상태로 표시하지 않음
|
||||
isPaused: !widget.controller.isRunning && _specialAnimation == null,
|
||||
onPauseToggle: () async {
|
||||
await widget.controller.togglePause();
|
||||
setState(() {});
|
||||
@@ -702,7 +706,8 @@ class _GamePlayScreenState extends State<GamePlayScreen>
|
||||
widget.controller.loop?.cycleSpeed();
|
||||
setState(() {});
|
||||
},
|
||||
isPaused: !widget.controller.isRunning,
|
||||
// 특수 애니메이션 중에는 일시정지 상태로 표시하지 않음
|
||||
isPaused: !widget.controller.isRunning && _specialAnimation == null,
|
||||
onPauseToggle: () async {
|
||||
await widget.controller.togglePause();
|
||||
setState(() {});
|
||||
|
||||
@@ -134,7 +134,7 @@ class _CinematicViewState extends State<CinematicView>
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 18,
|
||||
fontFamily: 'monospace',
|
||||
fontFamily: 'JetBrainsMono',
|
||||
height: 1.5,
|
||||
),
|
||||
textAlign: TextAlign.center,
|
||||
@@ -214,7 +214,7 @@ class _AsciiArtDisplay extends StatelessWidget {
|
||||
style: const TextStyle(
|
||||
color: Colors.cyan,
|
||||
fontSize: 14,
|
||||
fontFamily: 'monospace',
|
||||
fontFamily: 'JetBrainsMono',
|
||||
height: 1.2,
|
||||
),
|
||||
textAlign: TextAlign.center,
|
||||
|
||||
@@ -114,7 +114,7 @@ class _LogEntryTile extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
fontSize: 10,
|
||||
color: Theme.of(context).colorScheme.outline,
|
||||
fontFamily: 'monospace',
|
||||
fontFamily: 'JetBrainsMono',
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 4),
|
||||
|
||||
@@ -102,7 +102,7 @@ class DeathOverlay extends StatelessWidget {
|
||||
Text(
|
||||
' _____\n / \\\n| () () |\n \\ ^ /\n |||||',
|
||||
style: TextStyle(
|
||||
fontFamily: 'monospace',
|
||||
fontFamily: 'JetBrainsMono',
|
||||
fontSize: 14,
|
||||
color: Theme.of(context).colorScheme.error,
|
||||
height: 1.0,
|
||||
@@ -369,7 +369,7 @@ class DeathOverlay extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
color: color,
|
||||
fontFamily: 'monospace',
|
||||
fontFamily: 'JetBrainsMono',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -99,7 +99,7 @@ class _RacePreviewState extends State<RacePreview> {
|
||||
TextSpan(
|
||||
text: char,
|
||||
style: TextStyle(
|
||||
fontFamily: 'monospace',
|
||||
fontFamily: 'JetBrainsMono',
|
||||
fontSize: 18,
|
||||
height: 1.2,
|
||||
color: _getCharColor(char),
|
||||
|
||||
Reference in New Issue
Block a user