44 lines
1.6 KiB
C#
44 lines
1.6 KiB
C#
using System.Windows.Input;
|
|
using JD.AssetBrowser.Actions;
|
|
using JD.AssetBrowser.Actions.Asset;
|
|
using JD.AssetBrowser.View;
|
|
using Plume.Icons;
|
|
using Plume.Interfaces.Modules;
|
|
using Plume.Interfaces.WPF.Actions;
|
|
using Plume.Interfaces.WPF.Modules;
|
|
using Plume.Interfaces.WPF.Window;
|
|
using Plume.WPF.Commands;
|
|
|
|
namespace JD.AssetBrowser
|
|
{
|
|
public class AssetBrowserModule : IWpfModule
|
|
{
|
|
/// <inheritdoc />
|
|
public void Initialize(IWpfModuleContext context)
|
|
{
|
|
IActionManager actionService = context.ActionManager;
|
|
actionService.Register<UpdateDependenciesAction>();
|
|
actionService.Register<DeleteAssetAction>();
|
|
actionService.Register<ShowDependenciesAction>();
|
|
actionService.Register<RenameOrMoveAssetAction>();
|
|
actionService.Register<ShowInExplorerAction>();
|
|
actionService.Register<ShowInP4vAction>();
|
|
actionService.Register<CopyFullPathAction>();
|
|
actionService.Register<CopyLocalPathAction>();
|
|
context.ToolBarManager.AddButton("AssetBrowser", actionService.Get<UpdateDependenciesAction>());
|
|
context.MenuManager.AddMenuItem("Assets", actionService.Get<UpdateDependenciesAction>());
|
|
|
|
context.WindowManager.AddToolWindow("AssetBrowserWindow", "Asset Browser", StandardIcon.FilterFolder, new AssetBrowserControl(), DockingSide.Left, new DoubleKeyGesture(ModifierKeys.Control, Key.V, Key.B));
|
|
}
|
|
|
|
|
|
public void Setup(IModuleSetup setup)
|
|
{
|
|
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
}
|
|
}
|