MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / GetItemInfo

Method GetItemInfo

core/MenuStyle_Base.cpp:682–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682const char *CBaseMenu::GetItemInfo(unsigned int position, ItemDrawInfo *draw/* =NULL */, int client/* =0 */)
683{
684 if (position >= m_items.size())
685 return NULL;
686
687 if (client > 0 && position < m_RandomMaps[client].size())
688 {
689 position = m_RandomMaps[client][position];
690 }
691
692 if (draw)
693 {
694 draw->display = m_items[position].display->c_str();
695 draw->style = m_items[position].style;
696 }
697
698 return m_items[position].info.c_str();
699}
700
701void CBaseMenu::ShufflePerClient(int start, int stop)
702{

Callers 10

RenderMenuMethod · 0.80
OnMenuSelectMethod · 0.80
BuildVoteLeadersMethod · 0.80
GetMenuItemFunction · 0.80
OnMenuSelect2Method · 0.80
OnMenuDrawItemMethod · 0.80
OnMenuDisplayItemMethod · 0.80
OnMenuSelectMethod · 0.80
OnMenuDisplayItemMethod · 0.80
OnPluginDestroyedMethod · 0.80

Calls 2

sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected