整理代码,音乐室三个按钮改用图标

This commit is contained in:
MrZ626
2021-07-10 20:49:58 +08:00
parent 8e1dd048b5
commit 332700fd64
6 changed files with 11 additions and 27 deletions

View File

@@ -546,8 +546,6 @@ return{
dict={
title="TetroDictionary",
link="Open URL",
up="",down="",
pageup="↑↑",pagedown="↓↓",
},
stat={
path="Open Data Folder",
@@ -559,9 +557,6 @@ return{
now="Now Playing:",
bgm="BGM",
up="",
play="Play",
down="",
sound="SFXs",
},
sound={

View File

@@ -515,9 +515,6 @@ return{
now="En train de jouer :",
bgm="Musique",
up="",
play="Jouer",
down="",
-- sound="SFXs",
},
sound={

View File

@@ -371,9 +371,6 @@ return{
now="~:",
bgm="#~#",
up="",
play="!!!",
down="",
sound="=><=",
},
sound={

View File

@@ -543,9 +543,6 @@ return{
now="正在播放:",
bgm="BGM",
up="",
play="播放",
down="",
sound="音效",
},
sound={
@@ -623,8 +620,6 @@ return{
dict={
title="小Z方块词典",
link="打开链接",
up="",down="",
pageup="↑↑",pagedown="↓↓",
},
stat={
path="打开存储目录",

View File

@@ -183,14 +183,14 @@ function scene.draw()
end
scene.widgetList={
WIDGET.newText{name="title", x=20, y=5,font=70,align='L'},
WIDGET.newText{name="title", x=20,y=5,font=70,align='L'},
inputBox,
WIDGET.newKey{name="link", x=1150, y=655,w=200,h=80,font=35,code=pressKey"link",hideF=function()return not url end},
WIDGET.newKey{name="up", x=1130, y=460,w=60,h=90,font=35,code=pressKey"up",hide=not MOBILE},
WIDGET.newKey{name="down", x=1130, y=560,w=60,h=90,font=35,code=pressKey"down",hide=not MOBILE},
WIDGET.newKey{name="pageup", x=1210, y=460,w=80,h=90,font=35,code=pressKey"pageup",hide=not MOBILE},
WIDGET.newKey{name="pagedown", x=1210, y=560,w=80,h=90,font=35,code=pressKey"pagedown",hide=not MOBILE},
WIDGET.newButton{name="back", x=1165, y=60,w=170,h=80,fText=TEXTURE.back,code=backScene},
WIDGET.newKey{name="link", x=1150,y=655,w=200,h=80,font=35,code=pressKey"link",hideF=function()return not url end},
WIDGET.newKey{name="up", x=1130,y=460,w=60,h=90,font=35,fText="",code=pressKey"up",hide=not MOBILE},
WIDGET.newKey{name="down", x=1130,y=560,w=60,h=90,font=35,fText="",code=pressKey"down",hide=not MOBILE},
WIDGET.newKey{name="pageup", x=1210,y=460,w=80,h=90,font=35,fText="↑↑",code=pressKey"pageup",hide=not MOBILE},
WIDGET.newKey{name="pagedown", x=1210,y=560,w=80,h=90,font=35,fText="↓↓",code=pressKey"pagedown",hide=not MOBILE},
WIDGET.newButton{name="back", x=1165,y=60,w=170,h=80,fText=TEXTURE.back,code=backScene},
}
return scene

View File

@@ -99,10 +99,10 @@ scene.widgetList={
WIDGET.newText{name="title", x=30, y=30,font=80,align='L'},
WIDGET.newText{name="arrow", x=270, y=360,font=45,align='L'},
WIDGET.newText{name="now", x=700, y=500,font=50,align='R',hideF=function()return not BGM.nowPlay end},
WIDGET.newSlider{name="bgm", x=760, y=80,w=400, font=35,disp=SETval("bgm"),code=function(v)SETTING.bgm=v BGM.freshVolume()end},
WIDGET.newButton{name="up", x=200, y=250,w=120, font=55,code=pressKey"up",hideF=function()return selected==1 end},
WIDGET.newButton{name="play", x=200, y=390,w=120, font=35,code=pressKey"space"},
WIDGET.newButton{name="down", x=200, y=530,w=120, font=55,code=pressKey"down",hideF=function()return selected==#bgmList end},
WIDGET.newSlider{name="bgm", x=760, y=80,w=400,disp=SETval("bgm"),code=function(v)SETTING.bgm=v BGM.freshVolume()end},
WIDGET.newButton{name="up", x=200, y=250,w=120,code=pressKey"up",hideF=function()return selected==1 end,fText=DOGC{32,32,{'setLW',4},{'line',2,28,16,4,30,28}}},
WIDGET.newButton{name="play", x=200, y=390,w=120,code=pressKey"space",fText=DOGC{64,64,{'fPoly',14+3,10,14+3,54,55+3,32}}},
WIDGET.newButton{name="down", x=200, y=530,w=120,code=pressKey"down",hideF=function()return selected==#bgmList end,fText=DOGC{32,32,{'setLW',4},{'line',2,4,16,28,30,4}}},
WIDGET.newButton{name="sound", x=1140, y=540,w=170,h=80,font=40,code=pressKey"tab"},
WIDGET.newButton{name="back", x=1140, y=640,w=170,h=80,fText=TEXTURE.back,code=backScene},
}