From b95adc74005522c0f2373d6f5b7e1e9b4a844335 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Fri, 6 Oct 2023 09:53:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E9=94=81exterior=E5=90=8Einterior?= =?UTF-8?q?=E6=9A=82=E5=81=9C=E7=95=8C=E9=9D=A2=E4=B8=8D=E5=86=8D=E8=83=BD?= =?UTF-8?q?=E8=BF=9B=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/scene/pause_in.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/assets/scene/pause_in.lua b/assets/scene/pause_in.lua index d741ffda..dc4740f9 100644 --- a/assets/scene/pause_in.lua +++ b/assets/scene/pause_in.lua @@ -54,6 +54,15 @@ scene.widgetList={ {type='button',pos={0,.5},x=210,y=-360,w=200,h=80,lineWidth=4,cornerR=0,sound_trigger='button_back',fontSize=60,text=CHAR.icon.back,code=WIDGET.c_backScn()}, {type='button',pos={.5,.5},x=300*-1,y=-160,w=260,h=100,lineWidth=4,cornerR=0,fontSize=60,text=CHAR.icon.play, code=function() sysAction('back') end}, {type='button',pos={.5,.5},x=300*0,y=-160,w=260,h=100,lineWidth=4,cornerR=0,fontSize=60,text=CHAR.icon.retry, code=function() sysAction('restart') end}, - {type='button',pos={.5,.5},x=300*1,y=-160,w=260,h=100,lineWidth=4,cornerR=0,fontSize=60,text=CHAR.icon.settings, code=function() sysAction('setting') end}, + {type='button',pos={.5,.5},x=300*1,y=-160,w=260,h=100,lineWidth=4,cornerR=0,fontSize=60,text=CHAR.icon.settings, + code=function() + if PROGRESS.getMain()<=2 or isCtrlPressed() then + sysAction('setting') + else + SFX.play('move_failed') + SFX.play('suffocate',nil,nil,MATH.rand(-6,2)) + end + end, + }, } return scene