feat(demo): add Bootstrap Demo Hub, Chinese UI font, and UI Demo showcase scene

This commit is contained in:
szy73711 committed 2026-12-01 03:13:35 +08:00
1 parent 3572f2da43
commit 4c83c086f4
49 files changed
+7864 -131

No files matched your search

+5 -5
View File
@@ -1,9 +1,9 @@
local ____exports = __module.env
local M__framework_context_game_context = __MODULE__.Import("framework.context.game_context", __module)
local GetGameInstanceContext = M__framework_context_game_context.GetGameInstanceContext
local M__game_startup = __MODULE__.Import("game.startup", __module)
local OpenMiniSettings = M__game_startup.OpenMiniSettings
--- PIE / 启动地图玩家入口:绑定 LocalPlayer(0) 的 PlayerController 并打开首期最小设置窗口。
local M__game_demo_demo_router = __MODULE__.Import("game.demo.demo_router", __module)
local RouteCurrentLevel = M__game_demo_demo_router.RouteCurrentLevel
--- PIE / 启动地图玩家入口:绑定 LocalPlayer(0) 的 PlayerController 并按当前关卡路由对应 Demo 场景。
function ____exports.OnBeginPlay(pc)
local world = pc:GetWorld()
local gi = UE.UGameplayStatics.GetGameInstance(pc)
@@ -18,7 +18,7 @@ function ____exports.OnBeginPlay(pc)
ctx:OnWorldCleanup(world)
end
ctx:GetOrCreateLocalPlayer(0, pc)
OpenMiniSettings(ctx)
RouteCurrentLevel(ctx, pc)
end
function ____exports.OnEndPlay(pc, _endPlayReason)
local gi = UE.UGameplayStatics.GetGameInstance(pc)
@@ -36,5 +36,5 @@ function ____exports.OnEndPlay(pc, _endPlayReason)
end
function __module.UpdateImports()
GetGameInstanceContext = M__framework_context_game_context.GetGameInstanceContext
OpenMiniSettings = M__game_startup.OpenMiniSettings
RouteCurrentLevel = M__game_demo_demo_router.RouteCurrentLevel
end