Class UI.UnitStatusBackground

Namespace
SIMDispatcher.Core.Defaults
Assembly
SIMDispatcher.Core.dll

Contains constants that define the background color codes for different unit statuses. Each color represents a state in the operational flow.

public static class UI.UnitStatusBackground
Inheritance
UI.UnitStatusBackground
Inherited Members

Fields

ArrivedAtDestination

public const string ArrivedAtDestination = "#d2527f"

Field Value

string

DriveToDestination

public const string DriveToDestination = "#663399"

Field Value

string

Individual

public const string Individual = "#6c7a89"

Field Value

string

NotOnDuty

public const string NotOnDuty = "#bdc3c7"

Field Value

string

OnDuty

public const string OnDuty = "#019875"

Field Value

string

OnDutyAlongWay

public const string OnDutyAlongWay = "#87d37c"

Field Value

string

OnScene

public const string OnScene = "#d64541"

Field Value

string

OnTheWay

public const string OnTheWay = "#fef160"

Field Value

string

SpeakRequest

public const string SpeakRequest = "#4b77be"

Field Value

string

UrgentSpeakRequest

public const string UrgentSpeakRequest = "#f89406"

Field Value

string

Methods

Get()

Provides a dictionary mapping from UnitStatus codes to their respective color codes.

public static Dictionary<int, string> Get()

Returns

Dictionary<int, string>

A dictionary with status codes as keys and color codes as values.

Get(UnitStatus)

Retrieves the background color associated with a specific UnitStatus.

public static string Get(UnitStatus status)

Parameters

status UnitStatus

The UnitStatus enum representing the unit's status.

Returns

string

The hex color code as a string.

Exceptions

ArgumentOutOfRangeException

Thrown when the status is not recognized.

Get(int)

Retrieves the color associated with a given UnitStatus integer code.

public static string Get(int status)

Parameters

status int

The status code of the unit.

Returns

string

A string representing the hex color code.