From f430d6af419bbcddca351ddb2de6aefa851fe652 Mon Sep 17 00:00:00 2001 From: Lenheart <947330670@qq.com> Date: Sat, 14 Dec 2024 21:31:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0GenerateNormal=20=E6=96=87?= =?UTF-8?q?=E5=AD=97=E7=9A=84=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sqr/User/Asset/FontAsset.nut | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sqr/User/Asset/FontAsset.nut b/sqr/User/Asset/FontAsset.nut index e91929b..bee34c6 100644 --- a/sqr/User/Asset/FontAsset.nut +++ b/sqr/User/Asset/FontAsset.nut @@ -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);