Skip to content

Commit 20f1c85

Browse files
committed
fix: 开发者工具字符串拼接问题
1 parent 8294de2 commit 20f1c85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MYDev_Snaplines/src/MYDev_Snaplines.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ local function InsertElementDetailTip(hElem, tTip)
184184
table.insert(tTip, _L('IsRichText: %s', tostring(hElem:IsRichText())))
185185
table.insert(tTip, _L('FontScale: %s', hElem:GetFontScale()))
186186
table.insert(tTip, _L('FontID: %s', hElem:GetFontID()))
187-
table.insert(tTip, _L('FontColor: %s', hElem:GetFontColor()))
187+
table.insert(tTip, _L('FontColor: %s', table.concat({ hElem:GetFontColor() }, ', ')))
188188
table.insert(tTip, _L('FontBoder: %s', hElem:GetFontBoder()))
189189
table.insert(tTip, _L('FontProjection: %s', hElem:GetFontProjection()))
190190
table.insert(tTip, _L('TextExtent: %s', hElem:GetTextExtent()))
@@ -200,8 +200,8 @@ local function InsertElementDetailTip(hElem, tTip)
200200
table.insert(tTip, _L('ImageID: %s', hElem:GetImageID()))
201201
table.insert(tTip, _L('Index: %s', hElem:GetIndex()))
202202
elseif szType == 'Shadow' then
203-
table.insert(tTip, _L('ShadowColor: %s', hElem:GetShadowColor()))
204-
table.insert(tTip, _L('ColorRGB: %s, %s, %s', hElem:GetColorRGB()))
203+
table.insert(tTip, _L('ShadowColor: %s', table.concat({ hElem:GetShadowColor() }, ', ')))
204+
table.insert(tTip, _L('ColorRGB: %s, %s, %s', table.concat({ hElem:GetColorRGB() }, ', ')))
205205
table.insert(tTip, _L('IsTriangleFan: %s', tostring(hElem:IsTriangleFan())))
206206
table.insert(tTip, _L('Index: %s', hElem:GetIndex()))
207207
elseif szType == 'Animate' then

0 commit comments

Comments
 (0)