优化各元素输入框中的启发提示文本
音效、背景音乐和图标素材改为空值加灰色启发提示。 角色规范、图标规范和自定义规范输入框补充灰色启发提示。 同步更新相关前端组件测试。
This commit is contained in:
@@ -50,11 +50,6 @@ const VIDEO_REFERENCE_LIMITS = {
|
||||
video: 3,
|
||||
audio: 3,
|
||||
} as const;
|
||||
const DEFAULT_SOUND_EFFECT_PROMPT =
|
||||
'短促清脆的游戏交互音效,带轻微闪光质感,干净收尾,适合按钮确认或收集奖励。';
|
||||
const DEFAULT_BACKGROUND_MUSIC_PROMPT =
|
||||
'适合轻松冒险游戏的循环背景音乐,温暖明亮,旋律简洁,不包含人声。';
|
||||
|
||||
function getViewportWorldCenter({
|
||||
canvasSize,
|
||||
viewport,
|
||||
@@ -194,6 +189,10 @@ export function createGenerateDialogDraft({
|
||||
};
|
||||
}
|
||||
|
||||
function shouldUseSpecPlaceholderValues(specType: SpecGenerationType) {
|
||||
return specType === 'character' || specType === 'ui';
|
||||
}
|
||||
|
||||
export function createSpecDialogDraft({
|
||||
canvasSize,
|
||||
viewport,
|
||||
@@ -210,7 +209,12 @@ export function createSpecDialogDraft({
|
||||
status: 'idle',
|
||||
composerOpen: true,
|
||||
specType,
|
||||
specValues: { ...DEFAULT_SPEC_FORM_VALUES[specType] },
|
||||
specValues: {
|
||||
...DEFAULT_SPEC_FORM_VALUES[specType],
|
||||
...(shouldUseSpecPlaceholderValues(specType)
|
||||
? { playSetting: '', artStyle: '' }
|
||||
: {}),
|
||||
},
|
||||
placeholder: {
|
||||
x: worldCenter.x - SPEC_FRAME_ORIGINAL_SIZE.width / 2,
|
||||
y: worldCenter.y - SPEC_FRAME_ORIGINAL_SIZE.height / 2,
|
||||
@@ -274,11 +278,11 @@ export function createIconGenerationDialogDraft({
|
||||
const dimensionDefaults = resolveImageDimensionDefaults(normalizedImageModel);
|
||||
return {
|
||||
mode: 'icon',
|
||||
prompt: formatIconDescriptionsText(DEFAULT_ICON_DESCRIPTIONS),
|
||||
prompt: '',
|
||||
status: 'idle',
|
||||
composerOpen: true,
|
||||
iconSpecReference: null,
|
||||
iconDescriptions: [...DEFAULT_ICON_DESCRIPTIONS],
|
||||
iconDescriptions: [],
|
||||
imageModel: normalizedImageModel,
|
||||
aspectRatio: dimensionDefaults.aspectRatio,
|
||||
imageSize: dimensionDefaults.imageSize,
|
||||
@@ -373,7 +377,7 @@ export function createSoundEffectGenerationDialogDraft({
|
||||
const worldCenter = getViewportWorldCenter({ canvasSize, viewport });
|
||||
return {
|
||||
mode: 'audio-sound-effect',
|
||||
prompt: DEFAULT_SOUND_EFFECT_PROMPT,
|
||||
prompt: '',
|
||||
status: 'idle',
|
||||
composerOpen: true,
|
||||
soundModel: DEFAULT_SOUND_EFFECT_MODEL,
|
||||
@@ -399,7 +403,7 @@ export function createBackgroundMusicGenerationDialogDraft({
|
||||
const worldCenter = getViewportWorldCenter({ canvasSize, viewport });
|
||||
return {
|
||||
mode: 'audio-background-music',
|
||||
prompt: DEFAULT_BACKGROUND_MUSIC_PROMPT,
|
||||
prompt: '',
|
||||
status: 'idle',
|
||||
composerOpen: true,
|
||||
makeInstrumental: true,
|
||||
|
||||
Reference in New Issue
Block a user