diff --git a/parts/scenes/app_15p.lua b/parts/scenes/app_15p.lua index c85eee95..39ecf499 100644 --- a/parts/scenes/app_15p.lua +++ b/parts/scenes/app_15p.lua @@ -12,6 +12,7 @@ local move,push,state local color,blind='color1' local slide,pathVis,revKB +local function ifGaming()return state==1 end local colorSelector=WIDGET.newSelector{name="color",x=150,y=240,w=200,list={'color1','rainbow','color2','gray','black'},color='lY',disp=function()return color end, code=function(v)if state~=1 then color=v end end,hideF=ifGaming} function scene.sceneInit() @@ -316,7 +317,6 @@ function scene.draw() gc.rectangle('line',cx*160+173,cy*160-107,134,134,50) end -local function ifGaming()return state==1 end scene.widgetList={ WIDGET.newButton{name="reset", x=160,y=100,w=180,h=100,color='lG', font=40,code=pressKey"space"}, colorSelector,