Skip to content

Commit

Permalink
修按键设置页面打开就爆炸
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Jun 23, 2024
1 parent 9f8d9c4 commit 2a88380
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions assets/scene/keyset_out.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local keyMode='sys'
local keyMap
local keyButtons={}

function scene.enter()
function scene.load()
BG.set('none')

keyMap=KEYMAP[keyMode]
Expand Down Expand Up @@ -132,10 +132,10 @@ scene.widgetList={
{type='button',name='sys', x=900,y=390,w=200,h=60,text=LANG"keyset_sys_down", fontSize=20, color='lC',code=selAct('sys', 'down' )},
{type='button',name='sys', x=900,y=460,w=200,h=60,text=LANG"keyset_sys_select", fontSize=20, color='lC',code=selAct('sys', 'select' )},

{type='button_invis',name='Sacry',pos={1,0},x=-800,y=60,w=150,h=100,cornerR=20,fontSize=60,text="G",fontType='bold',sound_trigger='button_soft',code=function() if keyMode~='acry' then keyMode='acry'; scene.enter() end end,visibleFunc=function() return PROGRESS.getStyleUnlock('acry') end},
{type='button_invis',name='Sgela',pos={1,0},x=-600,y=60,w=150,h=100,cornerR=20,fontSize=60,text="P",fontType='bold',sound_trigger='button_soft',code=function() if keyMode~='gela' then keyMode='gela'; scene.enter() end end,visibleFunc=function() return PROGRESS.getStyleUnlock('gela') end},
{type='button_invis',name='Sbrik',pos={1,0},x=-400,y=60,w=150,h=100,cornerR=20,fontSize=60,text="M",fontType='bold',sound_trigger='button_soft',code=function() if keyMode~='brik' then keyMode='brik'; scene.enter() end end,visibleFunc=function() return PROGRESS.getStyleUnlock('brik') end},
{type='button_invis',name='Ssys', pos={1,0},x=-200,y=60,w=150,h=100,cornerR=20,fontSize=60,text="S",fontType='bold',sound_trigger='button_soft',code=function() if keyMode~='sys' then keyMode='sys'; scene.enter() end end},
{type='button_invis',name='Sacry',pos={1,0},x=-800,y=60,w=150,h=100,cornerR=20,fontSize=60,text="G",fontType='bold',sound_trigger='button_soft',code=function() if keyMode~='acry' then keyMode='acry'; scene.load() end end,visibleFunc=function() return PROGRESS.getStyleUnlock('acry') end},
{type='button_invis',name='Sgela',pos={1,0},x=-600,y=60,w=150,h=100,cornerR=20,fontSize=60,text="P",fontType='bold',sound_trigger='button_soft',code=function() if keyMode~='gela' then keyMode='gela'; scene.load() end end,visibleFunc=function() return PROGRESS.getStyleUnlock('gela') end},
{type='button_invis',name='Sbrik',pos={1,0},x=-400,y=60,w=150,h=100,cornerR=20,fontSize=60,text="M",fontType='bold',sound_trigger='button_soft',code=function() if keyMode~='brik' then keyMode='brik'; scene.load() end end,visibleFunc=function() return PROGRESS.getStyleUnlock('brik') end},
{type='button_invis',name='Ssys', pos={1,0},x=-200,y=60,w=150,h=100,cornerR=20,fontSize=60,text="S",fontType='bold',sound_trigger='button_soft',code=function() if keyMode~='sys' then keyMode='sys'; scene.load() end end},

{type='button',pos={1,1},x=-300,y=-80,w=160,h=80,text=LANG"setting_test",fontSize=40,code=playExterior('brik/exterior/test'),visibleFunc=function() return not GAME.mode end},
{type='text',pos={0,0},x=240,y=60,alignX='left',fontType='bold',fontSize=60,text=LANG'settings_title'},
Expand Down

0 comments on commit 2a88380

Please sign in to comment.