整理代码,部分全局变量声明移入Zframework中
This commit is contained in:
@@ -2,7 +2,7 @@ local ins,rem=table.insert,table.remove
|
||||
local yield=YIELD
|
||||
|
||||
local seqGens={
|
||||
none=function() while true do yield()end end,
|
||||
none=function()while true do yield()end end,
|
||||
bag=function(P,seq0)
|
||||
local len=#seq0
|
||||
local bag={}
|
||||
|
||||
@@ -398,7 +398,7 @@ function update.remote_alive(P,dt)
|
||||
frmDelta<20 and 1 or
|
||||
frmDelta<45 and rnd(2)or
|
||||
frmDelta<90 and 2 or
|
||||
frmDelta<180 and rnd(2,3) or
|
||||
frmDelta<180 and rnd(2,3)or
|
||||
3
|
||||
do
|
||||
local eventTime=P.stream[P.streamProgress]
|
||||
|
||||
@@ -33,7 +33,7 @@ scene.widgetList={
|
||||
WIDGET.newSwitch{name="dataSaving", x=750, y=550, font=20,disp=SETval("dataSaving"), code=SETrev("dataSaving")},
|
||||
WIDGET.newSwitch{name="autoPause", x=1060, y=310, font=20,disp=SETval("autoPause"), code=SETrev("autoPause")},
|
||||
WIDGET.newSwitch{name="swap", x=1060, y=370, font=20,disp=SETval("swap"), code=SETrev("swap")},
|
||||
WIDGET.newSwitch{name="fine", x=1060, y=430, font=20,disp=SETval("fine"), code=function()SETTING.fine=not SETTING.fine if SETTING.fine then SFX.play("finesseError",.6) end end},
|
||||
WIDGET.newSwitch{name="fine", x=1060, y=430, font=20,disp=SETval("fine"), code=function()SETTING.fine=not SETTING.fine if SETTING.fine then SFX.play("finesseError",.6)end end},
|
||||
WIDGET.newSwitch{name="appLock", x=1060, y=490, font=20,disp=SETval("appLock"), code=SETrev("appLock")},
|
||||
WIDGET.newSwitch{name="simpMode", x=1060, y=550, font=25,disp=SETval("simpMode"),
|
||||
code=function()
|
||||
|
||||
Reference in New Issue
Block a user