public MenuFolderOption(string path, FuzzyOptionMode mode = FuzzyOptionMode.Branch) : base(mode) { this.path = path; value = path; label = path.PartAfterLast('/'); getIcon = () => LudiqCore.Icons.folder; }
public TypeOption(Type type, FuzzyOptionMode mode) : base(mode) { value = type; label = type.DisplayName(); getIcon = type.Icon; documentation = new XmlFuzzyOptionDocumentation(type.Documentation()); zoom = true; }
public AssetFolderOption(string pathFromProject, FuzzyOptionMode mode = FuzzyOptionMode.Branch) : base(mode) { this.path = pathFromProject; this.name = Path.GetFileNameWithoutExtension(path); this.folder = Path.GetDirectoryName(path); this.value = pathFromProject; this.label = Path.GetFileName(pathFromProject); getIcon = () => LudiqCore.Icons.folder; }
protected DocumentedFuzzyOption(FuzzyOptionMode mode) : base(mode) { }
public UnityObjectOption(string label, string typeLabel, EditorTexture typeIcon, UnityObject uo, bool?isSceneBound, FuzzyOptionMode mode) : base(mode) { this.label = label; this.typeLabel = typeLabel; this.typeIcon = typeIcon; this.isSceneBound = isSceneBound; value = uo; if (!ReferenceEquals(uo, null)) { getIcon = uo.Icon; } else { icon = typeIcon; } }
protected FuzzyOption(FuzzyOptionMode mode) { this.mode = mode; }
public NamespaceOption(Namespace @namespace, FuzzyOptionMode mode) : base(mode) { value = @namespace; label = @namespace.DisplayName(false); getIcon = @namespace.Icon; }