UI.9: integrate shared docking and preserve panel interactions

This commit is contained in:
skylar taylor-barrick
2026-10-10 16:22:21 -06:00
parent b70ae1741e
commit 9bfabc98b1
37 changed files with 2003 additions and 324 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ fn intra_layer_allowed(from: &str, to: &str) -> bool {
/// External crates that constitute a UI toolkit / windowing dependency.
/// Entries ending in `*` are prefixes.
pub const UI_CRATES: &[&str] = &["egui", "eframe", "winit", "egui_kittest", "rfd", "bevy*"];
pub const UI_CRATES: &[&str] = &["craft-ui", "egui", "eframe", "winit", "egui_kittest", "rfd", "bevy*"];
/// First layer allowed to use UI crates.
pub const UI_MIN_LAYER: u8 = 5;
@@ -291,7 +291,7 @@ mod tests {
#[test]
fn ui_crates_forbidden_below_l5() {
for dep in ["egui", "eframe", "winit", "rfd"] {
for dep in ["craft-ui", "egui", "eframe", "winit", "rfd"] {
let v = check(&[c("lightcraft-engine", &[(dep, Normal, false)])]);
assert!(matches!(v[..], [Violation::UiBelowL5 { .. }]), "{dep}");
}