32 lines
1.0 KiB
C++
32 lines
1.0 KiB
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
class PROJECTFISHEDITOR_API FBagConfigAssetEditor: public FAssetEditorToolkit
|
|
{
|
|
public:
|
|
void Initialize(const EToolkitMode::Type Mode, const TSharedPtr<class IToolkitHost>& InitToolkitHost, class UBagConfigAsset* InBagConfigAsset);
|
|
|
|
// IAssetEditorInstance interface
|
|
virtual FName GetToolkitFName() const override;
|
|
virtual FText GetBaseToolkitName() const override;
|
|
virtual FString GetWorldCentricTabPrefix() const override;
|
|
virtual FLinearColor GetWorldCentricTabColorScale() const override;
|
|
|
|
// FAssetEditorToolkit interface
|
|
virtual void RegisterTabSpawners(const TSharedRef<FTabManager>& tabManager) override;
|
|
virtual void UnregisterTabSpawners(const TSharedRef<FTabManager>& tabManager) override;
|
|
|
|
private:
|
|
TSharedRef<SDockTab> SpawnBagConfigEditorTab(const FSpawnTabArgs& Args);
|
|
|
|
class UBagConfigAsset* BagConfigAsset;
|
|
/** Tab IDs */
|
|
static const FName BagConfigEditorTabId;
|
|
};
|