fn draw_scene_tile(
ui: &mut Ui,
path: &Path,
current_scene: &Path,
start_scene: &Path,
renaming_scene: &mut Option<PathBuf>,
scene_rename_buffer: &mut String,
requests: &mut UiRequests,
)Expand description
One tile: a placeholder icon (see draw_model_tile’s doc comment — no cheap thumbnail for a
scene either), highlighted if it’s the scene currently open for editing and starred if it’s
the project’s start scene. Double-click switches to it (opening a new tab if it isn’t already
open — see EditorScene::switch_or_open_scene — or just activating its existing tab, no
reload, if it is); the context menu offers Rename (inline, like the Scripts section’s) and
“Set as Start Scene”. Renaming only touches the file on disk, ProjectManifest.start_scene,
and any open tab’s identity — unlike a ScriptAttachment path (structured ECS data
rename_script can fix up everywhere it’s referenced), a scene.change("path") call is a
free-text string literal inside .rhai source that can’t be auto-fixed, so a renamed scene’s
incoming scene.change(...) calls (if any) are left dangling and need updating by hand.