更多场景的大标题添加最大显示长度

This commit is contained in:
MrZ626
2021-12-07 22:40:16 +08:00
parent 351d0258b2
commit 66d5bd5490
8 changed files with 11 additions and 11 deletions

View File

@@ -435,8 +435,8 @@ end
local function _setPen(i)return function(k)pens[k]=i end end
scene.widgetList={
WIDGET.newText{name='title', x=1020,y=5,font=70,align='R'},
WIDGET.newText{name='subTitle', x=1030,y=50,font=35,align='L',color='H'},
WIDGET.newText{name='title', x=1020,y=5,lim=480,font=70,align='R'},
WIDGET.newText{name='subTitle', x=1030,y=50,lim=170,font=35,align='L',color='H'},
WIDGET.newButton{name='b1', x=580, y=130,w=73,fText="",color='R',code=_setPen(1)},--B1
WIDGET.newButton{name='b2', x=660, y=130,w=73,fText="",color='F',code=_setPen(2)},--B2

View File

@@ -175,8 +175,8 @@ function scene.draw()
end
scene.widgetList={
WIDGET.newText{name='title', x=520,y=5,font=70,align='R'},
WIDGET.newText{name='subTitle',x=530,y=50,font=35,align='L',color='H'},
WIDGET.newText{name='title', x=520,y=5,lim=460,font=70,align='R'},
WIDGET.newText{name='subTitle',x=530,y=50,lim=170,font=35,align='L',color='H'},
WIDGET.newKey{name='_1', x=800,y=540,w=90,font=50,code=pressKey(01)},
WIDGET.newKey{name='_2', x=900,y=540,w=90,font=50,code=pressKey(02)},

View File

@@ -171,8 +171,8 @@ function scene.draw()
end
scene.widgetList={
WIDGET.newText{name='title',x=520,y=5,font=70,align='R'},
WIDGET.newText{name='subTitle',x=530,y=50,font=35,align='L',color='H'},
WIDGET.newText{name='title',x=520,y=5,lim=460,font=70,align='R'},
WIDGET.newText{name='subTitle',x=530,y=50,lim=170,font=35,align='L',color='H'},
WIDGET.newSelector{name='sequence',x=1080,y=60,w=200,color='Y',
list={'bag','bagES','his','hisPool','c2','rnd','mess','reverb','loop','fixed'},

View File

@@ -86,7 +86,7 @@ local function _sliderShow(S)
return S.."F "..math.floor(S*16.67).."ms"
end
scene.widgetList={
WIDGET.newText{name='title', x=80, y=50,font=70,align='L'},
WIDGET.newText{name='title', x=100, y=50,lim=500,font=70,align='L'},
WIDGET.newText{name='preview', x=520, y=610,font=40,align='R'},
WIDGET.newSlider{name='das', x=250, y=190,lim=230,w=600,unit=20,disp=SETval('das'), show=_sliderShow,code=SETsto('das')},

View File

@@ -31,7 +31,7 @@ function scene.draw()
end
scene.widgetList={
WIDGET.newText{name='title', x=640,y=15,font=80},
WIDGET.newText{name='title', x=640,y=15,lim=630,font=80},
WIDGET.newButton{name='graphic', x=200, y=80, w=240,h=80,color='lC',font=35,code=swapScene('setting_video','swipeR')},
WIDGET.newButton{name='sound', x=1080, y=80, w=240,h=80,color='lC',font=35,code=swapScene('setting_sound','swipeL')},

View File

@@ -81,7 +81,7 @@ local function _nextDir(i)
end
scene.widgetList={
WIDGET.newText{name='title', x=80,y=50,font=70,align='L'},
WIDGET.newText{name='title', x=80,y=50,lim=500,font=70,align='L'},
WIDGET.newSelector{name='skinSet',x=780,y=100,w=320,list=SKIN.getList(),disp=SETval('skinSet'),code=SETsto('skinSet')},
WIDGET.newButton{name='prev1', x=130,y=220,w=80,h=65,sound='hold',font=40,fText="",code=function()_prevSkin(1)end},

View File

@@ -79,7 +79,7 @@ function scene.draw()
end
scene.widgetList={
WIDGET.newText{name='title', x=640, y=15,font=80},
WIDGET.newText{name='title', x=640, y=15,lim=630,font=80},
WIDGET.newButton{name='game', x=200, y=80,w=240,h=80,color='lC',font=35,code=swapScene('setting_game','swipeR')},
WIDGET.newButton{name='graphic', x=1080,y=80,w=240,h=80,color='lC',font=35,code=swapScene('setting_video','swipeL')},

View File

@@ -44,7 +44,7 @@ end
scene.widgetScrollHeight=900
scene.widgetList={
WIDGET.newText{name='title', x=640,y=15,font=80},
WIDGET.newText{name='title', x=640,y=15,lim=630,font=80},
WIDGET.newButton{name='sound', x=200,y=80,w=240,h=80,color='lC',font=35,code=swapScene('setting_sound','swipeR')},
WIDGET.newButton{name='game', x=1080,y=80,w=240,h=80,color='lC',font=35,code=swapScene('setting_game','swipeL')},