32 lines
882 B
C#
32 lines
882 B
C#
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
|
|
|
|
using System;
|
|
using FlaxEditor.Windows;
|
|
using FlaxEditor.Windows.Assets;
|
|
using FlaxEngine;
|
|
|
|
namespace FlaxEditor.Content
|
|
{
|
|
/// <summary>
|
|
/// A <see cref="PreviewsCache"/> asset proxy object.
|
|
/// </summary>
|
|
/// <seealso cref="FlaxEditor.Content.BinaryAssetProxy" />
|
|
public class PreviewsCacheProxy : BinaryAssetProxy
|
|
{
|
|
/// <inheritdoc />
|
|
public override string Name => "Previews Cache";
|
|
|
|
/// <inheritdoc />
|
|
public override EditorWindow Open(Editor editor, ContentItem item)
|
|
{
|
|
return new PreviewsCacheWindow(editor, (AssetItem)item);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override Color AccentColor => Color.FromRGB(0x80FFAE);
|
|
|
|
/// <inheritdoc />
|
|
public override Type AssetType => typeof(PreviewsCache);
|
|
}
|
|
}
|