整理代码,修改颜色名和几乎所有的使用方法(可能有错误,需要后续再整理)

This commit is contained in:
MrZ626
2021-04-21 23:51:34 +08:00
parent 9b3b0e2086
commit 09d0612aeb
62 changed files with 701 additions and 690 deletions

View File

@@ -47,7 +47,7 @@ function scene.keyDown(k)
SCN.back()
else
escapeTimer=TIME()
LOG.print(text.sureQuit,COLOR.orange)
LOG.print(text.sureQuit,COLOR.O)
end
else
WIDGET.keyPressed(k)
@@ -68,12 +68,12 @@ function scene.socketRead(mes)
local _,text=pcall(data.decode,"string","base64",args[3])
if not _ then text=args[3]end
textBox:push{
COLOR.W,args[1],
COLOR.Z,args[1],
COLOR.dY,"#"..args[2].." ",
COLOR.sky,text
COLOR.N,text
}
else
LOG.print("Illegal message: "..mes,30,COLOR.green)
LOG.print("Illegal message: "..mes,30,COLOR.G)
return
end
end