From 230d67492e7f817621026bcf58eefaaa97f70b86 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 9 Nov 2021 10:22:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=9C=BA=E6=99=AF=E5=B7=A6?= =?UTF-8?q?=E4=B8=8A=E6=96=87=E6=9C=AC=E4=BB=8E=E6=9C=80=E6=99=9A=E7=9A=84?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E6=98=BE=E7=A4=BA=20close=20#437?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/test.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parts/scenes/test.lua b/parts/scenes/test.lua index 425804f7..2759a4bd 100644 --- a/parts/scenes/test.lua +++ b/parts/scenes/test.lua @@ -91,9 +91,10 @@ end function scene.draw() setFont(15) - for i=1,#list do + local l=#list + for i=1,l do gc.setColor(1,1,1,list[i][2]/30) - gc.print(list[i][1],20,20*i) + gc.print(list[i][1],20,20*(l-i+1)) end end