整理代码,调整大量场景内绘图用的纯白色和纯黑色
This commit is contained in:
@@ -138,17 +138,14 @@ end
|
||||
|
||||
function scene.draw()
|
||||
local list=getList()
|
||||
gc.setColor(1,1,1)
|
||||
gc.setColor(COLOR.Z)
|
||||
local t=list[selected][4]
|
||||
if #t>900 then
|
||||
setFont(15)
|
||||
elseif #t>600 then
|
||||
setFont(20)
|
||||
elseif #t>400 then
|
||||
setFont(25)
|
||||
else
|
||||
setFont(30)
|
||||
end
|
||||
setFont(
|
||||
#t>900 and 15 or
|
||||
#t>600 and 20 or
|
||||
#t>400 and 25 or
|
||||
30
|
||||
)
|
||||
gc.printf(t,306,180,950)
|
||||
|
||||
setFont(30)
|
||||
@@ -160,7 +157,7 @@ function scene.draw()
|
||||
local y=142+35*i
|
||||
i=i+scrollPos
|
||||
local item=list[i]
|
||||
gc.setColor(0,0,0)
|
||||
gc.setColor(COLOR.D)
|
||||
gc.print(item[1],29,y-1)
|
||||
gc.print(item[1],29,y+1)
|
||||
gc.print(item[1],31,y-1)
|
||||
@@ -170,7 +167,7 @@ function scene.draw()
|
||||
end
|
||||
|
||||
gc.setLineWidth(4)
|
||||
gc.setColor(1,1,1)
|
||||
gc.setColor(COLOR.Z)
|
||||
gc.rectangle('line',300,180,958,526)
|
||||
gc.rectangle('line',20,180,280,526)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user