示例#1
0
    public static string GetColorCode(SpaceColor style)
    {
        string result;

        if (!RichTextUtils.ColorStyleDict.TryGetValue(style, out result))
        {
            return(string.Empty);
        }
        return(result);
    }
示例#2
0
 public static string ToColor(this int text, SpaceColor style)
 {
     return(text.ToString().ToColor(style));
 }
示例#3
0
 public void SetInital(SpaceColor color, Vector2 loc)
 {
     _spaceColor = color;
     location    = loc;
 }
示例#4
0
    public static string ToColor(this string text, SpaceColor style)
    {
        string colorCode = RichTextUtils.GetColorCode(style);

        return(text.ToColor(colorCode));
    }
示例#5
0
 public ChessSpace(SpaceColor color)
 {
     Color = color;
 }