From a7b38335c973b661f6e8523d3ac93982c5aa4ed8 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 27 Aug 2021 22:29:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=B8=B8=E6=88=8F=E5=92=8C=E9=9F=B3=E4=B9=90=E5=AE=A4ui=20?= =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/widget.lua | 2 +- parts/scenes/customGame.lua | 4 ++-- parts/scenes/music.lua | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Zframework/widget.lua b/Zframework/widget.lua index d500cb3e..4adf35f3 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -586,7 +586,7 @@ end function slider:arrowKey(k) self:scroll((k=="left"or k=="up")and -1 or 1) end -function WIDGET.newSlider(D)--name,x,y,w[,fText][,color][,unit][,smooth][,font=30][,change],disp,code,hide +function WIDGET.newSlider(D)--name,x,y,w[,fText][,color][,unit][,smooth][,font=30][,change],disp[,show],code,hide local _={ name= D.name or"_", diff --git a/parts/scenes/customGame.lua b/parts/scenes/customGame.lua index 8d6215f9..37b169c0 100644 --- a/parts/scenes/customGame.lua +++ b/parts/scenes/customGame.lua @@ -245,8 +245,8 @@ scene.widgetList={ WIDGET.newSwitch{name="bone", x=1170,y=930,disp=CUSval("bone"), code=CUSrev("bone")}, --Next & Hold - WIDGET.newSlider{name="nextCount",x=120, y=940,w=200,unit=6, disp=CUSval("nextCount"),code=CUSsto("nextCount")}, - WIDGET.newSlider{name="holdCount",x=120, y=1030,w=200,unit=6,disp=CUSval("holdCount"),code=CUSsto("holdCount")}, + WIDGET.newSlider{name="nextCount",x=140, y=940,w=180,unit=6, disp=CUSval("nextCount"),code=CUSsto("nextCount")}, + WIDGET.newSlider{name="holdCount",x=140, y=1030,w=180,unit=6,disp=CUSval("holdCount"),code=CUSsto("holdCount")}, WIDGET.newSwitch{name="infHold", x=560, y=940, disp=CUSval("infHold"),code=CUSrev("infHold"),hideF=function()return CUSTOMENV.holdCount==0 end}, WIDGET.newSwitch{name="phyHold", x=560, y=1030, disp=CUSval("phyHold"),code=CUSrev("phyHold"),hideF=function()return CUSTOMENV.holdCount==0 end}, diff --git a/parts/scenes/music.lua b/parts/scenes/music.lua index 7e4e8670..d45c2b5f 100644 --- a/parts/scenes/music.lua +++ b/parts/scenes/music.lua @@ -92,7 +92,7 @@ function scene.draw() gc.setColor(COLOR.Z) local cur=BGM.playing:tell() local dur=BGM.playing:getDuration() - gc.print(STRING.time_simp(cur%dur).." / "..STRING.time_simp(dur),500,610) + gc.print(STRING.time_simp(cur%dur).." / "..STRING.time_simp(dur),500,626) end end @@ -102,7 +102,7 @@ scene.widgetList={ WIDGET.newText{name="now", x=700,y=500,font=50,align='R',hideF=function()return not BGM.nowPlay end}, WIDGET.newSlider{name="slide",x=500,y=600,w=400, disp=function()return BGM.playing:tell()/BGM.playing:getDuration()%1 end, - show='none', + show=false, code=function(v)BGM.playing:seek(v*BGM.playing:getDuration())end, hideF=function()return not BGM.nowPlay end },