// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. using System.Text; using FlaxEngine; namespace FlaxEditor.Content { /// /// Helper content item used to mock UI during creating new assets by . /// /// public sealed class NewItem : ContentItem { /// /// Gets the proxy object related to the created asset. /// public ContentProxy Proxy { get; } /// /// Gets the argument passed to the proxy for the item creation. In most cases it is null. /// public object Argument { get; } /// /// Initializes a new instance of the class. /// /// The path for the new item. /// The content proxy object. /// The argument passed to the proxy for the item creation. In most cases it is null. public NewItem(string path, ContentProxy proxy, object arg) : base(path) { Proxy = proxy; Argument = arg; } /// public override ContentItemType ItemType => ContentItemType.Other; /// public override ContentItemSearchFilter SearchFilter => ContentItemSearchFilter.Other; /// public override string TypeDescription => "New"; /// public override SpriteHandle DefaultThumbnail => Editor.Instance.Icons.Document128; /// protected override bool DrawShadow => true; /// public override void UpdateTooltipText() { TooltipText = null; } } }