성운명 오류 문구 줄바꿈 · 옛 행성 그림 통일 · 광고 안내 모달 줄바꿈
This commit is contained in:
@@ -4,7 +4,7 @@ import '../../core/data/planet_visual_state.dart';
|
||||
import '../../core/theme/tokens.dart';
|
||||
import '../../core/ui/app_dialog.dart';
|
||||
import '../../core/ui/app_icons.dart';
|
||||
import '../../core/ui/planet_25d.dart' show PlanetArt;
|
||||
import '../../core/ui/planet_25d.dart' show PlanetArt, planetFallbackImage;
|
||||
import '../notification/notification_screen.dart';
|
||||
import '../eclipse/eclipse_data.dart';
|
||||
import '../eclipse/widgets/eclipse_banner.dart';
|
||||
@@ -31,13 +31,10 @@ class GalaxyHomeScreen extends StatefulWidget {
|
||||
/// 카드 그림 — HOME · 맵과 같이 팬덤 `stage` 로 고른다. Stage0 성운만 성운 그림이고
|
||||
/// 정식 행성은 시안 행성 그림(`image 8` · 파란 행성 벡터)을 칸마다 번갈아 쓴다.
|
||||
/// 예전엔 칸 순서로 골라 둘째 칸이 행성이어도 성운 그림이 됐다.
|
||||
// ponytail: 형태가 없는 행성(옛 데이터)만 고정된 두 그림 중 하나(id 기준). 형태가 있으면
|
||||
// 형태가 없는 행성(옛 데이터)만 [planetFallbackImage]. 형태가 있으면
|
||||
// 카드가 [PlanetArt] 로 생성 때 고른 형태 · 색을 그린다.
|
||||
static String cardImageOf(PlanetNode p, [int _ = 0]) => p.stage == 0
|
||||
? 'assets/figma/nebula-card.png'
|
||||
: (p.id.codeUnits.fold<int>(0, (a, c) => a + c).isEven
|
||||
? 'assets/figma/planet-detail-hero.png'
|
||||
: 'assets/figma/planet-earth.png');
|
||||
static String cardImageOf(PlanetNode p, [int _ = 0]) =>
|
||||
planetFallbackImage(p.id, nebula: p.stage == 0);
|
||||
|
||||
const GalaxyHomeScreen({
|
||||
super.key,
|
||||
|
||||
@@ -5,7 +5,7 @@ import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
import '../../core/theme/tokens.dart';
|
||||
import '../../core/data/backend.dart' show BackendException;
|
||||
import '../../core/ui/planet_25d.dart' show PlanetArt;
|
||||
import '../../core/ui/planet_25d.dart' show PlanetArt, planetFallbackImage;
|
||||
import '../../core/ui/play_banner.dart';
|
||||
import '../planet/widgets/fandom_size_badge.dart';
|
||||
import 'galaxy_data.dart';
|
||||
@@ -546,9 +546,7 @@ class _Hit extends StatelessWidget {
|
||||
SizedBox.square(
|
||||
dimension: 70,
|
||||
child: PlanetArt(
|
||||
fallback: nebula
|
||||
? 'assets/figma/nebula-card.png'
|
||||
: 'assets/figma/planet-detail-hero.png',
|
||||
fallback: planetFallbackImage(planet.id, nebula: nebula),
|
||||
planetType: nebula ? null : planet.planetType,
|
||||
colorKey: planet.colorKey,
|
||||
semanticLabel: planet.name,
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../core/theme/tokens.dart';
|
||||
import '../../../core/ui/live_planet.dart';
|
||||
import '../../../core/ui/planet_25d.dart' show planetShapeImage;
|
||||
import '../../../core/ui/planet_25d.dart' show planetFallbackImage, planetShapeImage;
|
||||
import '../../../core/data/planet_visual_state.dart';
|
||||
import '../galaxy_data.dart';
|
||||
import '../galaxy_motion.dart';
|
||||
@@ -134,15 +134,10 @@ class GalaxyField extends StatelessWidget {
|
||||
return radiusOf(p) * depthScaleOf(at);
|
||||
}
|
||||
|
||||
/// 행성 일러스트 — 생성 때 고른 형태([planetShapeImage]). 형태가 없는 행성(성운 · 옛 데이터)만
|
||||
/// 내 행성은 홈과 같은 그림, 나머지는 시안 행성 2종을 돌려 쓴다. 색은 [LivePlanet25D] 가 입힌다.
|
||||
/// 행성 일러스트 — 생성 때 고른 형태([planetShapeImage]). 형태가 없는 행성(성운 · 옛 데이터)은
|
||||
/// 다른 화면과 같은 [planetFallbackImage](10/6 C-5). 색은 [LivePlanet25D] 가 입힌다.
|
||||
static String imageOf(PlanetNode p, int index) =>
|
||||
planetShapeImage(p.planetType) ??
|
||||
(p.isMine
|
||||
? 'assets/figma/planet-home.png'
|
||||
: (index.isEven
|
||||
? 'assets/figma/planet-1.png'
|
||||
: 'assets/figma/planet-2.png'));
|
||||
planetShapeImage(p.planetType) ?? planetFallbackImage(p.id);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user