생성 때 고른 행성 형태·색 표시 · HOME 주간 정보
This commit is contained in:
@@ -4,6 +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/data/planet_visual_state.dart';
|
||||
import '../galaxy_data.dart';
|
||||
import '../galaxy_motion.dart';
|
||||
@@ -133,12 +134,15 @@ class GalaxyField extends StatelessWidget {
|
||||
return radiusOf(p) * depthScaleOf(at);
|
||||
}
|
||||
|
||||
/// 행성 일러스트. 내 행성은 홈과 같은 그림, 나머지는 시안 행성 2종을 돌려 쓴다.
|
||||
static String imageOf(PlanetNode p, int index) => p.isMine
|
||||
? 'assets/figma/planet-home.png'
|
||||
: (index.isEven
|
||||
? 'assets/figma/planet-1.png'
|
||||
: 'assets/figma/planet-2.png');
|
||||
/// 행성 일러스트 — 생성 때 고른 형태([planetShapeImage]). 형태가 없는 행성(성운 · 옛 데이터)만
|
||||
/// 내 행성은 홈과 같은 그림, 나머지는 시안 행성 2종을 돌려 쓴다. 색은 [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'));
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user