4 #include "Framework/Application/SlateApplication.h" 5 #include "Styling/SlateStyleRegistry.h" 6 #include "SlateGameResources.h" 7 #include "IPluginManager.h" 29 static FName StyleSetName(TEXT(
"RuntimeMeshComponentEditorStyle"));
33 #define IMAGE_BRUSH( RelativePath, ... ) FSlateImageBrush( Style->RootToContentDir( RelativePath, TEXT(".png") ), __VA_ARGS__ ) 34 #define BOX_BRUSH( RelativePath, ... ) FSlateBoxBrush( Style->RootToContentDir( RelativePath, TEXT(".png") ), __VA_ARGS__ ) 35 #define BORDER_BRUSH( RelativePath, ... ) FSlateBorderBrush( Style->RootToContentDir( RelativePath, TEXT(".png") ), __VA_ARGS__ ) 36 #define TTF_FONT( RelativePath, ... ) FSlateFontInfo( Style->RootToContentDir( RelativePath, TEXT(".ttf") ), __VA_ARGS__ ) 37 #define OTF_FONT( RelativePath, ... ) FSlateFontInfo( Style->RootToContentDir( RelativePath, TEXT(".otf") ), __VA_ARGS__ ) 43 TSharedRef< FSlateStyleSet > Style = MakeShareable(
new FSlateStyleSet(
"RuntimeMeshComponentEditorStyle"));
44 Style->SetContentRoot(
IPluginManager::Get().FindPlugin(
"RuntimeMeshComponent")->GetBaseDir() / TEXT(
"Resources"));
59 if (FSlateApplication::IsInitialized())
#define IMAGE_BRUSH(RelativePath,...)
const FVector2D Icon128x128(128.0f, 128.0f)
static TSharedPtr< class FSlateStyleSet > StyleInstance
UTexture2D * Get(TUniquePtr< T > &Dtex)
static TSharedRef< class FSlateStyleSet > Create()
static void ReloadTextures()
static const ISlateStyle & Get()
static FName GetStyleSetName()