MCPcopy Create free account
hub / github.com/PerroEngine/Perro / scene_value_kind

Function scene_value_kind

perro_editor/res/scripts/ui/editor_ui.rs:2337–2357  ·  view source on GitHub ↗
(value: &SceneValue)

Source from the content-addressed store, hash-verified

2335 } else {
2336 0.026
2337 }
2338 })
2339 .collect()
2340}
2341
2342fn apply_inspector_value_row_text_layout<API: ScriptAPI + ?Sized>(
2343 ctx: &mut ScriptContext<'_, API>,
2344 idx: usize,
2345 row: &InspectorValueRow,
2346 changed: bool,
2347) {
2348 let (name_ratio, name_text_ratio) = if row.source == "section" {
2349 if row.depth == 0 {
2350 (0.96, 0.38)
2351 } else {
2352 (0.96, 0.36)
2353 }
2354 } else if row.kind == "EmptyArrayAdd" || row.kind == "EmptyObject" {
2355 (0.62, 0.62)
2356 } else if row.kind == "BitMask" {
2357 (0.13, 0.13)
2358 } else if row.kind.starts_with("Matrix(") {
2359 (0.23, 0.23)
2360 } else if row.kind == "Quat" || !row.components.is_empty() || row.kind == "Color" {

Callers 2

push_value_rowsFunction · 0.85

Calls

no outgoing calls

Tested by 2

push_value_rowsFunction · 0.68