Beispiel #1
0
        public static string AttributeLabel(CharacterConstants.eRaceAttribute attr)
        {
            string attrText = string.Empty;

            switch (attr)
            {
            case CharacterConstants.eRaceAttribute.Jin:
                attrText = EB.Localizer.GetString("ID_ATTRIBUTE_GOLD");
                break;

            case CharacterConstants.eRaceAttribute.Mu:
                attrText = EB.Localizer.GetString("ID_ATTRIBUTE_WOOD");
                break;

            case CharacterConstants.eRaceAttribute.Shui:
                attrText = EB.Localizer.GetString("ID_ATTRIBUTE_WATER");
                break;

            case CharacterConstants.eRaceAttribute.Huo:
                attrText = EB.Localizer.GetString("ID_ATTRIBUTE_FIRE");
                break;

            case CharacterConstants.eRaceAttribute.Tu:
                attrText = EB.Localizer.GetString("ID_ATTRIBUTE_EARTH");
                break;
            }
            return(attrText);
        }
Beispiel #2
0
        public static Color32 AttributeColor(CharacterConstants.eRaceAttribute attribute)
        {
            switch (attribute)
            {
            case CharacterConstants.eRaceAttribute.Jin:
                return(new Color32(44, 142, 255, 255));

            case CharacterConstants.eRaceAttribute.Mu:
                return(new Color32(34, 255, 53, 255));

            case CharacterConstants.eRaceAttribute.Shui:
                return(new Color32(241, 77, 243, 255));

            case CharacterConstants.eRaceAttribute.Huo:
                return(new Color32(249, 33, 33, 255));

            case CharacterConstants.eRaceAttribute.Tu:
                return(new Color32(255, 188, 44, 255));

            default:
                return(new Color32(165, 92, 45, 255));
            }
        }
Beispiel #3
0
        public static string AttributeLogo(CharacterConstants.eRaceAttribute attribute)
        {
            switch (attribute)
            {
            case CharacterConstants.eRaceAttribute.Jin:
                return(CharacterConstants.Atribute.JIN);

            case CharacterConstants.eRaceAttribute.Mu:
                return(CharacterConstants.Atribute.MU);

            case CharacterConstants.eRaceAttribute.Shui:
                return(CharacterConstants.Atribute.SHUI);

            case CharacterConstants.eRaceAttribute.Huo:
                return(CharacterConstants.Atribute.HUO);

            case CharacterConstants.eRaceAttribute.Tu:
                return(CharacterConstants.Atribute.TU);

            default:
                return("");
            }
        }