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

Function IsSlotItem

core/MenuManager.cpp:217–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217inline bool IsSlotItem(IMenuPanel *display,
218 unsigned int style)
219{
220 if (!display->CanDrawItem(style))
221 {
222 return false;
223 }
224 if ((style & ITEMDRAW_IGNORE) == ITEMDRAW_IGNORE)
225 {
226 return false;
227 }
228 if (style & ITEMDRAW_RAWLINE)
229 {
230 return false;
231 }
232
233 return true;
234}
235
236IMenuPanel *MenuManager::RenderMenu(int client, menu_states_t &md, ItemOrder order)
237{

Callers 1

RenderMenuMethod · 0.85

Calls 1

CanDrawItemMethod · 0.45

Tested by

no test coverage detected