示例#1
0
        public static string FetchMotiveLocalization(CASAgeGenderFlags flag, CommodityKind motive)
        {
            string str = "";

            switch (motive)
            {
            case CommodityKind.Hygiene:
                if (flag == CASAgeGenderFlags.Cat)
                {
                    str = "Scratch";
                }
                if (flag == CASAgeGenderFlags.Dog)
                {
                    str = "Destruction";
                }
                if (flag == CASAgeGenderFlags.Horse)
                {
                    str = "Exercise";
                }
                break;

            case CommodityKind.Fun:
                if (flag == CASAgeGenderFlags.Horse)
                {
                    str = "Thirst";
                }
                break;

            default:
                break;
            }

            return(Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:Motive" + str + (flag == CASAgeGenderFlags.Human || str == "B" ? motive.ToString() : flag.ToString())));
        }
示例#2
0
        public static string FetchMotiveLocalization(CASAgeGenderFlags flag, CommodityKind motive)
        {
            string str = "";
            switch (motive)
            {
                case CommodityKind.Hygiene:
                    if (flag == CASAgeGenderFlags.Cat) str = "Scratch";
                    if (flag == CASAgeGenderFlags.Dog) str = "Destruction";
                    if (flag == CASAgeGenderFlags.Horse) str = "Exercise";
                break;
                case CommodityKind.Fun:
                    if (flag == CASAgeGenderFlags.Horse) str = "Thirst";
                break;
                case CommodityKind.Temperature:
                    return Common.Localize("TagData:Temperature");                
                default:
                break;
            }

            return Common.LocalizeEAString("Ui/Caption/HUD/MotivesPanel:Motive" + str + (flag == CASAgeGenderFlags.Human ? motive.ToString() : flag.ToString()));
        }
示例#3
0
 public AgeTagListingOption(CASAgeGenderFlags data)
     : base(Common.LocalizeEAString("UI/Feedback/CAS:" + data.ToString()))
 {
     mData = data;
 }
示例#4
0
 protected override string GetLocalizedValue(CASAgeGenderFlags value, ref ThumbnailKey icon)
 {
     return LocalizeValue(value.ToString());
 }
示例#5
0
 public override string ConvertToString(CASAgeGenderFlags value)
 {
     return(value.ToString());
 }
示例#6
0
 protected override string GetLocalizedValue(CASAgeGenderFlags value, ref ThumbnailKey icon)
 {
     return(LocalizeValue(value.ToString()));
 }
示例#7
0
 public override string GetTitlePrefix()
 {
     return(mSpecies.ToString());
 }