93d0723a-9266-4ceb-8161-2aa381e433ab.js.map
1.95 KB
{"version":3,"sources":["assets/script/game/ui/view/type/ChatListView.ts"],"names":[],"mappings":";;;;;;;AA8Ca,QAAA,gBAAgB,GAAG,cAAc,CAAC;AAEpC,QAAA,oBAAoB,GAAG,KAAK,CAAC","file":"","sourceRoot":"/","sourcesContent":["import { DeepReadonly } from \"simba-utils\";\nimport { SentenceContent, SentenceTextContent, SentenceMediaContent, SentenceSelectContent } from \"../../../../avg/model/PlotModel\";\nimport { PureView } from \"../../../../common/classbase/ViewBase\";\nimport { ListItemProps, ListView, ListViewProps } from \"../../baseview/ListView\";\nimport { BoldNode } from \"../../../../avg/model/RichTextModel\";\n\nexport type ChatListItemProps = ListItemProps &\n ({\n type: \"plot\";\n icon?: string;\n name?: string; // 没有name是旁白\n isSelf: boolean; // 是否为自己\n select?: number;\n addLike?: number;\n content: DeepReadonly<SentenceContent>;\n } |\n { type: \"history\" | \"end\" } |\n {\n type: \"customplot\";\n icon?: string;\n name?: string;\n isSelf: boolean;\n content?: DeepReadonly<SentenceTextContent | SentenceMediaContent>;\n gift?: { icon: string, text: string };\n addLike?: number;\n });\n\nexport interface ChatListViewProps extends ListViewProps<ChatListItemProps> {\n title: string;\n msgSceneId: number;\n historyMsgCount: number;\n backRedDot: boolean;\n onSelectChapter: () => void;\n onSelectSentence: (select: number) => void;\n onCloseBtnClick: () => void;\n onCompletePlot: (select?: number) => void;\n onSetContent: (content: DeepReadonly<SentenceSelectContent> | undefined) => void;\n isSentenceSelectVisible: () => boolean;\n}\n\ntype ChatListViewBase = ListView & PureView<ChatListViewProps>;\n\nexport interface ChatListView extends ChatListViewBase {\n closeAnimation(): Promise<void>;\n}\n\nexport const ChatListViewType = \"ChatListView\";\n\nexport let ChatListAutoNextPlot = false;"]}