feat(demo): add Bootstrap Demo Hub, Chinese UI font, and UI Demo showcase scene
This commit is contained in:
1 parent
3572f2da43
commit
4c83c086f4
49 files changed
+7864
-131
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,46 @@
|
||||
// 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;
|
||||
};
|
||||
Reference in new issue
Block a user