Unreal/CarlaUE4/Plugins/RoadRunnerImporter/Source/RoadRunnerImporter/Private/RoadRunnerStyle.cpp
////////////////////////////////////////////////////////////////////////////////
// Create the slate style set. Contains an image brush for the RoadRunner logo
Create the slate style set. Contains an image brush for the RoadRunner logo
Create the slate style set . Contains an image brush for the RoadRunner logo
TSharedRef< FSlateStyleSet > FRoadRunnerStyle::Create()
{
	TSharedRef< FSlateStyleSet > Style = MakeShareable(new FSlateStyleSet("RoadRunnerStyle"));
	Style->SetContentRoot(IPluginManager::Get().FindPlugin("RoadRunnerImporter")->GetBaseDir() / TEXT("Resources"));
	Style->Set("RoadRunner.Logo", new FSlateImageBrush(Style->RootToContentDir(TEXT("logo-mini"), TEXT(".png")), FVector2D(128.f, 128.f)));
	return Style;
}
TSharedRef < FSlateStyleSet > FRoadRunnerStyle :: Create ( ) { TSharedRef < FSlateStyleSet > Style = MakeShareable ( new FSlateStyleSet ( " " ) ) ; Style -> SetContentRoot ( IPluginManager :: Get ( ) . FindPlugin ( " " ) -> GetBaseDir ( ) / TEXT ( " " ) ) ; Style -> Set ( " " , new FSlateImageBrush ( Style -> RootToContentDir ( TEXT ( " " ) , TEXT ( " " ) ) , FVector2D ( 128.f , 128.f ) ) ) ; return Style ; }
Create the slate style set.
Create the slate style set .