更新GenerateNormal 文字的 参数

This commit is contained in:
Lenheart 2024-12-14 21:31:44 +08:00
parent fc18097b7a
commit f430d6af41
1 changed files with 2 additions and 4 deletions

View File

@ -23,11 +23,9 @@ class _FontAssetManager_ {
} }
//生成普通宋体小字 //生成普通宋体小字
function GenerateNormal(text, rgba, stroke) { function GenerateNormal(text, stroke, style = {}) {
//登录按钮文本 //登录按钮文本
local TextActor = TextActor(0, { local TextActor = TextActor(0, style);
color = rgba
});
TextActor.SetText(text); TextActor.SetText(text);
if (stroke) if (stroke)
TextActor.SetOutline(3.0); TextActor.SetOutline(3.0);