MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Menus_FindByName

Function Menus_FindByName

code/ui/ui_shared.cpp:1609–1620  ·  view source on GitHub ↗

=============== Menus_FindByName =============== */

Source from the content-addressed store, hash-verified

1607===============
1608*/
1609menuDef_t *Menus_FindByName(const char *p)
1610{
1611 int i;
1612 for (i = 0; i < menuCount; i++)
1613 {
1614 if (Q_stricmp(Menus[i].window.name, p) == 0)
1615 {
1616 return &Menus[i];
1617 }
1618 }
1619 return NULL;
1620}
1621
1622/*
1623===============

Callers 9

UI_RunMenuScriptFunction · 0.70
UI_FeederSelectionFunction · 0.70
UI_AdjustSaveGameListBoxFunction · 0.70
Item_ActivateByNameFunction · 0.70
Menus_CloseByNameFunction · 0.70
Menus_HideItemsFunction · 0.70
Menus_ShowItemsFunction · 0.70
CL_CgameSystemCallsFunction · 0.50

Calls 1

Q_stricmpFunction · 0.85

Tested by

no test coverage detected