Skip to content

Commit

Permalink
exterior地图选择模式的高亮框颜色调整
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Nov 22, 2024
1 parent d4082d8 commit 718fd18
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions assets/game/exteriorMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 718fd18

Please sign in to comment.