生成位置预览开启后hold的生成位置也可见

This commit is contained in:
MrZ626
2021-11-17 16:47:25 +08:00
parent b85cee7e1f
commit b61a1270e9
6 changed files with 20 additions and 7 deletions

View File

@@ -368,7 +368,7 @@ return{
score="Score Pop-Ups", score="Score Pop-Ups",
bufferWarn="Buffer Alerts", bufferWarn="Buffer Alerts",
showSpike="Spike Counter", showSpike="Spike Counter",
nextPos="Next Preview", nextPos="Spawn Preview",
highCam="Screen Scrolling", highCam="Screen Scrolling",
warn="Danger Alerts", warn="Danger Alerts",

View File

@@ -335,7 +335,7 @@ return{
score="Puntaje en Pantalla", score="Puntaje en Pantalla",
bufferWarn="Alerta de Búfer", bufferWarn="Alerta de Búfer",
showSpike="Contador de Spike", showSpike="Contador de Spike",
nextPos="Ver Spawn de Pza. Sig.", -- nextPos="Spawn Preview",
highCam="Cám. Vista Aérea", highCam="Cám. Vista Aérea",
warn="Alerta de Peligro", warn="Alerta de Peligro",

View File

@@ -333,7 +333,7 @@ return{
score="Pop-up de score", score="Pop-up de score",
-- bufferWarn="Buffer Alert", -- bufferWarn="Buffer Alert",
-- showSpike="Spike Counter", -- showSpike="Spike Counter",
nextPos="Prévisualisation de position", -- nextPos="Spawn Preview",
highCam="Vue d'oiseau", highCam="Vue d'oiseau",
warn="Alerte de danger", warn="Alerte de danger",

View File

@@ -357,7 +357,7 @@ return{
score="Pop-up de pontos", score="Pop-up de pontos",
-- bufferWarn="Buffer Alert", -- bufferWarn="Buffer Alert",
-- showSpike="Spike Counter", -- showSpike="Spike Counter",
nextPos="Próxima Pos.", -- nextPos="Spawn Preview",
highCam="Vista Olho-de-pássaro", highCam="Vista Olho-de-pássaro",
warn="Alerta de perigo", warn="Alerta de perigo",

View File

@@ -367,7 +367,7 @@ return{
score="分数弹出", score="分数弹出",
bufferWarn="缓冲区警报", bufferWarn="缓冲区警报",
showSpike="尖峰计数器", showSpike="尖峰计数器",
nextPos="下次预览", nextPos="繁殖预览",
highCam="屏幕滚动", highCam="屏幕滚动",
warn="危险警报", warn="危险警报",

View File

@@ -360,6 +360,18 @@ local function _drawNextPreview(B,fieldH,fieldBeneath)
end end
end end end end
end end
local function _drawHoldPreview(B,fieldH,fieldBeneath)
gc_setColor(1,1,1,.3)
local y=int(fieldH+1-modf(B.RS.centerPos[B.id][B.dir][1]))+ceil(fieldBeneath/30)+.14
B=B.bk
local x=int(6-#B[1]*.5)
local cross=TEXTURE.puzzleMark[-1]
for i=1,#B do for j=1,#B[1]do
if B[i][j]then
gc_draw(cross,30*(x+j-2),30*(1-y-i))
end
end end
end
local function _drawBuffer(atkBuffer,bufferWarn,atkBufferSum1,atkBufferSum) local function _drawBuffer(atkBuffer,bufferWarn,atkBufferSum1,atkBufferSum)
local h=0 local h=0
for i=1,#atkBuffer do for i=1,#atkBuffer do
@@ -807,8 +819,9 @@ function draw.norm(P,repMode)
end end
--Draw next preview --Draw next preview
if ENV.nextPos and P.nextQueue[1]then if ENV.nextPos then
_drawNextPreview(P.nextQueue[1],ENV.fieldH,P.fieldBeneath) if P.nextQueue[1]then _drawNextPreview(P.nextQueue[1],ENV.fieldH,P.fieldBeneath)end
if P.holdQueue[1]then _drawHoldPreview(P.holdQueue[1],ENV.fieldH,P.fieldBeneath)end
end end
--Draw AI's drop destination --Draw AI's drop destination