Asset icons are now displayed correctly.
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
@ -26,7 +26,8 @@ public class ComboInputEditor : ModuleRules
|
|||||||
"Core",
|
"Core",
|
||||||
"CoreUObject",
|
"CoreUObject",
|
||||||
"AssetTools",
|
"AssetTools",
|
||||||
"SlateCore"
|
"SlateCore",
|
||||||
|
"Projects"
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -122,27 +122,28 @@ class FComboInputSlateStyle final : public FSlateStyleSet
|
|||||||
public:
|
public:
|
||||||
FComboInputSlateStyle() : FSlateStyleSet("ComboInputEditor")
|
FComboInputSlateStyle() : FSlateStyleSet("ComboInputEditor")
|
||||||
{
|
{
|
||||||
SetParentStyleName(FAppStyle::GetAppStyleSetName());
|
this->SetParentStyleName(FAppStyle::GetAppStyleSetName());
|
||||||
|
|
||||||
// The icons are located in /Engine/Plugins/ComboInput/Content/Editor/Slate/Icons
|
const FString &PluginSlateDir = IPluginManager::Get().FindPlugin("ComboInput")->GetBaseDir();
|
||||||
SetContentRoot(FPaths::EnginePluginsDir() / TEXT("ComboInput/Content/Editor/Slate"));
|
|
||||||
SetCoreContentRoot(FPaths::EngineContentDir() / TEXT("Slate"));
|
this->SetContentRoot(PluginSlateDir / TEXT("Resources/Slate"));
|
||||||
|
this->SetCoreContentRoot(FPaths::EngineContentDir() / TEXT("Slate"));
|
||||||
|
|
||||||
// Combo Input Editor icons
|
// Combo Input Editor icons
|
||||||
static const FVector2D Icon16 = FVector2D(16.0f, 16.0f);
|
static const FVector2D Icon16 = FVector2D(16.0f, 16.0f);
|
||||||
static const FVector2D Icon64 = FVector2D(64.0f, 64.0f);
|
static const FVector2D Icon64 = FVector2D(64.0f, 64.0f);
|
||||||
|
|
||||||
Set("ComboInputIcon_Small", new IMAGE_BRUSH_SVG("Icons/ComboInput_16", Icon16));
|
this->Set("ComboInputIcon_Small", new IMAGE_BRUSH_SVG("Icons/ComboInput_16", Icon16));
|
||||||
Set("ComboInputIcon_Large", new IMAGE_BRUSH_SVG("Icons/ComboInput_64", Icon64));
|
this->Set("ComboInputIcon_Large", new IMAGE_BRUSH_SVG("Icons/ComboInput_64", Icon64));
|
||||||
|
|
||||||
Set("ClassIcon.ComboAction", new IMAGE_BRUSH_SVG("Icons/ComboAction_16", Icon16));
|
this->Set("ClassIcon.ComboAction", new IMAGE_BRUSH_SVG("Icons/ComboAction_16", Icon16));
|
||||||
Set("ClassThumbnail.ComboAction", new IMAGE_BRUSH_SVG("Icons/ComboAction_64", Icon64));
|
this->Set("ClassThumbnail.ComboAction", new IMAGE_BRUSH_SVG("Icons/ComboAction_64", Icon64));
|
||||||
|
|
||||||
Set("ClassIcon.ComboSequenceNode", new IMAGE_BRUSH_SVG("Icons/ComboSequenceNode_16", Icon16));
|
this->Set("ClassIcon.ComboSequenceNode", new IMAGE_BRUSH_SVG("Icons/ComboSequenceNode_16", Icon16));
|
||||||
Set("ClassThumbnail.ComboSequenceNode", new IMAGE_BRUSH_SVG("Icons/ComboSequenceNode_64", Icon64));
|
this->Set("ClassThumbnail.ComboSequenceNode", new IMAGE_BRUSH_SVG("Icons/ComboSequenceNode_64", Icon64));
|
||||||
|
|
||||||
Set("ClassIcon.ComboInputAsset", new IMAGE_BRUSH_SVG("Icons/ComboInputAsset_16", Icon16));
|
this->Set("ClassIcon.ComboInputAsset", new IMAGE_BRUSH_SVG("Icons/ComboInputAsset_16", Icon16));
|
||||||
Set("ClassThumbnail.ComboInputAsset", new IMAGE_BRUSH_SVG("Icons/ComboInputAsset_64", Icon64));
|
this->Set("ClassThumbnail.ComboInputAsset", new IMAGE_BRUSH_SVG("Icons/ComboInputAsset_64", Icon64));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||