MCPcopy Create free account
hub / github.com/BruceDevices/firmware / optionsMenu

Method optionsMenu

src/core/menu_items/ScriptsMenu.cpp:8–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <algorithm> // for std::sort
7
8void ScriptsMenu::optionsMenu() {
9#if !defined(LITE_VERSION) && !defined(DISABLE_INTERPRETER)
10 if (interpreter_state >= 0) {
11 interpreter_state = 1;
12 returnToMenu = true;
13 return;
14 }
15
16 options = getScriptsOptionsList("", false);
17
18 options.push_back({"Load...", run_bjs_script});
19 addOptionToMainMenu();
20
21 loopOptions(options, MENU_TYPE_SUBMENU, "Scripts");
22#endif
23}
24
25void ScriptsMenu::drawIcon(float scale) {
26 clearIconArea();

Callers

nothing calls this directly

Calls 3

getScriptsOptionsListFunction · 0.85
addOptionToMainMenuFunction · 0.85
loopOptionsFunction · 0.50

Tested by

no test coverage detected