GetBlipColor: Difference between revisions
m (Xabi moved page NAPI.Blip.GetBlipColor to GetBlipColor) |
No edit summary |
||
| Line 1: | Line 1: | ||
Gets the color of a blip. | Gets the color of a blip. | ||
= | {{CSharpContainer| | ||
{{#tag:syntaxhighlight|int {{Template:CSharp_Serverside_namespace}}Blip.GetBlipColor(Blip blip);|lang=csharp}} | |||
{{Parameters}} | |||
*'''blip:''' The blip to get the color from. Parameter input should be in '''Blip''' type | *'''blip:''' The blip to get the color from. Parameter input should be in '''Blip''' type | ||
{{Example}} | {{Example}} | ||
{{#tag:syntaxhighlight|var list = {{Template:CSharp_Serverside_namespace}}Pools.GetAllBlips(); | |||
var list = | |||
foreach (Blip blip in list) | foreach (Blip blip in list) | ||
{ | { | ||
if ( | if ({{Template:CSharp_Serverside_namespace}}Blip.GetBlipColor(blip) == 0) | ||
{ | { | ||
{{Template:CSharp_Serverside_namespace}}Blip.SetBlipColor(blip, 38); | |||
} | } | ||
} | } | ||
}} | }} | ||
[[Category:Serverside API]] | [[Category:Serverside API]] | ||
Revision as of 08:00, 29 November 2019
Gets the color of a blip.
{{CSharpContainer|
int NAPI.Blip.GetBlipColor(Blip blip);
Parameters
- blip: The blip to get the color from. Parameter input should be in Blip type
Example
var list = NAPI.Pools.GetAllBlips();
foreach (Blip blip in list)
{
if (NAPI.Blip.GetBlipColor(blip) == 0)
{
NAPI.Blip.SetBlipColor(blip, 38);
}
}