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

Function editor_status_text

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

Source from the content-addressed store, hash-verified

1483 (0.38, 0.56),
1484 );
1485 set_button_size(
1486 ctx,
1487 &format!("inspector_var_{idx}_quat_button"),
1488 (0.070, 0.56),
1489 );
1490 set_button_size(
1491 ctx,
1492 &format!("inspector_var_{idx}_euler_button"),
1493 (0.070, 0.56),
1494 );
1495 set_label_text_ratio(ctx, &format!("inspector_var_{idx}_name"), 0.31);
1496 set_label_text_ratio(ctx, &format!("inspector_var_{idx}_type"), 0.25);
1497 idx += 1;
1498 }
1499}
1500
1501fn remove_legacy_transform_rows<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>) {
1502 for name in [
1503 "inspector_pos",
1504 "inspector_position_label",
1505 "inspector_position_box",
1506 "inspector_position_row",
1507 "inspector_rotation_label",
1508 "inspector_rotation_box",
1509 "inspector_rotation_mode_row",
1510 "inspector_rotation_row",
1511 "inspector_scale_label",
1512 "inspector_scale_box",
1513 "inspector_scale_row",
1514 ] {
1515 if let Some(id) = find_named(ctx, name) {
1516 let _ = ctx.run.Nodes().remove_node(id);
1517 }
1518 }
1519}
1520
1521fn apply_inspector_dynamic_layout<API: ScriptAPI + ?Sized>(
1522 ctx: &mut ScriptContext<'_, API>,
1523 inspector: &InspectorViewData,
1524) {
1525 let asset_button_w = if inspector.glb_asset_actions {
1526 0.19

Callers 1

from_stateMethod · 0.85

Calls 6

cached_scene_doc_sharedFunction · 0.85
filtered_file_pathsFunction · 0.85
short_pathFunction · 0.85
joinMethod · 0.80
is_emptyMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected