暂停界面排版升级
This commit is contained in:
@@ -4,9 +4,7 @@ local int=math.floor
|
|||||||
local sin,log=math.sin,math.log10
|
local sin,log=math.sin,math.log10
|
||||||
local format=string.format
|
local format=string.format
|
||||||
|
|
||||||
local setFont=setFont
|
local SCR,setFont,mStr=SCR,setFont,mStr
|
||||||
local mStr=mStr
|
|
||||||
local SCR=SCR
|
|
||||||
|
|
||||||
local fnsRankColor={
|
local fnsRankColor={
|
||||||
Z=COLOR.lYellow,
|
Z=COLOR.lYellow,
|
||||||
@@ -199,6 +197,32 @@ function scene.draw()
|
|||||||
|
|
||||||
--Infos
|
--Infos
|
||||||
if GAME.frame>180 then
|
if GAME.frame>180 then
|
||||||
|
gc.setLineWidth(2)
|
||||||
|
--Finesse rank & trophy
|
||||||
|
if rank then
|
||||||
|
gc.setColor(1,1,1,T*.2)
|
||||||
|
gc.rectangle("fill",35,305,465,405)
|
||||||
|
|
||||||
|
setFont(60)
|
||||||
|
local c=fnsRankColor[rank]
|
||||||
|
gc.setColor(c[1],c[2],c[3],T)
|
||||||
|
gc.print(rank,420,635)
|
||||||
|
if trophy then
|
||||||
|
setFont(40)
|
||||||
|
gc.setColor(trophyColor[1],trophyColor[2],trophyColor[3],T*2-1)
|
||||||
|
gc.printf(trophy,100-120*(1-T^.5),650,300,"right")
|
||||||
|
end
|
||||||
|
|
||||||
|
gc.setColor(1,1,1,T)
|
||||||
|
gc.rectangle("line",35,305,465,405)
|
||||||
|
gc.line(35,620,500,620)
|
||||||
|
else
|
||||||
|
gc.setColor(1,1,1,T*.2)
|
||||||
|
gc.rectangle("fill",35,305,465,350)
|
||||||
|
gc.setColor(1,1,1,T)
|
||||||
|
gc.rectangle("line",35,305,465,350)
|
||||||
|
end
|
||||||
|
|
||||||
_=form
|
_=form
|
||||||
setFont(25)
|
setFont(25)
|
||||||
for i=1,10 do
|
for i=1,10 do
|
||||||
@@ -210,17 +234,22 @@ function scene.draw()
|
|||||||
--Mods
|
--Mods
|
||||||
if #GAME.mod>0 then
|
if #GAME.mod>0 then
|
||||||
if scoreValid()then
|
if scoreValid()then
|
||||||
gc.setColor(.7,.7,.7,T*.3)
|
gc.setColor(.7,.7,.7,T)
|
||||||
|
gc.rectangle("line",780,560,485,140)
|
||||||
|
gc.setColor(.7,.7,.7,T*.26)
|
||||||
|
gc.rectangle("fill",780,560,485,140)
|
||||||
else
|
else
|
||||||
gc.setColor(1,0,0,T*.3)
|
gc.setColor(1,0,0,T)
|
||||||
|
gc.rectangle("line",780,560,485,140)
|
||||||
|
gc.setColor(1,0,0,T*.26)
|
||||||
|
gc.rectangle("fill",780,560,485,140)
|
||||||
end
|
end
|
||||||
gc.rectangle("fill",780,575,485,140)
|
|
||||||
setFont(35)
|
setFont(35)
|
||||||
for _,M in next,MODOPT do
|
for _,M in next,MODOPT do
|
||||||
if M.sel>0 then
|
if M.sel>0 then
|
||||||
_=M.color
|
_=M.color
|
||||||
gc.setColor(_[1],_[2],_[3],T)
|
gc.setColor(_[1],_[2],_[3],T)
|
||||||
mStr(M.id,810+M.no%8*60,575+int(M.no/8)*45)
|
mStr(M.id,810+M.no%8*60,560+int(M.no/8)*45)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -247,25 +276,12 @@ function scene.draw()
|
|||||||
gc.print(str,50,-10,nil,1.8)
|
gc.print(str,50,-10,nil,1.8)
|
||||||
end
|
end
|
||||||
|
|
||||||
--Finesse rank & trophy
|
|
||||||
if rank then
|
|
||||||
setFont(60)
|
|
||||||
local c=fnsRankColor[rank]
|
|
||||||
gc.setColor(c[1],c[2],c[3],T)
|
|
||||||
gc.print(rank,420,635)
|
|
||||||
if trophy then
|
|
||||||
setFont(40)
|
|
||||||
gc.setColor(trophyColor[1],trophyColor[2],trophyColor[3],T*2-1)
|
|
||||||
gc.printf(trophy,100-120*(1-T^.5),650,300,"right")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
--Radar Chart
|
--Radar Chart
|
||||||
if T>.5 and GAME.frame>180 then
|
if T>.5 and GAME.frame>180 then
|
||||||
T=T*2-1
|
T=T*2-1
|
||||||
gc.setLineWidth(2)
|
gc.setLineWidth(2)
|
||||||
gc.push("transform")
|
gc.push("transform")
|
||||||
gc.translate(1026,400)
|
gc.translate(1026,370)
|
||||||
|
|
||||||
--Polygon
|
--Polygon
|
||||||
gc.push("transform")
|
gc.push("transform")
|
||||||
|
|||||||
Reference in New Issue
Block a user