Function debug_draw_cmds

Source
pub fn debug_draw_cmds(snapshot: &DebugSnapshot) -> Vec<DebugDrawCmd>
Expand description

Builds hover, selection, then warning outlines in deterministic order.

Hover is blue at 2 logical pixels, selection red at 2, and each node warning yellow at 1. Unknown IDs and snapshot-wide warnings are skipped. Duplicate warnings for one node intentionally produce duplicate outlines.

ยงExamples

use ailloli_ui_devtools_core::{debug_draw_cmds, DebugDrawCmd, DebugSnapshot};
fn overlays(snapshot: &DebugSnapshot) -> Vec<DebugDrawCmd> {
    debug_draw_cmds(snapshot)
}