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

Function apply_editor_gizmos

perro_editor/res/scripts/ui/editor_ui.rs:4131–4144  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
    gizmo: &editor_gizmos::GizmoView,
    mode: &str,
)

Source from the content-addressed store, hash-verified

4129 for value in values.to_mut().iter_mut() {
4130 rewrite_project_res_value(value, project_root);
4131 }
4132 }
4133 _ => {}
4134 }
4135}
4136
4137pub fn suffix_index(name: &str, prefix: &str) -> Option<usize> {
4138 name.strip_prefix(prefix)?.parse::<usize>().ok()
4139}
4140
4141pub fn middle_index(name: &str, prefix: &str, suffix: &str) -> Option<usize> {
4142 name.strip_prefix(prefix)?
4143 .strip_suffix(suffix)?
4144 .parse::<usize>()
4145 .ok()
4146}
4147

Callers 1

refresh_scene_pane_viewFunction · 0.85

Calls 2

set_panel_sizeFunction · 0.85
set_panel_visibleFunction · 0.70

Tested by

no test coverage detected