Merge main into M13.1 (scripts in File ▸ Scripts / Window via @dynamic menu nodes)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-03 04:27:09 -04:00
co-authored by Claude Opus 5.5
87 changed files with 10328 additions and 399 deletions
+5 -4
View File
@@ -78,10 +78,11 @@ fn script_windows_are_drawn_and_clickable() {
assert!(h.state().ui.dock.contains(PanelKind::ScriptPanel(panel)), "the panel docks");
assert!(h.state().auto.find(&format!("scriptui.{panel}")).is_some());
// The menus list scripts and panels.
let window_menu = effectcraft_ui_egui::menus::dynamic_entries(h.state(), "Window");
assert!(window_menu.iter().any(|(l, c, _)| l == "Layer Tools.jsx" && c == "window.scriptPanel"));
let scripts = effectcraft_ui_egui::menus::dynamic_entries(h.state(), "Scripts");
assert!(scripts.iter().any(|(l, c, _)| l == "Rename Layers.jsx" && c == "file.runScript"));
let cx = effectcraft_engine::menus::DynCtx::default();
let (panels, _) = effectcraft_engine::menus::dynamic(&h.state().session, "scriptPanels", &cx);
assert!(panels.iter().any(|e| e.label == "Layer Tools.jsx" && e.command == "window.scriptPanel"));
let (scripts, _) = effectcraft_engine::menus::dynamic(&h.state().session, "scripts", &cx);
assert!(scripts.iter().any(|e| e.label == "Rename Layers.jsx" && e.command == "file.runScript"));
// Closing the panel's tab closes its script window.
h.state_mut().close_panel(PanelKind::ScriptPanel(panel));
h.run_steps(2);