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

Method FindStyleByName

core/MenuManager.cpp:202–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202IMenuStyle *MenuManager::FindStyleByName(const char *name)
203{
204 unsigned int count = GetStyleCount();
205 for (unsigned int i=0; i<count; i++)
206 {
207 IMenuStyle *ptr = GetStyle(i);
208 if (strcasecmp(ptr->GetStyleName(), name) == 0)
209 {
210 return ptr;
211 }
212 }
213
214 return NULL;
215}
216
217inline bool IsSlotItem(IMenuPanel *display,
218 unsigned int style)

Callers 1

smn_menus.cppFile · 0.80

Calls 1

GetStyleNameMethod · 0.45

Tested by

no test coverage detected