MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / edit

Method edit

editor/file_system/dependency_editor.cpp:235–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void DependencyEditor::edit(const String &p_path) {
236 editing = p_path;
237 set_title(TTR("Dependencies For:") + " " + p_path.get_file());
238
239 _update_list();
240 popup_centered_ratio(0.4);
241
242 if (EditorNode::get_singleton()->is_scene_open(p_path)) {
243 EditorNode::get_singleton()->show_warning(vformat(TTR("Scene '%s' is currently being edited.\nChanges will only take effect when reloaded."), p_path.get_file()));
244 } else if (ResourceCache::has(p_path)) {
245 EditorNode::get_singleton()->show_warning(vformat(TTR("Resource '%s' is in use.\nChanges will only take effect when reloaded."), p_path.get_file()));
246 }
247}
248
249DependencyEditor::DependencyEditor() {
250 VBoxContainer *vb = memnew(VBoxContainer);

Callers 1

_button_pressedMethod · 0.45

Calls 6

TTRFunction · 0.85
vformatFunction · 0.85
hasFunction · 0.85
is_scene_openMethod · 0.80
show_warningMethod · 0.80
get_fileMethod · 0.45

Tested by

no test coverage detected