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

Method get_plugin_index

editor/editor_main_screen.cpp:224–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224int EditorMainScreen::get_plugin_index(EditorPlugin *p_editor) const {
225 int screen = -1;
226 for (int i = 0; i < editor_table.size(); i++) {
227 if (p_editor == editor_table[i]) {
228 screen = i;
229 break;
230 }
231 }
232 return screen;
233}
234
235EditorPlugin *EditorMainScreen::get_selected_plugin() const {
236 return selected_plugin;

Callers 2

_edit_currentMethod · 0.80
_set_main_scene_stateMethod · 0.80

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected