Make a scene for showing full text (like manual) but for convenience use (#1043)

This commit is contained in:
C6H12O6 + NaCl + H2O
2023-11-13 11:15:58 +07:00
committed by GitHub
parent 55800e307f
commit c650f268f6
8 changed files with 99 additions and 156 deletions

View File

@@ -1227,6 +1227,24 @@ 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)
local warnList={
'das','arr','dascut','dropcut','sddas','sdarr',