public static SelectionListEntry BuildNameKeyTraitsItem(string name, string key, List <string> traits) { SelectionListEntry entry = BuildNameKeyItem(name, key); entry.filter = traits; return(entry); }
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); }
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); }
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); }
public static SelectionListEntry BuildNameKeyItem(string name, string key) { SelectionListEntry entry = new SelectionListEntry(); entry.name = name; entry.key = key; return(entry); }
public static SelectionListEntry BuildNameKeyItem(string namekey) { SelectionListEntry entry = new SelectionListEntry(); entry.name = new StringKey(VAL, namekey).Translate(); entry.key = namekey; return(entry); }