重构背景系统(每个背景使用独立文件),全局变量名整理

This commit is contained in:
MrZ626
2020-11-04 00:08:50 +08:00
parent c688fef3f6
commit a485a71dfc
149 changed files with 1087 additions and 1046 deletions

View File

@@ -41,23 +41,23 @@ function LOG.print(text,T,C)--text,type/time,color
local time
local his
if T=="warn"then
C=C or color.yellow
C=C or COLOR.yellow
his=true
time=180
elseif T=="error"then
C=C or color.red
C=C or COLOR.red
his=true
time=210
elseif T=="message"then
C=C or color.sky
C=C or COLOR.sky
his=true
elseif type(T)=="number"then
C=C or color.white
C=C or COLOR.white
time=T
elseif type(T)=="table"then
C,T=T
elseif not C then
C=color.white
C=COLOR.white
end
if his then
ins(debugMesHistory,SCN.cur..": "..tostring(text))
@@ -67,6 +67,6 @@ end
function LOG.copy()
local str=table.concat(debugMesHistory,"\n")
love.system.setClipboardText(str)
LOG.print("Log copied",color.blue)
LOG.print("Log copied",COLOR.blue)
end
return LOG