From 718fd188f8e70f13804957dd4fdb2fb281682897 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Fri, 22 Nov 2024 17:18:20 +0800 Subject: [PATCH] =?UTF-8?q?exterior=E5=9C=B0=E5=9B=BE=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=9A=84=E9=AB=98=E4=BA=AE=E6=A1=86=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/game/exteriorMap.lua | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/assets/game/exteriorMap.lua b/assets/game/exteriorMap.lua index 42d8c7f3..65126a9c 100644 --- a/assets/game/exteriorMap.lua +++ b/assets/game/exteriorMap.lua @@ -32,25 +32,25 @@ local tau=MATH.tau -- * -- Z local modes={ - {pos={25,35,00},name='sprint'}, - {pos={25,50,00},name='sequence'}, - {pos={25,65,15},name='invis'}, - {pos={25,50,15},name='tspin'}, + {pos={25,35,00},selColor=COLOR.lP,name='sprint'}, + {pos={25,50,00},selColor=COLOR.lP,name='sequence'}, + {pos={25,65,15},selColor=COLOR.lP,name='invis'}, + {pos={25,50,15},selColor=COLOR.lP,name='tspin'}, - {pos={45,45,00},name='marathon'}, - {pos={45,60,00},name='allclear'}, - {pos={60,60,00},name='combo'}, - {pos={60,45,00},name='hypersonic'}, + {pos={45,45,00},selColor=COLOR.lP,name='marathon'}, + {pos={45,60,00},selColor=COLOR.lP,name='allclear'}, + {pos={60,60,00},selColor=COLOR.lP,name='combo'}, + {pos={60,45,00},selColor=COLOR.lP,name='hypersonic'}, - {pos={35,25,00},name='dig'}, - {pos={50,25,00},name='excavate'}, - {pos={65,25,00},name='backfire'}, - {pos={35,10,00},name='drill'}, - {pos={50,10,00},name='survivor'}, + {pos={35,25,00},selColor=COLOR.lP,name='dig'}, + {pos={50,25,00},selColor=COLOR.lP,name='excavate'}, + {pos={65,25,00},selColor=COLOR.lP,name='backfire'}, + {pos={35,10,00},selColor=COLOR.lP,name='drill'}, + {pos={50,10,00},selColor=COLOR.lP,name='survivor'}, - {pos={00,35,10},name='chain'}, + {pos={00,35,10},selColor=COLOR.LR,name='chain'}, - {pos={35,00,10},name='action'}, + {pos={35,00,10},selColor=COLOR.lS,name='action'}, } -- Initialize modes' graphic values for _,m in next,modes do @@ -409,9 +409,12 @@ function map:draw() -- Selecting frame if m==selected or m.active>.001 then - local rb=m==selected and .42 or 1 gc_setLineWidth(8) - gc_setColor(rb,1,rb,m==selected and 1 or m.active*.26) + if m==selected then + gc_setColor(m.selColor) + else + gc_setColor(1,1,1,m.active*.26) + end GC.regPolygon('line',0,0,m.r+16,6,tau/12) end gc_pop()