hold区域高方块也会缩放显示

This commit is contained in:
MrZ626
2021-02-09 00:45:44 +08:00
parent d7c45dbe08
commit b85ac13c49

View File

@@ -261,11 +261,11 @@ local function drawHold(P)
local N=ENV.holdCount*72 local N=ENV.holdCount*72
local texture=SKIN.curText local texture=SKIN.curText
gc_push("transform") gc_push("transform")
gc_translate(-140,116) gc_translate(-140,36)
gc_setColor(0,0,0,.4)gc_rectangle("fill",0,-80,124,N+8) gc_setColor(0,0,0,.4)gc_rectangle("fill",0,0,124,N+8)
gc_setColor(1,1,1)gc_rectangle("line",0,-80,124,N+8) gc_setColor(1,1,1)gc_rectangle("line",0,0,124,N+8)
if P.holdTime==0 then gc_setColor(.6,.4,.4)end if P.holdTime==0 then gc_setColor(.6,.4,.4)end
mText(drawableText.hold,62,-131) mText(drawableText.hold,62,-51)
gc_setColor(1,1,1) gc_setColor(1,1,1)
if #P.holdQueue<P.gameEnv.holdCount and P.nextQueue[1]then if #P.holdQueue<P.gameEnv.holdCount and P.nextQueue[1]then
@@ -273,15 +273,22 @@ local function drawHold(P)
else else
N=P.holdTime+1 N=P.holdTime+1
end end
for n=1,#P.holdQueue do gc_push("transform")
if n==N then gc_setColor(.6,.4,.4)end gc_translate(62,40)
local bk,clr=P.holdQueue[n].bk,P.holdQueue[n].color for n=1,#P.holdQueue do
for i=1,#bk do for j=1,#bk[1]do if n==N then gc_setColor(.6,.4,.4)end
if bk[i][j]then local bk,clr=P.holdQueue[n].bk,P.holdQueue[n].color
gc_draw(texture[clr],30*(j+2.06-#bk[1]*.5)-30,-30*(i+3.76-2.4*n-#bk*.5))-- drawCell(i+1.36-#B*.5,j+2.06-#B[1]*.5,clr) local k=#bk>2 and 2.2/#bk or 1
end gc_scale(k)
end end for i=1,#bk do for j=1,#bk[1]do
end if bk[i][j]then
gc_draw(texture[clr],30*(j-#bk[1]*.5)-30,-30*(i-#bk*.5))-- drawCell(i+1.36-#B*.5,j+2.06-#B[1]*.5,clr)
end
end end
gc_scale(1/k)
gc_translate(0,72)
end
gc_pop()
gc_pop() gc_pop()
end end
local function drawFinesseCombo_norm(P) local function drawFinesseCombo_norm(P)