Allow config GUI cycling button elements generated from enums to display toString return values, rather than actual values. (#5125)

This commit is contained in:
Phylogeny authored and tterrag committed 2019-01-03 21:08:05 -05:00
1 parent 3dd8c8ae6f
commit d3f27cf6fb
8 files changed
+222 -24

No files matched your search

@@ -132,7 +132,25 @@ public class ConfigAnnotationTest
public static TEST enu = TEST.BIG;
public static NestedType Inner = new NestedType();
public enum TEST { BIG, BAD, WOLF; }
public enum TEST
{
BIG("Big"),
BAD("Bad"),
WOLF("Wolf");
private String name;
private TEST(String name)
{
this.name = name;
}
@Override
public String toString()
{
return name;
}
}
public static class NestedType
{
public String HeyLook = "I'm Inside!";