MCPcopy Create free account
hub / github.com/benkuper/Chataigne / getCommandMenu

Method getCommandMenu

Source/Module/Module.cpp:127–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127PopupMenu Module::getCommandMenu(int offset, CommandContext context)
128{
129 PopupMenu m = defManager->getCommandMenu(offset, context);
130 m.addSeparator();
131 templateManager->defManager->addCommandsToMenu(&m, offset + 500, context);
132 m.addItem(offset + 401, "Script callback");
133 return m;
134}
135
136CommandDefinition* Module::getCommandDefinitionForItemID(int itemID)
137{

Callers 1

Calls 1

addCommandsToMenuMethod · 0.80

Tested by

no test coverage detected