整理代码,移除drawableTextLoad表

This commit is contained in:
MrZ626
2020-12-25 16:35:28 +08:00
parent 3bf44819e4
commit 5a355a1d11
2 changed files with 17 additions and 32 deletions

View File

@@ -57,8 +57,10 @@ function LANG.init()--Attention, calling this will destory all initializing meth
function LANG.set(l)
text=langList[l]
WIDGET.setLang(text.WidgetText)
for _,s in next,drawableTextLoad do
drawableText[s]:set(text[s])
for k,v in next,drawableText do
if text[k]then
v:set(text[k])
end
end
end
end