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

Method SetExtOption

core/MenuStyle_Valve.cpp:227–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227bool CValveMenuDisplay::SetExtOption(MenuOption option, const void *valuePtr)
228{
229 if (option == MenuOption_IntroMessage)
230 {
231 m_pKv->SetString("title", (const char *)valuePtr);
232 return true;
233 } else if (option == MenuOption_IntroColor) {
234 int *array = (int *)valuePtr;
235 m_pKv->SetColor("color", Color(array[0], array[1], array[2], array[3]));
236 return true;
237 } else if (option == MenuOption_Priority) {
238 m_pKv->SetInt("level", *(int *)valuePtr);
239 return true;
240 }
241
242 return false;
243}
244
245bool CValveMenuDisplay::CanDrawItem(unsigned int drawFlags)
246{

Callers

nothing calls this directly

Calls 3

SetColorMethod · 0.80
SetIntMethod · 0.80
SetStringMethod · 0.45

Tested by

no test coverage detected