EditorEvents.ts 765 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. export const Quit = "EditorEventQuit";
  2. export const ModalError = "ModalError";
  3. export interface ModalErrorEvent {
  4. title: string;
  5. message: string;
  6. }
  7. export const ContentFolderChanged = "ContentFolderChanged";
  8. export interface ContentFolderChangedEvent {
  9. path: string;
  10. }
  11. export const LoadProject = "EditorLoadProject";
  12. export interface LoadProjectEvent {
  13. // The full path to the .atomic file
  14. path: string;
  15. }
  16. export const SaveResource = "EditorSaveResource";
  17. export interface SaveResourceEvent {
  18. // The full path to the resource to save
  19. // empty or undefined for current
  20. path: string;
  21. }
  22. export const EditResource = "EditorEditResource";
  23. export interface EditResourceEvent {
  24. // The full path to the resource to edit
  25. path: string;
  26. }