优化textReader场景和相关方法

框架跟进
This commit is contained in:
MrZ_26
2023-11-13 18:23:27 +08:00
parent 7d23fe4acb
commit 3806f02fa5
7 changed files with 56 additions and 51 deletions

View File

@@ -1227,25 +1227,7 @@ do-- function pressKey(k)
return cache[k]
end
end
do-- function goTextReader{text,size,bg}
-- @MrZ626 I don't know where to put, please, deal with them for me lol
local cache={}
function goTextReader(D)
local f
local hash=D
local text,size,bg=D[1],D[2],D[3]
if type(D[1])=='function' then f=D[1] end
if not cache[hash] then
cache[hash]=function()
if f then text=f();f=nil end
SCN.go('textReader',nil,text,size,bg)
end
end
return cache[hash]
end
end
do-- SETXXX(k)
do-- SETXXX(k) & ROOMXXX(k)
local warnList={
'das','arr','dascut','dropcut','sddas','sdarr',
'ihs','irs','ims','RS',