移除drawableText中的不变文本

This commit is contained in:
MrZ626
2021-05-13 14:49:39 +08:00
parent f293f043d5
commit d1ed97e5b4
7 changed files with 20 additions and 9 deletions

View File

@@ -157,8 +157,6 @@ end
do--drawableText
local function T(s,t)return love.graphics.newText(getFont(s),t)end
drawableText={
question=T(100,"?"),
bpm=T(15,"BPM"),kpm=T(15,"KPM"),
modeName=T(30),
anykey=T(40),

View File

@@ -58,7 +58,14 @@ local gridLines do
end
local LDmarks=gc.newSpriteBatch(DOGC{14,5,{'clear',1,1,1}},15,'static')
for i=0,14 do LDmarks:add(3+20*i,615)end
local bpmImage=DOGC{31,12,
{'setFT',15},
{'print',"BPM",0,-5}
}
local kpmImage=DOGC{31,12,
{'setFT',15},
{'print',"KPM",0,-5}
}
local function boardTransform(mode)
if mode then
if mode=="U-D"then
@@ -682,8 +689,8 @@ function draw.norm(P)
else
drawDial(510,515,P.dropSpeed)
drawDial(555,570,P.keySpeed)
gc_draw(drawableText.bpm,540,485)
gc_draw(drawableText.kpm,494,578)
gc_draw(bpmImage,540,490)
gc_draw(kpmImage,494,583)
drawFinesseCombo_norm(P)
end

View File

@@ -164,7 +164,7 @@ function scene.draw()
--Confirm reset
if sure>0 then
gc.setColor(1,1,1,sure*.02)
gc.draw(drawableText.question,850,80)
gc.draw(TEXTURE.question,850,110)
end
end

View File

@@ -425,7 +425,7 @@ function scene.draw()
--Confirm reset
if sure>0 then
gc.setColor(1,1,1,sure*.02)
gc.draw(drawableText.question,1090,460)
gc.draw(TEXTURE.question,1070,490)
end
--Block name

View File

@@ -182,7 +182,7 @@ function scene.draw()
--Confirm reset
if sure>0 then
gc.setColor(1,1,1,sure*.02)
gc.draw(drawableText.question,980,570)
gc.draw(TEXTURE.question,980,600)
end
end

View File

@@ -182,7 +182,7 @@ function scene.draw()
--Confirm reset
if sure>0 then
gc.setColor(1,1,1,sure*.02)
gc.draw(drawableText.question,980,570)
gc.draw(TEXTURE.question,1050,430,nil,.6)
end
end

View File

@@ -151,5 +151,11 @@ for i=1,8 do
gc.translate(-12*i,i==1 and -8 or -14)
end
--Question mark
TEXTURE.question=DOGC{45,80,
{'setFT',100},
{'print',"?",0,-30},
}
gc.setCanvas()
return TEXTURE