MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / findMenu

Method findMenu

Engine/source/gui/editor/guiMenuBar.cpp:815–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813}
814
815GuiMenuBar::Menu *GuiMenuBar::findMenu(const char *menu)
816{
817 if(dIsdigit(menu[0]))
818 {
819 U32 id = dAtoi(menu);
820 for (U32 i = 0; i < mMenuList.size(); ++i)
821 if (id == mMenuList[i]->id)
822 return mMenuList[i];
823 return NULL;
824 }
825 else
826 {
827 for (U32 i = 0; i < mMenuList.size(); ++i)
828 if (!dStricmp(menu, mMenuList[i]->text))
829 return mMenuList[i];
830 return NULL;
831 }
832}
833
834GuiMenuBar::MenuItem *GuiMenuBar::findMenuItem(Menu *menu, const char *menuItem)
835{

Callers 10

ShapeEditorPluginFunction · 0.80
EditorGuiFunction · 0.80
EditorGui.ed.csFile · 0.80
ifFunction · 0.80
ShapeEditorPluginFunction · 0.80
EditorGuiFunction · 0.80
EditorGui.ed.csFile · 0.80
ifFunction · 0.80
updateMenuBarMethod · 0.80
guiMenuBar.cppFile · 0.80

Calls 4

dIsdigitFunction · 0.85
dStricmpFunction · 0.85
dAtoiFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected