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

Method SetColor

core/UserMessagePBHelpers.h:834–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832 }
833
834 inline bool SetColor(const char *pszFieldName, const Color &value)
835 {
836 GETCHECK_FIELD();
837 CHECK_FIELD_TYPE(MESSAGE);
838 CHECK_FIELD_NOT_REPEATED();
839
840 CMsgRGBA *msgRGBA = (CMsgRGBA *)msg->GetReflection()->MutableMessage(msg, field);
841 msgRGBA->set_r(value.r());
842 msgRGBA->set_g(value.g());
843 msgRGBA->set_b(value.b());
844 msgRGBA->set_a(value.a());
845
846 return true;
847 }
848
849 inline bool GetRepeatedColor(const char *pszFieldName, int index, Color *out)
850 {

Callers 6

CValveMenuDisplayMethod · 0.80
SetExtOptionMethod · 0.80
GetColorMethod · 0.80
GetRepeatedColorMethod · 0.80
smn_PbSetColorFunction · 0.80
smn_KvSetColorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected