// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved. using FlaxEditor.Windows; using FlaxEngine; namespace FlaxEditor.Content { /// /// File proxy object. /// /// public class FileProxy : ContentProxy { /// public override string Name => "File"; /// public override bool IsProxyFor(ContentItem item) { return item is FileItem; } /// public override ContentItem ConstructItem(string path) { return new FileItem(path); } /// public override string FileExtension => string.Empty; /// public override EditorWindow Open(Editor editor, ContentItem item) { #if PLATFORM_WINDOWS CreateProcessSettings settings = new CreateProcessSettings { ShellExecute = true, FileName = item.Path }; Platform.CreateProcess(ref settings); #endif return null; } /// public override Color AccentColor => Color.FromRGB(0x441c9c); } }