1
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-04-11 15:43:32 +08:00
parent f19e482c8f
commit 0981d6ee1b
78 changed files with 1102 additions and 8510 deletions

View File

@@ -2,7 +2,7 @@ import {useCallback, useEffect, useMemo, useRef, useState} from 'react';
import {
buildCustomWorldPlayableCharacters,
PRESET_CHARACTERS,
ROLE_TEMPLATE_CHARACTERS,
} from '../../data/characterPresets';
import {AnimationState, type Character, type CustomWorldProfile, WorldType} from '../../types';
import {getNineSliceStyle, UI_CHROME} from '../../uiAssets';
@@ -160,7 +160,7 @@ export function CharacterSelectionFlow({
onConfirm,
}: CharacterSelectionFlowProps) {
const selectionCharacters = useMemo(
() => (customWorldProfile ? buildCustomWorldPlayableCharacters(customWorldProfile) : PRESET_CHARACTERS),
() => (customWorldProfile ? buildCustomWorldPlayableCharacters(customWorldProfile) : ROLE_TEMPLATE_CHARACTERS),
[customWorldProfile],
);
const [selectedCharacterId, setSelectedCharacterId] = useState(selectionCharacters[0]?.id ?? '');

View File

@@ -34,10 +34,10 @@ import {
type GameState,
} from '../../types';
import {
CUSTOM_WORLD_THEME_ICONS,
CHROME_ICONS,
getNineSliceStyle,
UI_CHROME,
WORLD_SELECT_ICONS,
} from '../../uiAssets';
import { CustomWorldGenerationView } from '../CustomWorldGenerationView';
import { CustomWorldResultView } from '../CustomWorldResultView';
@@ -187,9 +187,9 @@ export function PreGameSelectionFlow({
featurePortrait: leadCharacter?.portrait ?? '',
featureIcon:
themeMode === 'martial'
? WORLD_SELECT_ICONS.wuxia
? CUSTOM_WORLD_THEME_ICONS.martial
: themeMode === 'arcane'
? WORLD_SELECT_ICONS.xianxia
? CUSTOM_WORLD_THEME_ICONS.arcane
: CHROME_ICONS.refreshOptions,
accentLabel: '自定义世界',
};