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

            entry.filter = traits;
            return(entry);
        }
Exemplo 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);
        }
Exemplo 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);
        }
Exemplo 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);
        }
Exemplo n.º 5
0
        public static SelectionListEntry BuildNameKeyItem(string name, string key)
        {
            SelectionListEntry entry = new SelectionListEntry();

            entry.name = name;
            entry.key  = key;
            return(entry);
        }
Exemplo 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);
        }