整理代码,修改颜色名和几乎所有的使用方法(可能有错误,需要后续再整理)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user