コード例 #1
0
        public static SelectionListEntry BuildNameKeyTraitsItem(string name, string key, List <string> traits)
        {
            SelectionListEntry entry = BuildNameKeyItem(name, key);

            entry.filter = traits;
            return(entry);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #5
0
        public static SelectionListEntry BuildNameKeyItem(string name, string key)
        {
            SelectionListEntry entry = new SelectionListEntry();

            entry.name = name;
            entry.key  = key;
            return(entry);
        }
コード例 #6
0
        public static SelectionListEntry BuildNameKeyItem(string namekey)
        {
            SelectionListEntry entry = new SelectionListEntry();

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