fix(npcs): faster editor open, save progress, black screen crash
Warm and show the NPC window sooner, lazy-load ReactFlow/TipTap, overlay save progress like materials, and fix the undefined controlStyles crash after creating an NPC. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -116,6 +116,7 @@ export const ipcChannels = {
|
||||
exportZipProgress: 'project.exportZipProgress',
|
||||
scenePreviewImportProgress: 'project.scenePreviewImportProgress',
|
||||
materialUpsertProgress: 'project.materialUpsertProgress',
|
||||
npcUpsertProgress: 'project.npcUpsertProgress',
|
||||
},
|
||||
windows: {
|
||||
openMultiWindow: 'windows.openMultiWindow',
|
||||
@@ -217,6 +218,8 @@ export type MaterialUpsertProgressEvent = {
|
||||
detail?: string;
|
||||
};
|
||||
|
||||
export type NpcUpsertProgressEvent = MaterialUpsertProgressEvent;
|
||||
|
||||
export type UpdaterCheckResponse =
|
||||
| { outcome: 'not_packaged' }
|
||||
| { outcome: 'no_license' }
|
||||
@@ -260,6 +263,7 @@ export type IpcEventMap = {
|
||||
[ipcChannels.project.exportZipProgress]: ZipProgressEvent;
|
||||
[ipcChannels.project.scenePreviewImportProgress]: ScenePreviewImportEvent;
|
||||
[ipcChannels.project.materialUpsertProgress]: MaterialUpsertProgressEvent;
|
||||
[ipcChannels.project.npcUpsertProgress]: NpcUpsertProgressEvent;
|
||||
[ipcChannels.updater.progress]: UpdaterProgressEvent;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user