更新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, {
color = rgba
});
local TextActor = TextActor(0, style);
TextActor.SetText(text);
if (stroke)
TextActor.SetOutline(3.0);