Class UI.UnitStatusForeground
- Namespace
- SIMDispatcher.Core.Defaults
- Assembly
- SIMDispatcher.Core.dll
Contains constants that define the foreground (text) color codes for different unit statuses. Each color enhances readability depending on the background color.
public static class UI.UnitStatusForeground
- Inheritance
-
UI.UnitStatusForeground
- Inherited Members
Fields
ArrivedAtDestination
public const string ArrivedAtDestination = "#ffffff"
Field Value
DriveToDestination
public const string DriveToDestination = "#ffffff"
Field Value
Individual
public const string Individual = "#ffffff"
Field Value
NotOnDuty
public const string NotOnDuty = "#ffffff"
Field Value
OnDuty
public const string OnDuty = "#ffffff"
Field Value
OnDutyAlongWay
public const string OnDutyAlongWay = "#ffffff"
Field Value
OnScene
public const string OnScene = "#ffffff"
Field Value
OnTheWay
public const string OnTheWay = "#000000"
Field Value
SpeakRequest
public const string SpeakRequest = "#ffffff"
Field Value
UrgentSpeakRequest
public const string UrgentSpeakRequest = "#ffffff"
Field Value
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 forground color associated with a specific UnitStatus.
public static string Get(UnitStatus status)
Parameters
status
UnitStatusThe 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
intThe status code of the unit.
Returns
- string
A string representing the hex color code.