Working on dialog editor, on dialogs, on phone

This commit is contained in:
Vladislav Khorev committed 2026-06-05 21:17:51 +03:00
1 parent 0e27521bea
commit 8f7797789d
63 files changed
+9502 -1459

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import { CharacterPreset } from '../types/dialogue';
export const MAIN_CHARACTER = 'Бекзат';
export const PHONE_PORTRAIT = 'resources/dialogue/portrait_phone.png';
export const CHARACTER_PRESETS: CharacterPreset[] = [
{ label: 'Бекзат', portrait: 'resources/dialogue/portrait_hero_neutral.png' },
{ label: 'Аида Джаныбекова', portrait: 'resources/dialogue/portrait_teacher.png' },
{ label: 'Айпери', portrait: 'resources/dialogue/portrait_aiperi.png' },
{ label: 'Призрак', portrait: 'resources/dialogue/portrait_ghost.png' },
{ label: 'Алик', portrait: 'resources/dialogue/portrait_student_boy.png' },
{ label: 'Студент', portrait: 'resources/dialogue/portrait_student_boy.png' },
{ label: 'Студентка', portrait: 'resources/dialogue/portrait_student_girl.png' },
{ label: 'Бермет', portrait: 'resources/dialogue/portrait_student_girl.png' },
{ label: 'Алтынай', portrait: 'resources/dialogue/portrait_student_girl.png' },
];
export const CUSTOM_CHARACTER_LABEL = '(custom)';
export function getPortraitForSpeaker(speaker: string): string {
const preset = CHARACTER_PRESETS.find(p => p.label === speaker);
return preset?.portrait ?? '';
}