41 lines
861 B
C++
41 lines
861 B
C++
// Copyright Dominik Pavlicek 2023. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Styling/SlateStyle.h"
|
|
|
|
|
|
class FComboActionGraphEditorStyle
|
|
{
|
|
public:
|
|
|
|
static void Create();
|
|
static void Initialize();
|
|
static void Shutdown();
|
|
static ISlateStyle &Get()
|
|
{
|
|
return *(StyleSet.Get());
|
|
}
|
|
|
|
static const FSlateBrush *GetBrush(FName PropertyName, const ANSICHAR *Specifier = NULL)
|
|
{
|
|
return StyleSet->GetBrush(PropertyName, Specifier);
|
|
};
|
|
|
|
static const FName &GetAppStyleSetName()
|
|
{
|
|
static FName StyleSetName(TEXT("ComboActionGraphEditorStyle"));
|
|
return StyleSetName;
|
|
};
|
|
|
|
template< class T >
|
|
static const T &GetWidgetStyle( FName PropertyName, const ANSICHAR *Specifier = NULL )
|
|
{
|
|
return StyleSet->GetWidgetStyle< T >( PropertyName, Specifier );
|
|
}
|
|
|
|
private:
|
|
static TSharedPtr<FSlateStyleSet> StyleSet;
|
|
};
|