更新GenerateNormal 文字的 参数
This commit is contained in:
parent
fc18097b7a
commit
f430d6af41
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue