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

Method for_asset

perro_editor/res/scripts/ui/editor_ui.rs:1296–1317  ·  view source on GitHub ↗
(state: &EditorState)

Source from the content-addressed store, hash-verified

1294 RowIndicator::Collapsed
1295 } else {
1296 RowIndicator::Expanded
1297 }
1298}
1299
1300fn take_inspector_layout_pass<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>) -> bool {
1301 with_state_mut!(ctx.run, EditorState, ctx.id, |state| {
1302 if state.inspector_layout_applied {
1303 false
1304 } else {
1305 state.inspector_layout_applied = true;
1306 true
1307 }
1308 })
1309 .unwrap_or(false)
1310}
1311
1312fn ensure_inspector_node_chain<API: ScriptAPI + ?Sized>(
1313 ctx: &mut ScriptContext<'_, API>,
1314 parts: &[String],
1315) {
1316 let Some(mount_id) = find_named(ctx, "inspector_node_chain_mount") else {
1317 return;
1318 };
1319 set_ui_display(ctx, "inspector_node_chain_mount", !parts.is_empty());
1320 if parts.is_empty() {

Callers

nothing calls this directly

Calls 5

asset_inspector_textFunction · 0.85
asset_edit_nameFunction · 0.85
cloneMethod · 0.80
apply_asset_actionsMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected