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

Function refresh_all

perro_editor/res/scripts/ui/editor_ui.rs:47–56  ·  view source on GitHub ↗
(ctx: &mut ScriptContext<'_, API>)

Source from the content-addressed store, hash-verified

45static FILTERED_FILE_CACHE: OnceLock<Mutex<Option<CachedFilteredFiles>>> = OnceLock::new();
46static EDITOR_TREE_ICON_CACHE: OnceLock<Mutex<Vec<(String, TextureID)>>> = OnceLock::new();
47
48pub fn classify_editor_log(text: &str) -> &'static str {
49 let first = text.lines().next().unwrap_or_default().to_ascii_lowercase();
50 if first.contains("fail") || first.contains("error") || first.contains("blocked") {
51 "error"
52 } else if first.contains("warn") || first.contains("dirty") || first.contains("timeout") {
53 "warn"
54 } else {
55 "info"
56 }
57}
58
59pub fn capture_editor_output_state(state: &mut EditorState) {

Callers 15

set_modeFunction · 0.85
handle_viewport_clickFunction · 0.85
deselect_viewport_nodeFunction · 0.85
place_selected_2dFunction · 0.85
place_selected_3dFunction · 0.85
poll_project_diffsFunction · 0.85
reload_scene_pathFunction · 0.85
update_preview_pickFunction · 0.85
move_doc_ui_nodeFunction · 0.85
resize_doc_ui_nodeFunction · 0.85
rotate_doc_ui_nodeFunction · 0.85

Calls 7

refresh_chrome_viewFunction · 0.85
refresh_manager_viewFunction · 0.85
refresh_node_picker_viewFunction · 0.85
refresh_files_viewFunction · 0.85
refresh_tabs_viewFunction · 0.85
refresh_scene_pane_viewFunction · 0.85
refresh_inspector_viewFunction · 0.85