From 572c0fbfa1be734818404ef06ece2a0c35ee6e05 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 3 Nov 2021 19:43:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=96=B9=E5=9D=97=E6=9C=9D?= =?UTF-8?q?=E5=90=91=E8=8F=9C=E5=8D=95=E5=BD=A9=E8=9B=8B=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/setting_skin.lua | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/parts/scenes/setting_skin.lua b/parts/scenes/setting_skin.lua index 5cf473ba..388c7f2e 100644 --- a/parts/scenes/setting_skin.lua +++ b/parts/scenes/setting_skin.lua @@ -5,10 +5,15 @@ local sin=math.sin local selRS local minoRot={0,0,0,0,0,0,0} local minoRot0={} +local selEggMode + +local playEgg=WIDGET.newButton{name='playEgg', x=1140,y=540,w=140,h=65,color='lP',font=60,fText=CHAR.icon.rankZ,code=function()loadGame(selEggMode,true)end} local scene={} function scene.sceneInit() + selEggMode=false + scene.widgetList.playEgg.hide=true BG.set() selRS=RSlist[SETTING.RS] for i=1,7 do @@ -59,14 +64,18 @@ end local function _nextDir(i) SETTING.face[i]=(SETTING.face[i]+1)%4 minoRot0[i]=minoRot0[i]+1.5707963 - if not GAME.playing then + if not selEggMode and not GAME.playing then if minoRot0[5]>62 then - loadGame('marathon_bfmax',true) + selEggMode='marathon_bfmax' + playEgg.color=COLOR.dR elseif minoRot0[6]>62 then - loadGame('techrash_n',true) + selEggMode='techrash_n' + playEgg.color=COLOR.lP elseif minoRot0[7]>62 then - loadGame('techrash_u',true) + selEggMode='techrash_u' + playEgg.color=COLOR.lY end + playEgg.hide=not selEggMode end SFX.play('rotate') end @@ -115,6 +124,7 @@ scene.widgetList={ SFX.play('hold') end}, WIDGET.newButton{name='back', x=1140,y=640,w=170,h=80,font=60,fText=CHAR.icon.back,code=backScene}, + playEgg, } return scene