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

Method _cell_button_pressed

editor/plugins/editor_plugin_settings.cpp:179–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void EditorPluginSettings::_cell_button_pressed(Object *p_item, int p_column, int p_id, MouseButton p_button) {
180 if (p_button != MouseButton::LEFT) {
181 return;
182 }
183 TreeItem *item = Object::cast_to<TreeItem>(p_item);
184 if (!item) {
185 return;
186 }
187 if (p_id == BUTTON_PLUGIN_EDIT) {
188 if (p_column == COLUMN_EDIT) {
189 String dir = item->get_metadata(COLUMN_NAME);
190 plugin_config_dialog->config(dir);
191 plugin_config_dialog->popup_centered();
192 }
193 }
194}
195
196Vector<String> EditorPluginSettings::_get_plugins(const String &p_dir) {
197 Ref<DirAccess> da = DirAccess::create(DirAccess::ACCESS_RESOURCES);

Callers

nothing calls this directly

Calls 3

get_metadataMethod · 0.80
popup_centeredMethod · 0.80
configMethod · 0.45

Tested by

no test coverage detected