整理代码习惯,常量字符串改用单引号,可能有遗漏

This commit is contained in:
MrZ626
2021-04-30 01:00:22 +08:00
parent 7676f32cf2
commit eda6c0d746
213 changed files with 2503 additions and 2499 deletions

View File

@@ -26,7 +26,7 @@ function scene.sceneInit()
end
textBox:scroll(1)
TASK.new(function()YIELD()WIDGET.sel=WIDGET.active.input end)
BG.set("none")
BG.set('none')
end
function scene.sceneBack()
NET.quitChat()
@@ -65,7 +65,7 @@ function scene.socketRead(mes)
}
remain=tonumber(args[3])
elseif cmd=="T"then
local _,text=pcall(data.decode,"string","base64",args[3])
local _,text=pcall(data.decode,'string','base64',args[3])
if not _ then text=args[3]end
textBox:push{
COLOR.Z,args[1],
@@ -81,7 +81,7 @@ end
function scene.draw()
setFont(25)
gc.setColor(1,1,1)
gc.printf(text.chatRemain,800,10,400,"right")
gc.printf(text.chatRemain,800,10,400,'right')
gc.print(remain or"?",1205,10)
end