| 233 | } |
| 234 | |
| 235 | void 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 | |
| 249 | DependencyEditor::DependencyEditor() { |
| 250 | VBoxContainer *vb = memnew(VBoxContainer); |
no test coverage detected