ColorScheme

Use these methods to get the game’s color scheme.

Static methods

Method

Description

FormatTeamColor(innerString, team, variant)

Returns a formatted string such as``<color=blue>innerString</color>`` for a specified team.

GetInterfaceColor(team, variant)

Returns a UI-ready color of a specific team.

GetTeamColor(team)

Returns the main color of a specific team.

RichTextColorTag(color)

Returns a rich text color tag such as <color=blue> for a specified color.

RichTextColorTag(team, variant)

Returns a rich text color tag such as <color=blue> for a specified team.

SetTeamBloodColor(team, color)

Sets the team blood particle color

SetTeamColor(team, color)

Sets the team color, also sets the team blood particle color

Details

class ColorScheme
static string FormatTeamColor(string innerString, Team team, ColorVariant variant)

Returns a formatted string such as``<color=blue>innerString</color>`` for a specified team.

static Color GetInterfaceColor(Team team, ColorVariant variant)

Returns a UI-ready color of a specific team.

static Color GetTeamColor(Team team)

Returns the main color of a specific team.

static string RichTextColorTag(Color color)

Returns a rich text color tag such as <color=blue> for a specified color.

static string RichTextColorTag(Team team, ColorVariant variant)

Returns a rich text color tag such as <color=blue> for a specified team.

static void SetTeamBloodColor(Team team, Color color)

Sets the team blood particle color

static void SetTeamColor(Team team, Color color)

Sets the team color, also sets the team blood particle color