Skip to content

Commit

Permalink
feat(player): 新学生 L2D
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9804 committed May 27, 2024
1 parent 190e82e commit b4b9fa7
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ const students = computed(() => studentStore.getAllStudents);
// 包含每个学生所有名字的 array,用于根据名字过滤
const studentsNameList = computed<StudentNames[]>(() => {
return students.value.map(student => {
return students.value.map((student: Student) => {
const aggregatedNickname = student?.nicknameFrom
? Array.from(
new Set(
student.nickname.concat(
students.value.find(el => el.id === student.nicknameFrom)
students.value.find((el: Student) => el.id === student.nicknameFrom)
?.nickname || []
)
)
Expand Down
2 changes: 1 addition & 1 deletion apps/blue-archive-story-viewer/src/store/students.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const useStudentStore = defineStore({
return state.students;
},
getStudentById: state => (id: number) =>
state.students.find(student => student.id === id),
state.students.find((student: Student) => student.id === id),
getStudentAvatar: () => (CharacterId: number) =>
`/image/avatar_students/${CharacterId}.webp`,
},
Expand Down
34 changes: 34 additions & 0 deletions lib/ba-story-player/lib/layers/l2dLayer/l2dConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1214,4 +1214,38 @@ export const l2dConfig: IL2dConfig = {
},
otherSpine: [],
},
CH0201_home: {
name: "CH0201_home",
playQue: [
{
name: "CH0201_home",
animation: "Start_Idle_01",
fadeTime: 4.2,
fade: true,
},
],
spineSettings: {
CH0201_home: {
scale: 1.0,
},
},
otherSpine: [],
},
CH0202_home: {
name: "CH0202_home",
playQue: [
{
name: "CH0202_home",
animation: "Start_Idle_01",
fadeTime: 5.9,
fade: true,
},
],
spineSettings: {
CH0202_home: {
scale: 1.0,
},
},
otherSpine: [],
},
};

0 comments on commit b4b9fa7

Please sign in to comment.