2013-03-11 18:49:01 +01:00
|
|
|
package mekanism.api;
|
2012-10-03 21:12:17 +02:00
|
|
|
|
|
|
|
/**
|
2012-12-14 17:58:06 +01:00
|
|
|
* Simple color enum for adding colors to in-game GUI strings of text.
|
2012-10-03 21:12:17 +02:00
|
|
|
* @author AidanBrady
|
|
|
|
*
|
|
|
|
*/
|
2012-10-22 03:29:26 +02:00
|
|
|
public enum EnumColor
|
2012-10-03 21:12:17 +02:00
|
|
|
{
|
2013-01-25 00:01:59 +01:00
|
|
|
BLACK("\u00a70", "Black"),
|
|
|
|
DARK_BLUE("\u00a71", "Dark Blue"),
|
|
|
|
DARK_GREEN("\u00a72", "Dark Green"),
|
|
|
|
DARK_AQUA("\u00a73", "Dark Aqua"),
|
|
|
|
DARK_RED("\u00a74", "Dark Red"),
|
|
|
|
PURPLE("\u00a75", "Purple"),
|
|
|
|
ORANGE("\u00a76", "Orange"),
|
|
|
|
GREY("\u00a77", "Grey"),
|
|
|
|
DARK_GREY("\u00a78", "Dark Grey"),
|
|
|
|
INDIGO("\u00a79", "Indigo"),
|
|
|
|
BRIGHT_GREEN("\u00a7a", "Bright Green"),
|
|
|
|
AQUA("\u00a7b", "Aqua"),
|
|
|
|
RED("\u00a7c", "Red"),
|
|
|
|
PINK("\u00a7d", "Pink"),
|
|
|
|
YELLOW("\u00a7e", "Yellow"),
|
|
|
|
WHITE("\u00a7f", "White");
|
2012-10-03 21:12:17 +02:00
|
|
|
|
|
|
|
/** The color code that will be displayed */
|
|
|
|
public final String code;
|
|
|
|
|
2013-02-22 04:03:54 +01:00
|
|
|
/** A friendly name of the color. */
|
2013-01-25 00:01:59 +01:00
|
|
|
public String friendlyName;
|
|
|
|
|
|
|
|
private EnumColor(String s, String n)
|
2012-10-03 21:12:17 +02:00
|
|
|
{
|
|
|
|
code = s;
|
2013-01-25 00:01:59 +01:00
|
|
|
friendlyName = n;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName()
|
|
|
|
{
|
|
|
|
return code + friendlyName;
|
2012-10-03 21:12:17 +02:00
|
|
|
}
|
2012-10-22 03:29:26 +02:00
|
|
|
|
2012-11-06 16:44:14 +01:00
|
|
|
@Override
|
2012-10-22 03:29:26 +02:00
|
|
|
public String toString()
|
|
|
|
{
|
|
|
|
return code;
|
|
|
|
}
|
2012-10-03 21:12:17 +02:00
|
|
|
}
|