// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Commandlets/Commandlet.h" #include "SetupDemoAssetsCommandlet.generated.h" class UFont; class UFontFace; /** * Programmatically generates Chinese font assets, Demo textures, /Game/Maps/L_DemoUI, * and all UMG Widget Blueprints for the Bootstrap Demo Hub and UI Demo scene. * * Run via: * UnrealEditor-Cmd UnrealLuaDemo.uproject -run=SetupDemoAssets -unattended -nop4 -nosplash -NullRHI */ UCLASS() class UNREALLUADEMOEDITOR_API USetupDemoAssetsCommandlet : public UCommandlet { GENERATED_BODY() public: USetupDemoAssetsCommandlet(); virtual int32 Main(const FString& Params) override; private: UFontFace* CreateChineseFontFace() const; UFont* CreateDemoUIFont(UFontFace* CJKFontFace) const; bool CreateDemoMap(const FString& PackageName, const FString& MapName) const; bool CreateProceduralTexture(const FString& PackageName, const FString& AssetName, int32 StyleIndex) const; bool CreateDemoHubBlueprint(UFont* DemoFont) const; bool CreateDemoHubItemBlueprint(UFont* DemoFont) const; bool CreateUIDemoMainBlueprint(UFont* DemoFont) const; bool CreateUIDemoListItemBlueprint(UFont* DemoFont) const; bool CreateUIDemoNormalBlueprint(UFont* DemoFont) const; bool CreateUIDemoFullscreenBlueprint(UFont* DemoFont) const; bool CreateUIDemoModalBlueprint(UFont* DemoFont) const; bool CreateUIDemoCachedBlueprint(UFont* DemoFont) const; bool CreateUIDemoMultiBlueprint(UFont* DemoFont) const; bool CreateUIDemoToastBlueprint(UFont* DemoFont) const; bool CreateUIDemoSystemBlueprint(UFont* DemoFont) const; };