From 53b0d1fda342021baf22f6325b227c434b0f122d Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 2 May 2021 14:25:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A6=E4=B8=8B=E8=A7=92=E6=81=92=E5=AE=9A?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index e10a869a..88a620b8 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -79,8 +79,8 @@ local function updatePowerInfo() if charging then gc_setColor(0,1,0) elseif pow>50 then gc_setColor(1,1,1) elseif pow>26 then gc_setColor(1,1,0) - elseif pow<26 then gc_setColor(1,0,0) - else gc_setColor(.5,0,1) + elseif pow==26 then gc_setColor(.5,0,1) + else gc_setColor(1,0,0) end gc_rectangle('fill',76,6,pow*.22,14) if pow<100 then @@ -558,9 +558,11 @@ function love.run() end --Draw FPS - gc_setColor(1,1,1) setFont(15) _=SCR.h + gc_setColor(.8,.8,.8,.4) + gc_print(VERSION.string,SCR.safeX+50,_-20) + gc_setColor(1,1,1) gc_print(FPS(),SCR.safeX+5,_-20) --Debug info.