Exemple #1
0
        public static Color Color(this FilterBoolean filterBoolean)
        {
            switch (filterBoolean)
            {
            case FilterBoolean.AndFiltering:
                return(Verse.ColorLibrary.BurntOrange);

            case FilterBoolean.OrFiltering:
                return(Verse.ColorLibrary.BrightBlue);

            default:
                return(UnityEngine.Color.black);
            }
        }
Exemple #2
0
        public static string ToStringHuman(this FilterBoolean filterBool)
        {
            switch (filterBool)
            {
            case FilterBoolean.AndFiltering:
                return("PLMWTT_FilterBooleanOr".Translate());

            case FilterBoolean.OrFiltering:
                return("PLMWTT_FilterBooleanAnd".Translate());

            default:
                return("UNK");
            }
        }
Exemple #3
0
 public static FilterBoolean Next(this FilterBoolean filterBoolean)
 {
     return((FilterBoolean)(((int)filterBoolean + 1) % (int)FilterBoolean.Undefined));
 }