From 9896918c35e81e5b83fc2030afc5406575ac402b Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 28 Sep 2021 02:08:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=B8=B8=E6=88=8F=E8=8F=9C=E5=8D=95holdMode=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/customEnv0.lua | 1 + parts/scenes/customGame.lua | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/parts/customEnv0.lua b/parts/customEnv0.lua index 0fda49bf..d95c8339 100644 --- a/parts/customEnv0.lua +++ b/parts/customEnv0.lua @@ -9,6 +9,7 @@ return{ --Control nextCount=6, + holdMode='hold', holdCount=1, infHold=true, phyHold=false, diff --git a/parts/scenes/customGame.lua b/parts/scenes/customGame.lua index 7acc4931..f926eb62 100644 --- a/parts/scenes/customGame.lua +++ b/parts/scenes/customGame.lua @@ -24,6 +24,7 @@ local sList={ wait={0,1,2,3,4,5,6,7,8,10,15,20,30,60}, fall={0,1,2,3,4,5,6,7,8,10,15,20,30,60}, eventSet=eventSetList, + holdMode={'hold','swap'}, } local scene={} @@ -248,7 +249,7 @@ scene.widgetList={ WIDGET.newSwitch{name="bone", x=1170,y=930,lim=250,disp=CUSval('bone'), code=CUSrev('bone')}, --Next & Hold - WIDGET.newSelector{name="holdMode", x=310, y=890, w=300,color='lY',list={'hold','swap'},disp=CUSval('holdMode'),code=CUSsto('holdMode')}, + WIDGET.newSelector{name="holdMode", x=310, y=890, w=300,color='lY',list=sList.holdMode,disp=CUSval('holdMode'),code=CUSsto('holdMode')}, WIDGET.newSlider{name="nextCount", x=140, y=960, lim=130,w=180,unit=6,disp=CUSval('nextCount'),code=CUSsto('nextCount')}, WIDGET.newSlider{name="holdCount", x=140, y=1030,lim=130,w=180,unit=6,disp=CUSval('holdCount'),code=CUSsto('holdCount')}, WIDGET.newSwitch{name="infHold", x=560, y=960, lim=200, disp=CUSval('infHold'),code=CUSrev('infHold'),hideF=function()return CUSTOMENV.holdCount==0 end},