diff --git a/Zframework/init.lua b/Zframework/init.lua index 6f223e1f..2d5b49aa 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -415,7 +415,7 @@ function love.errorhandler(msg) ins(ERRDATA,{mes=err,scene=scn}) --Write messages to log file - love.filesystem.append("conf/error.log", + love.filesystem.append('conf/error.log', os.date("%Y/%m/%d %A %H:%M:%S\n").. #ERRDATA.." crash(es) "..SYSTEM.."-"..VERSION.string.." scene: "..scn.."\n".. table.concat(err,"\n",1,c-2).."\n\n" diff --git a/Zframework/widget.lua b/Zframework/widget.lua index d943c02b..d45e50be 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -402,7 +402,7 @@ function switch:press() self.code() if self.sound then SFX.play('move')end end -function WIDGET.newSwitch(D)--name,x,y[,fText][,color][,font=30][,sound=true][,disp],code,hide +function WIDGET.newSwitch(D)--name,x,y[,fText][,color][,font=30][,sound=true][,disp],code[,hideF][,hide] local _={ name= D.name or"_", @@ -1154,7 +1154,7 @@ end function listBox:getInfo() return("x=%d,y=%d,w=%d,h=%d"):format(self.x+self.w*.5,self.y+self.h*.5,self.w,self.h) end -function WIDGET.newListBox(D)--name,x,y,w,h[,lineH],hide,drawF +function WIDGET.newListBox(D)--name,x,y,w,h,lineH[,hideF][,hide][,drawF] local _={ name= D.name or"_", diff --git a/parts/scenes/net_rooms.lua b/parts/scenes/net_rooms.lua index 5919ab16..08aaccff 100644 --- a/parts/scenes/net_rooms.lua +++ b/parts/scenes/net_rooms.lua @@ -13,6 +13,7 @@ local compatibleVer={ "V0.15.2", "V0.15.3", "V0.15.4", + "V0.15.5", } local roomList=WIDGET.newListBox{name="roomList",x=50,y=50,w=800,h=440,lineH=40,drawF=function(ifSel,id,item)