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

Method _patch_tree_item_edited

editor/export/project_export.cpp:1193–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1191}
1192
1193void ProjectExportDialog::_patch_tree_item_edited() {
1194 TreeItem *item = patches->get_edited();
1195 if (!item) {
1196 return;
1197 }
1198
1199 Ref<EditorExportPreset> current = get_current_preset();
1200 ERR_FAIL_COND(current.is_null());
1201
1202 int index = item->get_metadata(0);
1203 String patch_path = item->get_text(0);
1204
1205 current->set_patch(index, patch_path);
1206 item->set_tooltip_text(0, patch_path);
1207}
1208
1209void ProjectExportDialog::_patch_file_selected(const String &p_path) {
1210 Ref<EditorExportPreset> current = get_current_preset();

Callers

nothing calls this directly

Calls 6

get_metadataMethod · 0.80
set_patchMethod · 0.80
get_editedMethod · 0.45
is_nullMethod · 0.45
get_textMethod · 0.45
set_tooltip_textMethod · 0.45

Tested by

no test coverage detected