Esempio n. 1
0
        public static SelectionListEntry BuildNameKeyTraitsItem(string name, string key, List <string> traits)
        {
            SelectionListEntry entry = BuildNameKeyItem(name, key);

            entry.filter = traits;
            return(entry);
        }
Esempio n. 2
0
        public static SelectionListEntry BuildNewComponent(string type)
        {
            SelectionListEntry entry = BuildNameKeyItem(new StringKey("val", "NEW_X", type.ToUpper()).Translate(), "{NEW:" + type + "}");

            entry.filter.Add(type);
            entry.filter.Add(new StringKey(VAL, "NEW").Translate());
            return(entry);
        }
Esempio n. 3
0
        public static SelectionListEntry BuildNameKeyTraitsColorItem(string name, string key, List <string> traits, Color newColor)
        {
            SelectionListEntry entry = BuildNameKeyItem(name, key);

            entry.filter = traits;
            entry.color  = newColor;
            return(entry);
        }
Esempio n. 4
0
        public static SelectionListEntry BuildNameKeyTraitItem(string name, string key, string trait)
        {
            SelectionListEntry entry = BuildNameKeyItem(name, key);

            entry.filter = new List <string>();
            entry.filter.Add(trait);
            return(entry);
        }
Esempio n. 5
0
        public static SelectionListEntry BuildNameKeyItem(string name, string key)
        {
            SelectionListEntry entry = new SelectionListEntry();

            entry.name = name;
            entry.key  = key;
            return(entry);
        }
Esempio n. 6
0
        public static SelectionListEntry BuildNameKeyItem(string namekey)
        {
            SelectionListEntry entry = new SelectionListEntry();

            entry.name = new StringKey(VAL, namekey).Translate();
            entry.key  = namekey;
            return(entry);
        }