微调自定义游戏和音乐室ui

整理代码
This commit is contained in:
MrZ626
2021-08-27 22:29:32 +08:00
parent e4803cc89d
commit a7b38335c9
3 changed files with 5 additions and 5 deletions

View File

@@ -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
},